{
  "components": {
    "responses": {
      "Error": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        },
        "description": "Request failed. `errorCode` is stable; `errorMessage` is for humans."
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "errorCode": {
            "type": "string"
          },
          "errorMessage": {
            "type": "string"
          }
        },
        "required": [
          "errorCode",
          "errorMessage"
        ],
        "additionalProperties": false
      },
      "AgentChatSuggestionsListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "chatId": {
                "type": "string",
                "description": "The chat the suggestions are for."
              },
              "travelersTripId": {
                "type": "string",
                "description": "The chat's trip."
              },
              "segments": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ItinerarySegment"
                },
                "description": "Up to three places found for the message and not yet on the itinerary, as activity segments ready to add to it."
              },
              "generatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
                "description": "When the suggestions were computed."
              }
            },
            "required": [
              "chatId",
              "travelersTripId",
              "segments",
              "generatedAt"
            ],
            "additionalProperties": false
          },
          {
            "type": "null"
          }
        ]
      },
      "AgentDocumentsCreateResponse": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgentAttachment"
            }
          }
        },
        "required": [
          "documents"
        ],
        "additionalProperties": false
      },
      "FileDownloadLink": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The presigned link: anyone holding it can download the file until it expires, so open it right away and never store it."
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "AgentEmailConnectionResponse": {
        "type": "object",
        "properties": {
          "connected": {
            "type": "boolean"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "session": {
            "type": "string"
          }
        },
        "required": [
          "connected",
          "email"
        ],
        "additionalProperties": false
      },
      "AgentKnowledgeListResponse": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "companyName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "excerpt": {
                  "type": "string"
                },
                "kind": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "score": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "companyName",
                "excerpt",
                "kind",
                "score",
                "title"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "results"
        ],
        "additionalProperties": false
      },
      "AgentMcpAuthorizationsGetResponse": {
        "type": "object",
        "properties": {
          "clientName": {
            "type": "string",
            "minLength": 1,
            "description": "The AI client's name as the client states it in its metadata (client_name); Nicer does not verify it. Its client id when it states none."
          },
          "clientId": {
            "type": "string",
            "minLength": 1,
            "description": "The client's OAuth client_id: the HTTPS address of its client metadata document, or the id Nicer gave it when it registered."
          },
          "redirectHost": {
            "type": "string",
            "minLength": 1,
            "description": "Where the client receives its code, as a person reads it: the host of its redirect URI, such as an assistant's website or 127.0.0.1. Redirect URIs are HTTPS or loopback HTTP only."
          },
          "isLocalRedirect": {
            "type": "boolean",
            "description": "Whether the code goes to a program on the person's own computer rather than to a website: a loopback address (127.0.0.1, [::1] or localhost). The consent page says so."
          },
          "surface": {
            "$ref": "#/components/schemas/McpSurface"
          },
          "access": {
            "type": "string",
            "enum": [
              "READ",
              "WRITE",
              "MONEY"
            ],
            "description": "The access the consent page preselects, read from the scopes of the client's request: READ or WRITE, never MONEY. The person picks READ, WRITE or MONEY when approving."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the request expires: ten minutes after the client made it. After that it is a 404 and the client must start again."
          }
        },
        "required": [
          "clientName",
          "clientId",
          "redirectHost",
          "isLocalRedirect",
          "surface",
          "access",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "AgentMcpAuthorizationsUpdateResponse": {
        "type": "object",
        "properties": {
          "redirectUrl": {
            "type": "string",
            "format": "uri",
            "description": "The client's redirect URI with the authorization response in its query: code, state and iss when approved (RFC 6749 §4.1.2, RFC 9207), or error=access_denied, state and iss when denied (RFC 6749 §4.1.2.1). The consent page navigates to it."
          }
        },
        "required": [
          "redirectUrl"
        ],
        "additionalProperties": false
      },
      "AgentMcpConnectionsDeleteResponse": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "minLength": 1,
            "description": "The id of the connection that no longer works: its tokens are refused from the next request on."
          }
        },
        "required": [
          "connectionId"
        ],
        "additionalProperties": false
      },
      "AgentMcpConnectionsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/McpConnection"
            },
            "description": "The connections that have not ended, newest first. A connection past its expiresAt is not listed."
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "AgentRephraseResponse": {
        "type": "object",
        "properties": {
          "response": {
            "type": "string",
            "description": "The rewritten text, and nothing else."
          }
        },
        "required": [
          "response"
        ],
        "additionalProperties": false
      },
      "AgentRoomDescriptionResponse": {
        "type": "object",
        "properties": {
          "roomTitle": {
            "type": "string",
            "description": "Clean, concise room name e.g. 'Standard King Guest Room', 'Deluxe Suite Ocean View'"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "infos": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "List of clean, human-readable bullet points for this section"
                },
                "sectionTitle": {
                  "type": "string",
                  "enum": [
                    "Highlights",
                    "Meal",
                    "Amenities",
                    "Cancellation information",
                    "Bed & Bedding",
                    "Bathroom",
                    "Room Features",
                    "Internet & Technology",
                    "View",
                    "Accessibility",
                    "Location",
                    "Loyalty & Perks",
                    "Other"
                  ],
                  "description": "Section category — only include sections that have relevant content"
                }
              },
              "required": [
                "infos",
                "sectionTitle"
              ],
              "additionalProperties": false
            },
            "description": "Organized sections of room information, omit empty sections"
          }
        },
        "required": [
          "roomTitle",
          "sections"
        ],
        "additionalProperties": false
      },
      "AgentSkillsListResponse": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "content": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "content"
        ],
        "additionalProperties": false
      },
      "AssetsCreatePutUrlResponse": {
        "type": "object",
        "properties": {
          "assetUrl": {
            "description": "The URL the file will be served at, for a public asset type; absent for a private one.",
            "type": "string"
          },
          "fileName": {
            "description": "metadata.fileName, when the request sent one.",
            "type": "string"
          },
          "key": {
            "type": "string",
            "description": "The key the file will have in storage."
          },
          "presignedPost": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Where to post the form."
              },
              "fields": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The form fields to send, as they are, before the file."
              }
            },
            "required": [
              "url",
              "fields"
            ],
            "additionalProperties": false,
            "description": "The form to post the file with, valid for an hour."
          }
        },
        "required": [
          "key",
          "presignedPost"
        ],
        "additionalProperties": {}
      },
      "BackofficeAudienceProfile": {
        "type": "object",
        "properties": {
          "advisorName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "For a traveler, the name of the advisor the CRM assigned them at their agency, as of the latest import; null for anyone else or when none is assigned."
          },
          "properties": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/BackofficeAnalyticsValue"
            },
            "description": "Every other property of the profile, under the analytics tool's own names and as it holds them ($-prefixed ones are the tool's own). advisorName and syncedAt are not repeated here. Personal data: name, email, phone, photo and location properties."
          },
          "syncedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the import last wrote the profile, UTC. It dates the sync, never the person's last visit; null when the tool holds no such date."
          }
        },
        "required": [
          "advisorName",
          "properties",
          "syncedAt"
        ],
        "additionalProperties": false,
        "description": "The people profile the product analytics tool keeps for one person: the advisor a traveler plans with and when the profile was last synced, typed, and every other property under the tool's own names."
      },
      "BackofficeAudience": {
        "type": "object",
        "properties": {
          "byCompany": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Live profiles by agency name; nicer for the accounts that signed up with no agency, unknown for the profiles with none recorded."
          },
          "byCountry": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Live profiles by the two-letter country code the analytics tool placed them in; unknown for the profiles it could not place."
          },
          "byRole": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Live profiles by platform role (traveler, advisor, admin or superadmin); unknown for the profiles with none recorded."
          },
          "createdByMonth": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "minLength": 1
            },
            "additionalProperties": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "description": "Live profiles by the UTC month (YYYY-MM) the account was created in; unknown when the profile has no creation date."
          },
          "deleted": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many profiles belong to deleted accounts. A deleted test account counts here and in testUsers."
          },
          "testUsers": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many profiles are test accounts, as their agency membership marks them."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many profiles there are, deleted and test accounts included."
          }
        },
        "required": [
          "byCompany",
          "byCountry",
          "byRole",
          "createdByMonth",
          "deleted",
          "testUsers",
          "total"
        ],
        "additionalProperties": false,
        "description": "Who is on the platform according to the product analytics tool's people profiles: how many there are, how many are deleted or test accounts, and the live ones by agency, country, role and month of creation."
      },
      "BackofficeHealth": {
        "type": "object",
        "properties": {
          "attention": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeOrder"
            },
            "description": "The orders created in the last 30 days that are NEEDS_ATTENTION or FAILED, the states a person must clear; newest first, at most 200."
          },
          "outbox": {
            "$ref": "#/components/schemas/BackofficeOutbox"
          },
          "overdueChecks": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many BOOKED or HELD orders the reservation monitor should have read again by now: the next check their latest read set is past."
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeHealthPayment"
            },
            "description": "Nicer's charges of the last 7 days. One row per UTC day, status and currency, the oldest day first."
          },
          "providerOutcomes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeProviderOutcome"
            },
            "description": "Provider calls of the last 7 days. One row per provider, operation and outcome, the most calls first."
          },
          "statuses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeOrderStatusTotal"
            },
            "description": "Every order, of any date, by status and currency, the most orders first."
          }
        },
        "required": [
          "attention",
          "outbox",
          "overdueChecks",
          "payments",
          "providerOutcomes",
          "statuses"
        ],
        "additionalProperties": false,
        "description": "How the platform stands now: orders by current status, the orders to clear, unpublished events, provider calls and Nicer's charges of the last 7 days, and overdue reservation checks."
      },
      "BackofficeOperations": {
        "type": "object",
        "properties": {
          "duplicates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeDuplicateBooking"
            },
            "description": "Possible duplicates, the most orders first. At most 200."
          },
          "staleObservations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeStaleReservation"
            },
            "description": "Reservations the provider stopped confirming, the latest failure first. At most 200."
          },
          "uncollected": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeUncollectedCommission"
            },
            "description": "Commission not collected, the largest balance still owed first. At most 200."
          },
          "unmatchedPayments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeUnmatchedPayment"
            },
            "description": "Charges whose trip never happened, the newest first. At most 200."
          },
          "unticketed": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeUnticketedOrder"
            },
            "description": "Flights booked but not ticketed, the newest first. At most 200."
          }
        },
        "required": [
          "duplicates",
          "staleObservations",
          "uncollected",
          "unmatchedPayments",
          "unticketed"
        ],
        "additionalProperties": false,
        "description": "The five exception queues a person must clear: flights booked but not ticketed, reservations the provider stopped confirming, commission not collected, charges whose trip never happened and possible duplicates."
      },
      "BackofficeOrderDetail": {
        "type": "object",
        "properties": {
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeOrderDocument"
            },
            "description": "The order's issued documents, oldest first."
          },
          "exchangeRates": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExchangeRateSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest stored reference exchange rates, to show amounts in another currency; null when they cannot be read. Never the rate a payment used."
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeFlightLeg"
            },
            "description": "The flight legs as the provider holds them now, in order; empty for other products."
          },
          "order": {
            "$ref": "#/components/schemas/BackofficeOrder"
          },
          "participants": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeOrderParticipant"
            },
            "description": "The people on the order, in slot order."
          },
          "providerObservation": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "observedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "recordedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "normalizationVersion": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "evidence": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "number",
                        "const": 1
                      },
                      "ticketed": {
                        "type": "boolean"
                      },
                      "cancelable": {
                        "type": "boolean"
                      },
                      "sourceDigest": {
                        "type": "string",
                        "pattern": "^[a-f0-9]{64}$"
                      },
                      "createdAt": {
                        "$ref": "#/components/schemas/ReservationTimestamp"
                      },
                      "updatedAt": {
                        "$ref": "#/components/schemas/ReservationTimestamp"
                      },
                      "retrievedAt": {
                        "$ref": "#/components/schemas/ReservationTimestamp"
                      },
                      "retentionEndsOn": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      "creator": {
                        "type": "object",
                        "properties": {
                          "supplierCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "officeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "homeOfficeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "userCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "agencyIataNumber": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "additionalProperties": false
                      },
                      "updater": {
                        "type": "object",
                        "properties": {
                          "supplierCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "officeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "homeOfficeId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "userCode": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          },
                          "agencyIataNumber": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "additionalProperties": false
                      },
                      "updateCount": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "contacts": {
                        "default": [],
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "givenName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "middleName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "surname": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "address": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "emails": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 320
                              }
                            },
                            "phones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "faxes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "emergencyPhones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "profiles": {
                        "default": [],
                        "maxItems": 200,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "type": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "travelers": {
                        "default": [],
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "givenName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "middleName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "surname": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "address": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "emails": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 320
                              }
                            },
                            "phones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "faxes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "emergencyPhones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "sourceReference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "nameReference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "passengerType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "birthDate": {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                            },
                            "gender": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "guaranteeReferences": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "unresolvedPaymentMethodIndices": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "loyaltyPrograms": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/LoyaltyProgram"
                              }
                            },
                            "identityDocuments": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "reference": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "issuedOn": {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  "expiresOn": {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  "issuingCountryCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "citizenshipCountryCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "residenceCountryCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "hostCountryCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "placeOfIssue": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "visaType": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "passportType": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "primaryHolder": {
                                    "type": "boolean"
                                  },
                                  "givenName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "middleName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "surname": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "birthDate": {
                                    "type": "string",
                                    "format": "date",
                                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                                  },
                                  "gender": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "destinationAddress": {
                                    "$ref": "#/components/schemas/ReservationAddress"
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "fares": {
                        "default": [],
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "typeCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "typeName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "recordTypeCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "recordTypeName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "pricedTravelerType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "requestedTravelerType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "createdAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "purchaseDeadline": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "issuer": {
                              "type": "object",
                              "properties": {
                                "supplierCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "officeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "homeOfficeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "userCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "agencyIataNumber": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "validPricing": {
                              "type": "boolean"
                            },
                            "negotiated": {
                              "type": "boolean"
                            },
                            "money": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "feesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subtotalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "taxesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "originalMoney": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "feesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subtotalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "taxesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "taxes": {
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "unconvertedAmount": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "commission": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "object",
                                  "properties": {
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "totalMinor": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "currency",
                                    "totalMinor"
                                  ],
                                  "additionalProperties": false
                                },
                                "unconvertedAmount": {
                                  "type": "string",
                                  "maxLength": 80,
                                  "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                },
                                "percentage": {
                                  "type": "string",
                                  "maxLength": 80,
                                  "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                },
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "calculationLine": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "tourCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "components": {
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "reference": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "scope": {
                                    "$ref": "#/components/schemas/ReservationAssociation"
                                  },
                                  "fareBasis": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "accountCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "brandCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "brandName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "programCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "programName": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "brandAttributes": {
                                    "maxItems": 100,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 2000
                                    }
                                  },
                                  "currentItinerary": {
                                    "type": "boolean"
                                  },
                                  "baseAmount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "checkedBaggage": {
                                    "type": "object",
                                    "properties": {
                                      "maximumPieces": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "totalWeightKilograms": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "pieces": {
                                        "maxItems": 100,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "pieces": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 9007199254740991
                                            },
                                            "maximumWeightKilograms": {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            "maximumWeightPounds": {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            "maximumSizeCentimeters": {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            "maximumSizeInches": {
                                              "type": "number",
                                              "minimum": 0
                                            },
                                            "description": {
                                              "type": "string",
                                              "minLength": 1,
                                              "maxLength": 2000
                                            }
                                          },
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "scope"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "bundledServices": {
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "type": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  },
                                  "quantity": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "fareRules": {
                        "default": [],
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "passengerType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "origin": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "destination": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "cancelable": {
                              "type": "boolean"
                            },
                            "changeable": {
                              "type": "boolean"
                            },
                            "refundable": {
                              "type": "boolean"
                            },
                            "exchangePenalties": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "applicability": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "conditionsApply": {
                                    "type": "boolean"
                                  },
                                  "hasNoShowCost": {
                                    "type": "boolean"
                                  },
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "noShowAmount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "refundPenalties": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "applicability": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "conditionsApply": {
                                    "type": "boolean"
                                  },
                                  "hasNoShowCost": {
                                    "type": "boolean"
                                  },
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "noShowAmount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "documents": {
                        "default": [],
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "ELECTRONIC_TICKET",
                                "NON_ELECTRONIC_TICKET",
                                "ANCILLARY_DOCUMENT",
                                "OTHER"
                              ]
                            },
                            "number": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "issuedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "issuer": {
                              "type": "object",
                              "properties": {
                                "supplierCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "officeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "homeOfficeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "userCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "agencyIataNumber": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "bundled": {
                              "type": "boolean"
                            },
                            "money": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "feesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subtotalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "taxesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "commission": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "object",
                                  "properties": {
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "totalMinor": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "currency",
                                    "totalMinor"
                                  ],
                                  "additionalProperties": false
                                },
                                "unconvertedAmount": {
                                  "type": "string",
                                  "maxLength": 80,
                                  "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                },
                                "percentage": {
                                  "type": "string",
                                  "maxLength": 80,
                                  "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                },
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "coupons": {
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "reference": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "segmentReference": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "number": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "status": {
                                    "type": "object",
                                    "properties": {
                                      "state": {
                                        "default": "UNKNOWN",
                                        "type": "string",
                                        "enum": [
                                          "CONFIRMED",
                                          "PENDING",
                                          "CANCELLED",
                                          "ISSUED",
                                          "VOIDED",
                                          "REFUNDED",
                                          "USED",
                                          "EXCHANGED",
                                          "OPEN",
                                          "UNKNOWN"
                                        ]
                                      },
                                      "code": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      }
                                    },
                                    "required": [
                                      "state"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "kind",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "ancillaries": {
                        "default": [],
                        "maxItems": 1000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "vendorCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "subcode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "categoryCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "categoryName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "applicability": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "source": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "quantity": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "documentReference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "refundable": {
                              "type": "boolean"
                            },
                            "commissionable": {
                              "type": "boolean"
                            },
                            "money": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "feesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subtotalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "taxesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "taxes": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "unconvertedAmount": {
                                    "type": "string",
                                    "maxLength": 80,
                                    "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "seats": {
                        "default": [],
                        "maxItems": 1000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "number": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "characteristics": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "scope",
                            "number"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "meals": {
                        "default": [],
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "segments": {
                        "default": [],
                        "maxItems": 200,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "kind": {
                              "type": "string",
                              "const": "FLIGHT"
                            },
                            "sourceType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "createdAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "supplierConfirmation": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "past": {
                              "type": "boolean"
                            },
                            "departure": {
                              "type": "object",
                              "properties": {
                                "airportCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "scheduledAt": {
                                  "$ref": "#/components/schemas/ReservationTimestamp"
                                },
                                "updatedAt": {
                                  "$ref": "#/components/schemas/ReservationTimestamp"
                                },
                                "terminalCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "terminalName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "gate": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "arrival": {
                              "type": "object",
                              "properties": {
                                "airportCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "scheduledAt": {
                                  "$ref": "#/components/schemas/ReservationTimestamp"
                                },
                                "updatedAt": {
                                  "$ref": "#/components/schemas/ReservationTimestamp"
                                },
                                "terminalCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "terminalName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "gate": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "aircraftCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "aircraftName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "marketingCarrierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "marketingCarrierName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "marketingFlightNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "operatingCarrierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "operatingCarrierName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "operatingFlightNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "cabinCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "cabinName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "bookingClass": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "fareBasis": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "seats": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "distanceMiles": {
                              "type": "number",
                              "minimum": 0
                            },
                            "durationMinutes": {
                              "type": "number",
                              "minimum": 0
                            },
                            "hiddenStops": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "airportCode": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "arrivalAt": {
                                    "$ref": "#/components/schemas/ReservationTimestamp"
                                  },
                                  "departureAt": {
                                    "$ref": "#/components/schemas/ReservationTimestamp"
                                  },
                                  "durationMinutes": {
                                    "type": "number",
                                    "minimum": 0
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "identityDocuments": {
                              "maxItems": 500,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "reference": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "status": {
                                    "type": "object",
                                    "properties": {
                                      "state": {
                                        "default": "UNKNOWN",
                                        "type": "string",
                                        "enum": [
                                          "CONFIRMED",
                                          "PENDING",
                                          "CANCELLED",
                                          "ISSUED",
                                          "VOIDED",
                                          "REFUNDED",
                                          "USED",
                                          "EXCHANGED",
                                          "OPEN",
                                          "UNKNOWN"
                                        ]
                                      },
                                      "code": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "name": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      }
                                    },
                                    "required": [
                                      "state"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "required": [
                                  "reference"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "scope",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "journeys": {
                        "default": [],
                        "maxItems": 200,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "origin": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "destination": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "departureAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "segmentCount": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "durationMinutes": {
                              "type": "number",
                              "minimum": 0
                            }
                          },
                          "required": [
                            "reference",
                            "scope"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "baggage": {
                        "default": [],
                        "maxItems": 500,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "CHECKED",
                                "CABIN",
                                "OTHER"
                              ]
                            },
                            "allowance": {
                              "type": "object",
                              "properties": {
                                "maximumPieces": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalWeightKilograms": {
                                  "type": "number",
                                  "minimum": 0
                                },
                                "pieces": {
                                  "maxItems": 100,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "pieces": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      "maximumWeightKilograms": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "maximumWeightPounds": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "maximumSizeCentimeters": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "maximumSizeInches": {
                                        "type": "number",
                                        "minimum": 0
                                      },
                                      "description": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 2000
                                      }
                                    },
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "charges": {
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "pieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "maximumWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumWeightPounds": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeCentimeters": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeInches": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  },
                                  "amount": {
                                    "type": "object",
                                    "properties": {
                                      "currency": {
                                        "type": "string",
                                        "pattern": "^[A-Z]{3}$"
                                      },
                                      "totalMinor": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      }
                                    },
                                    "required": [
                                      "currency",
                                      "totalMinor"
                                    ],
                                    "additionalProperties": false
                                  },
                                  "checkInOnly": {
                                    "type": "boolean"
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "reference",
                            "scope",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "specialRequests": {
                        "default": [],
                        "maxItems": 2000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "messageOmitted": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "reference",
                            "scope",
                            "code"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "guarantees": {
                        "default": [],
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "CARD",
                                "CASH",
                                "CHECK",
                                "AGENCY",
                                "OTHER",
                                "UNKNOWN"
                              ]
                            },
                            "typeCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "typeName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "useTypes": {
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "tripTypes": {
                              "maxItems": 30,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "linkedGuaranteeReferences": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "card": {
                              "type": "object",
                              "properties": {
                                "brand": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 255
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "expiresYearMonth": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[0-9]{4}-(?<month>0[1-9]|1[0-2])$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "holderName": {
                                  "description": "The name on the card. Only the order's payer and Nicer staff get it.",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "minLength": 1,
                                      "maxLength": 255
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "last4": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[0-9]{4}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "brand",
                                "expiresYearMonth",
                                "last4"
                              ],
                              "additionalProperties": false
                            },
                            "holder": {
                              "description": "The card holder's name, address, emails and phones. Only the order's payer and Nicer staff get it.",
                              "type": "object",
                              "properties": {
                                "givenName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "middleName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "surname": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "displayName": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "address": {
                                  "$ref": "#/components/schemas/ReservationAddress"
                                },
                                "emails": {
                                  "maxItems": 50,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 320
                                  }
                                },
                                "phones": {
                                  "maxItems": 50,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "number": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      }
                                    },
                                    "required": [
                                      "number"
                                    ],
                                    "additionalProperties": false
                                  }
                                },
                                "faxes": {
                                  "maxItems": 50,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "emergencyPhones": {
                                  "maxItems": 50,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "number": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      },
                                      "label": {
                                        "type": "string",
                                        "minLength": 1,
                                        "maxLength": 255
                                      }
                                    },
                                    "required": [
                                      "number"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "additionalProperties": false
                            },
                            "approval": {
                              "type": "object",
                              "properties": {
                                "supplierCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "amount": {
                                  "type": "object",
                                  "properties": {
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "totalMinor": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "currency",
                                    "totalMinor"
                                  ],
                                  "additionalProperties": false
                                },
                                "requestedAt": {
                                  "$ref": "#/components/schemas/ReservationTimestamp"
                                },
                                "expiresAt": {
                                  "$ref": "#/components/schemas/ReservationTimestamp"
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "reference",
                            "scope",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "history": {
                        "default": [],
                        "maxItems": 2000,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "reference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "SEGMENT",
                                "SERVICE",
                                "ACCOUNTING",
                                "CREATED",
                                "UPDATED",
                                "TICKETING",
                                "RETENTION",
                                "OTHER"
                              ]
                            },
                            "occurredAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "status": {
                              "type": "object",
                              "properties": {
                                "state": {
                                  "default": "UNKNOWN",
                                  "type": "string",
                                  "enum": [
                                    "CONFIRMED",
                                    "PENDING",
                                    "CANCELLED",
                                    "ISSUED",
                                    "VOIDED",
                                    "REFUNDED",
                                    "USED",
                                    "EXCHANGED",
                                    "OPEN",
                                    "UNKNOWN"
                                  ]
                                },
                                "code": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "required": [
                                "state"
                              ],
                              "additionalProperties": false
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "confirmation": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "documentReference": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "typeCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "fareApplicationType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "paymentType": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "invoiceReferences": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "guaranteeReferences": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "cardLast4": {
                              "type": "string",
                              "pattern": "^[0-9]{4}$"
                            },
                            "description": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 2000
                            },
                            "messageOmitted": {
                              "type": "boolean"
                            },
                            "money": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "feesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subtotalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "taxesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "commission": {
                              "type": "object",
                              "properties": {
                                "amount": {
                                  "type": "object",
                                  "properties": {
                                    "currency": {
                                      "type": "string",
                                      "pattern": "^[A-Z]{3}$"
                                    },
                                    "totalMinor": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 9007199254740991
                                    }
                                  },
                                  "required": [
                                    "currency",
                                    "totalMinor"
                                  ],
                                  "additionalProperties": false
                                },
                                "unconvertedAmount": {
                                  "type": "string",
                                  "maxLength": 80,
                                  "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                },
                                "percentage": {
                                  "type": "string",
                                  "maxLength": 80,
                                  "pattern": "^-?\\d+(?:\\.\\d+)?$"
                                },
                                "text": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            },
                            "taxAmount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedTaxAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "quantity": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "origin": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "destination": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "start": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "end": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "address": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "startAddress": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "endAddress": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "issuer": {
                              "type": "object",
                              "properties": {
                                "supplierCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "officeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "homeOfficeId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "userCode": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                "agencyIataNumber": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                }
                              },
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "reference",
                            "scope",
                            "kind"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "totals": {
                        "default": [],
                        "maxItems": 100,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "enum": [
                                "FLIGHT",
                                "FLIGHT_CURRENT",
                                "HOTEL",
                                "CAR_RENTAL",
                                "ANCILLARY",
                                "RESERVATION"
                              ]
                            },
                            "scope": {
                              "$ref": "#/components/schemas/ReservationAssociation"
                            },
                            "money": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "feesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "subtotalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "taxesMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "kind",
                            "scope",
                            "money"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "version",
                      "contacts",
                      "profiles",
                      "travelers",
                      "fares",
                      "fareRules",
                      "documents",
                      "ancillaries",
                      "seats",
                      "meals",
                      "segments",
                      "journeys",
                      "baggage",
                      "specialRequests",
                      "guarantees",
                      "history",
                      "totals"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "observedAt",
                  "recordedAt",
                  "normalizationVersion",
                  "evidence"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest successful read of the reservation at the provider, projected to this order's service; null when the order has none."
          },
          "recordedProduct": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RecordedProduct"
              },
              {
                "type": "null"
              }
            ],
            "description": "The service as the provider reported it, for an order recorded from a provider or enriched by a reservation read; null when none was recorded."
          },
          "timeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeTimelineEntry"
            },
            "description": "The order's story, newest first, at most 500 entries. Entries of kind PAYMENT_EVENT and PROVIDER are Nicer staff only: the server leaves them out for an agency admin."
          }
        },
        "required": [
          "documents",
          "exchangeRates",
          "legs",
          "order",
          "participants",
          "providerObservation",
          "recordedProduct",
          "timeline"
        ],
        "additionalProperties": false,
        "description": "One order with its participants, flight legs, issued documents, recorded service, latest provider observation and timeline."
      },
      "BackofficeOrderList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeOrder"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyCode"
            },
            "description": "Every currency the agency's orders use (every agency's for the whole platform), whatever the other filters: the choices of the currency filter."
          },
          "exchangeRates": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExchangeRateSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest stored reference exchange rates, to show amounts in another currency; null when they cannot be read. Never the rate a payment used."
          },
          "total": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders match the filters, across every page: the same from one page to the next."
          }
        },
        "required": [
          "items",
          "nextToken",
          "currencies",
          "exchangeRates",
          "total"
        ],
        "additionalProperties": false,
        "description": "One page of orders, newest first, with how many match, the currencies to filter by and the reference exchange rates."
      },
      "BackofficePersonBalances": {
        "type": "object",
        "properties": {
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficePersonBalance"
            },
            "description": "One row per agency, kind and currency the person holds an account in, ordered by agency, then kind, then currency; empty when they hold none."
          }
        },
        "required": [
          "balances"
        ],
        "additionalProperties": false,
        "description": "A person's ledger balances, as an advisor and as a traveler, in every agency the caller may read."
      },
      "BackofficeProviders": {
        "type": "object",
        "properties": {
          "commissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeProviderCommission"
            },
            "description": "Commission by provider. One row per provider, payment status and currency, by provider, then status."
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeProviderOperationTotal"
            },
            "description": "Provider calls made in the period. One row per provider and operation, the most calls first."
          },
          "range": {
            "$ref": "#/components/schemas/BackofficePeriod"
          },
          "sales": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeProviderSale"
            },
            "description": "Orders created in the period. One row per provider, product and currency, the most sold first."
          }
        },
        "required": [
          "commissions",
          "operations",
          "range",
          "sales"
        ],
        "additionalProperties": false,
        "description": "How each provider performed in a period: orders sold, cancelled and failed, calls and their failure rate and speed, and commission expected and received."
      },
      "BackofficeRetention": {
        "type": "object",
        "properties": {
          "cohorts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeCohort"
            },
            "description": "Customers by the month of their first BOOKED order, the oldest month first. One row per month."
          },
          "customers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeRepeatCustomer"
            },
            "description": "The most loyal customers: the most BOOKED orders first, then the highest lifetime value. One row per agency, customer and currency; at most 200."
          }
        },
        "required": [
          "cohorts",
          "customers"
        ],
        "additionalProperties": false,
        "description": "Who comes back, over every date: customers by the month of their first BOOKED order, and the customers with the most BOOKED orders."
      },
      "BackofficeRewards": {
        "type": "object",
        "properties": {
          "balances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeRewardBalance"
            },
            "description": "Traveler reward balances, the most available first. One row per agency, traveler and currency; at most 200."
          },
          "earnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeEarningTotal"
            },
            "description": "Every earning ever booked, gross. One row per earning kind, beneficiary kind, status and currency, the largest amount first."
          }
        },
        "required": [
          "balances",
          "earnings"
        ],
        "additionalProperties": false,
        "description": "Traveler reward balances now, and every earning the platform has booked by kind, beneficiary kind and status, over every date."
      },
      "SalesReport": {
        "type": "object",
        "properties": {
          "advisorBalances": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesAdvisorBalance"
            },
            "description": "What each advisor is owed now, in the currency asked for. One row per advisor."
          },
          "advisors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesAdvisor"
            },
            "description": "Advisor production. One row per month and advisor."
          },
          "agencies": {
            "description": "The agency ranking. One row per agency and product. Nicer staff only, and only for the whole platform: absent when an agency is named.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesAgency"
            }
          },
          "bookingValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesBookingValue"
            },
            "description": "Booked order values. One row per BOOKED order."
          },
          "byMonth": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesMonth"
            },
            "description": "Sales by month. One row per month and product."
          },
          "commissionDetail": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesCommissionDetail"
            },
            "description": "Open commission by product, property and age. One row per status, product, property and age."
          },
          "commissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesCommission"
            },
            "description": "Open commission. One row per payment status."
          },
          "currencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyCode"
            },
            "description": "Every currency the agency's orders use (every agency's for the whole platform), at any date: the choices of the currency filter."
          },
          "currency": {
            "description": "The currency every money section but currencyTotals is in.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "currencyTotals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesCurrencyTotal"
            },
            "description": "The period in every currency. One row per currency."
          },
          "daily": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesDay"
            },
            "description": "Bookings by day. One row per UTC day with orders."
          },
          "earnings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesEarning"
            },
            "description": "Earnings by who earns. One row per month, beneficiary kind, earning kind, entry type and status."
          },
          "exchangeRates": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExchangeRateSnapshot"
              },
              {
                "type": "null"
              }
            ],
            "description": "The latest stored reference exchange rates, to show amounts in another currency; null when they cannot be read. Never the rate a payment used."
          },
          "funnel": {
            "$ref": "#/components/schemas/SalesFunnel"
          },
          "leadTimes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesLeadTime"
            },
            "description": "Flight lead times. One row per bucket with legs."
          },
          "payments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesPayment"
            },
            "description": "Nicer's charges. One row per month and status."
          },
          "range": {
            "$ref": "#/components/schemas/BackofficePeriod"
          },
          "routes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SalesRoute"
            },
            "description": "Flight routes. One row per origin, destination and airline."
          }
        },
        "required": [
          "advisorBalances",
          "advisors",
          "bookingValues",
          "byMonth",
          "commissionDetail",
          "commissions",
          "currencies",
          "currency",
          "currencyTotals",
          "daily",
          "earnings",
          "exchangeRates",
          "funnel",
          "leadTimes",
          "payments",
          "range",
          "routes"
        ],
        "additionalProperties": false,
        "description": "The sales report of a period, of one agency or of the whole platform: money by month and day, the checkout funnel, payments, booking values, commission, earnings, advisors, routes and lead times."
      },
      "BackofficeTimelineList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeTimelineEntry"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "One page of the platform's events, newest first; nextToken is null on the last page."
      },
      "BackofficeTripDetail": {
        "type": "object",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeTripMember"
            },
            "description": "The member edges of the people in associatedUserIds that have one."
          },
          "trip": {
            "$ref": "#/components/schemas/BackofficeTrip"
          }
        },
        "required": [
          "members",
          "trip"
        ],
        "additionalProperties": false,
        "description": "A whole trip record and the people on it."
      },
      "BackofficeTripList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeTripListItem"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "One page of trips, newest first."
      },
      "BackofficeUserList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BackofficeUser"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "One page of accounts, in user id order; nextToken is null on the last page."
      },
      "BookingOffersRequirementsListResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "const": "READY"
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "issues": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 1
                    },
                    "fieldPath": {
                      "type": "string",
                      "minLength": 1
                    },
                    "message": {
                      "type": "string",
                      "minLength": 1
                    },
                    "travelerId": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "code",
                    "fieldPath",
                    "message"
                  ],
                  "additionalProperties": false
                }
              },
              "status": {
                "type": "string",
                "const": "INCOMPLETE"
              }
            },
            "required": [
              "issues",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "issues": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "minLength": 1
                    },
                    "fieldPath": {
                      "type": "string",
                      "minLength": 1
                    },
                    "message": {
                      "type": "string",
                      "minLength": 1
                    },
                    "travelerId": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "code",
                    "fieldPath",
                    "message"
                  ],
                  "additionalProperties": false
                }
              },
              "status": {
                "type": "string",
                "const": "MANUAL_REVIEW"
              }
            },
            "required": [
              "issues",
              "status"
            ],
            "additionalProperties": false
          }
        ]
      },
      "QuoteOutcomeResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "quote": {
                "$ref": "#/components/schemas/BookingQuoteResponse"
              },
              "status": {
                "type": "string",
                "const": "OK"
              }
            },
            "required": [
              "quote",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "previousPrice": {
                "$ref": "#/components/schemas/BookingPriceSnapshot"
              },
              "quote": {
                "$ref": "#/components/schemas/BookingQuoteResponse"
              },
              "requiresAcceptance": {
                "type": "boolean",
                "const": true
              },
              "termsChanged": {
                "type": "boolean"
              },
              "status": {
                "type": "string",
                "const": "PRICE_CHANGED"
              }
            },
            "required": [
              "previousPrice",
              "quote",
              "requiresAcceptance",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reasonCode": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "const": "UNAVAILABLE"
              }
            },
            "required": [
              "reasonCode",
              "status"
            ],
            "additionalProperties": false
          }
        ]
      },
      "SabreConnectionList": {
        "type": "object",
        "properties": {
          "connections": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SabreConnectionSummary"
            }
          }
        },
        "required": [
          "connections"
        ],
        "additionalProperties": false,
        "description": "Every agency's Sabre connection, on or off, as Nicer staff see it.",
        "examples": [
          {
            "connections": [
              {
                "agents": {
                  "enabled": 4,
                  "unclaimed": 1
                },
                "companyName": "sunrise-travel",
                "configVersion": "3f2a9c1e-5b7d-4e8a-9c0f-1d2e3f4a5b6c",
                "defaultAgentDkNumber": "7TZ123",
                "enabled": true,
                "executionMode": "LIVE",
                "homePcc": "N1CR",
                "lastTest": {
                  "errorCode": null,
                  "success": true,
                  "testedAt": "2026-11-10T15:04:05.000Z"
                },
                "products": [
                  "CAR_RENTAL",
                  "FLIGHT",
                  "HOTEL"
                ],
                "providerConfigId": "default",
                "secretName": "prod-commerce-provider-sabre-nicer-epr",
                "sessionPcc": "A1B2",
                "sharedWith": [
                  "harbor-voyages"
                ],
                "ticketsFromQueue": false,
                "updatedAt": "2026-11-09T18:30:00.000Z"
              }
            ]
          }
        ]
      },
      "MySabre": {
        "type": "object",
        "properties": {
          "agent": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "activatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "dkNumber": {
                    "$ref": "#/components/schemas/SabreDkNumber"
                  },
                  "isDefault": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "activatedAt",
                  "dkNumber",
                  "isDefault"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "bookingAs": {
            "$ref": "#/components/schemas/SabreBookingIdentity"
          },
          "enabled": {
            "type": "boolean"
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductKind"
            }
          }
        },
        "required": [
          "agent",
          "bookingAs",
          "enabled",
          "products"
        ],
        "additionalProperties": false,
        "description": "Whether the agency the caller acts in books through Sabre, which products it sells there, and whose DK the caller's own searches and bookings carry.",
        "examples": [
          {
            "agent": {
              "activatedAt": "2026-11-10T15:04:05.000Z",
              "dkNumber": "7TZ123",
              "isDefault": false
            },
            "bookingAs": "OWN_AGENT",
            "enabled": true,
            "products": [
              "CAR_RENTAL",
              "FLIGHT",
              "HOTEL"
            ]
          }
        ]
      },
      "BookingSelectionsCreateResponse": {
        "type": "object",
        "properties": {
          "bookableUntil": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "offerExpiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "preview": {
            "$ref": "#/components/schemas/BookingSelectionPreviewResponse"
          },
          "selectionId": {
            "type": "string",
            "minLength": 1
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "bookableUntil",
          "itineraryItemId",
          "offerExpiresAt",
          "preview",
          "selectionId",
          "travelersTripId"
        ],
        "additionalProperties": false
      },
      "BookingSelectionsGetResponse": {
        "type": "object",
        "properties": {
          "availability": {
            "type": "string",
            "enum": [
              "LIVE",
              "UNAVAILABLE"
            ]
          },
          "bookableUntil": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "offerExpiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "preview": {
            "$ref": "#/components/schemas/BookingSelectionPreviewResponse"
          },
          "refreshedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "selectionId": {
            "type": "string",
            "minLength": 1
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "availability",
          "bookableUntil",
          "itineraryItemId",
          "offerExpiresAt",
          "preview",
          "refreshedAt",
          "selectionId",
          "travelersTripId"
        ],
        "additionalProperties": false
      },
      "BookingSettingsActionsCreateResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "resourceType": {
                "type": "string",
                "enum": [
                  "CHANNEL",
                  "PROVIDER",
                  "SABRE_ADVISOR"
                ]
              },
              "status": {
                "type": "string",
                "const": "SAVED"
              },
              "version": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "string",
                    "minLength": 1
                  }
                ]
              }
            },
            "required": [
              "resourceType",
              "status",
              "version"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "resourceType": {
                "type": "string",
                "const": "SABRE_ADVISOR"
              },
              "status": {
                "type": "string",
                "const": "DELETED"
              }
            },
            "required": [
              "resourceType",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "errorCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "errorMessage": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "latencyMs": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "status": {
                "type": "string",
                "const": "TESTED"
              },
              "success": {
                "type": "boolean"
              },
              "testedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              }
            },
            "required": [
              "errorCode",
              "errorMessage",
              "latencyMs",
              "status",
              "success",
              "testedAt"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "errorCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "errorMessage": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pcc": {
                "type": "string",
                "minLength": 1
              },
              "queues": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "waiting": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "ended": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "ignored": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "moved": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "number": {
                      "type": "string",
                      "minLength": 1
                    },
                    "removed": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "waiting",
                    "ended",
                    "ignored",
                    "moved",
                    "number",
                    "removed"
                  ],
                  "additionalProperties": false
                }
              },
              "status": {
                "type": "string",
                "const": "QUEUES_READ"
              }
            },
            "required": [
              "errorCode",
              "errorMessage",
              "pcc",
              "queues",
              "status"
            ],
            "additionalProperties": false
          }
        ]
      },
      "BookingSettingsListResponse": {
        "type": "object",
        "properties": {
          "advisors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "advisorUserId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "claim": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "claimedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "claimedByUserId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "origin": {
                          "type": "string",
                          "enum": [
                            "SELF_ACTIVATION",
                            "SETTINGS"
                          ]
                        }
                      },
                      "required": [
                        "claimedAt",
                        "claimedByUserId",
                        "origin"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "corporationName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "dkNumber": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "dkNumberMasked": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "enabled": {
                  "type": "boolean"
                },
                "firstName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isDefault": {
                  "type": "boolean"
                },
                "lastName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "pccOverride": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phone": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "profileId": {
                  "type": "string",
                  "minLength": 1
                },
                "profileVersion": {
                  "type": "string",
                  "minLength": 1
                },
                "providerConfigId": {
                  "type": "string",
                  "minLength": 1
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                }
              },
              "required": [
                "advisorUserId",
                "corporationName",
                "createdAt",
                "dkNumber",
                "dkNumberMasked",
                "email",
                "enabled",
                "firstName",
                "isDefault",
                "lastName",
                "pccOverride",
                "phone",
                "profileId",
                "profileVersion",
                "providerConfigId",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "configVersion": {
                  "type": "string",
                  "minLength": 1
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "enabled": {
                  "type": "boolean"
                },
                "homePcc": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastTest": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/SabreConnectionTest"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "products": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ProductKind"
                  }
                },
                "providerConfigId": {
                  "type": "string",
                  "minLength": 1
                },
                "providerKey": {
                  "$ref": "#/components/schemas/ProviderKey"
                },
                "publicConfiguration": {
                  "type": "object",
                  "properties": {
                    "agencyAddress": {
                      "$ref": "#/components/schemas/AgencyAddress"
                    },
                    "hotelPointOfSaleAddress": {
                      "$ref": "#/components/schemas/AgencyAddress"
                    },
                    "agencyProfile": {
                      "$ref": "#/components/schemas/SabreProfileReference"
                    },
                    "hotelIataOverride": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/HotelIataOverride"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sabreExecutionMode": {
                      "$ref": "#/components/schemas/SabreExecutionMode"
                    },
                    "ticketingPrinter": {
                      "$ref": "#/components/schemas/SabreTicketingPrinter"
                    },
                    "ticketingQueue": {
                      "$ref": "#/components/schemas/SabreTicketingQueue"
                    },
                    "excludedAirlineCodes": {
                      "maxItems": 99,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[A-Z0-9]{2}$"
                      }
                    },
                    "alias": {
                      "type": "string"
                    },
                    "domain": {
                      "type": "string"
                    },
                    "maskedUsername": {
                      "type": "string"
                    }
                  },
                  "additionalProperties": {}
                },
                "secretConfigured": {
                  "type": "boolean"
                },
                "secretName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sessionPcc": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sharedWith": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                }
              },
              "required": [
                "configVersion",
                "createdAt",
                "enabled",
                "homePcc",
                "products",
                "providerConfigId",
                "providerKey",
                "publicConfiguration",
                "secretConfigured",
                "sessionPcc",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "advisors",
          "providers"
        ],
        "additionalProperties": false
      },
      "BookingTripsInsuranceQuotesCreateResponse": {
        "type": "object",
        "properties": {
          "insurableSegmentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "missingFields": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "fields": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "ADDRESS",
                      "BIRTH_DATE",
                      "CITY",
                      "COUNTRY",
                      "EMAIL",
                      "FAMILY_NAME",
                      "GIVEN_NAME",
                      "PHONE_NUMBER",
                      "POSTAL_CODE",
                      "STATE"
                    ]
                  }
                },
                "travelerId": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "fields",
                "travelerId"
              ],
              "additionalProperties": false
            }
          },
          "quotes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InsuranceQuote"
            }
          },
          "selectedSegmentIds": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "insurableSegmentIds",
          "missingFields",
          "quotes",
          "selectedSegmentIds"
        ],
        "additionalProperties": false
      },
      "SingleChatResponse": {
        "type": "object",
        "properties": {
          "chat": {
            "type": "object",
            "properties": {
              "chatId": {
                "type": "string"
              },
              "chatTitle": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "trip",
                  "direct"
                ]
              },
              "lastMessageTimestamp": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "participantUserIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "suggestionsEnabled": {
                "type": "boolean"
              },
              "travelersTripId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The trip this chat belongs to, when it is a trip chat."
              },
              "type": {
                "type": "string",
                "const": "Chat"
              },
              "updatedAt": {
                "description": "The time of the last message; absent before the first one.",
                "type": "string"
              }
            },
            "required": [
              "chatId",
              "chatTitle",
              "companyName",
              "kind",
              "lastMessageTimestamp",
              "participantUserIds",
              "suggestionsEnabled",
              "travelersTripId",
              "type"
            ],
            "additionalProperties": false
          },
          "conversations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attachmentUrls": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "authorId": {
                  "type": "string"
                },
                "chatId": {
                  "type": "string"
                },
                "createdBy": {
                  "type": "string"
                },
                "lastModifiedBy": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                },
                "messageHtml": {
                  "description": "The text as HTML.",
                  "type": "string"
                },
                "needsAiResponse": {
                  "type": "boolean"
                },
                "conversationId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "ChatConversation"
                },
                "seen": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {
                    "type": "boolean"
                  },
                  "description": "Per participant userId, whether they have read up to this message."
                }
              },
              "required": [
                "attachmentUrls",
                "authorId",
                "chatId",
                "createdBy",
                "lastModifiedBy",
                "message",
                "conversationId",
                "createdAt",
                "updatedAt",
                "type",
                "seen"
              ],
              "additionalProperties": false
            },
            "description": "One page of messages, oldest first."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the older messages; null on the last page."
          },
          "travelersTrip": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "assignedAdvisorUserId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "associatedChatId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "associatedTripItineraryId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "associatedUserIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "hasActivity": {
                    "type": "boolean"
                  },
                  "primaryTravelerUserId": {
                    "type": "string"
                  },
                  "travelersTripId": {
                    "type": "string"
                  },
                  "tripTitle": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "const": "TravelersTrip"
                  }
                },
                "required": [
                  "associatedUserIds",
                  "createdAt",
                  "primaryTravelerUserId",
                  "travelersTripId",
                  "tripTitle",
                  "type"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The chat's trip, null for a direct chat or when the trip cannot be read."
          },
          "users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "avatar": {
                  "type": "string"
                },
                "deleted": {
                  "type": "boolean"
                },
                "familyName": {
                  "type": "string"
                },
                "fullName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "givenName": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "User"
                },
                "userId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "role": {
                  "$ref": "#/components/schemas/AuthScope"
                },
                "tenantId": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "familyName",
                "fullName",
                "givenName",
                "type",
                "userId"
              ],
              "additionalProperties": false
            },
            "description": "The participants, the past authors of these messages, and the system senders, which carry `role`, `tenantId` and timestamps."
          }
        },
        "required": [
          "chat",
          "conversations",
          "nextToken",
          "travelersTrip",
          "users"
        ],
        "additionalProperties": false
      },
      "ChatListResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ChatListItem"
        }
      },
      "ChatConversation": {
        "type": "object",
        "properties": {
          "attachmentUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "authorId": {
            "type": "string"
          },
          "chatId": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "messageHtml": {
            "description": "The text as HTML.",
            "type": "string"
          },
          "needsAiResponse": {
            "type": "boolean"
          },
          "conversationId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "ChatConversation"
          }
        },
        "required": [
          "attachmentUrls",
          "authorId",
          "chatId",
          "createdBy",
          "lastModifiedBy",
          "message",
          "conversationId",
          "createdAt",
          "updatedAt",
          "type"
        ],
        "additionalProperties": false
      },
      "ChatToggleArchiveResponse": {
        "type": "object",
        "properties": {
          "isArchived": {
            "type": "boolean"
          }
        },
        "required": [
          "isArchived"
        ],
        "additionalProperties": false
      },
      "CommerceAuditEventsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditEvent"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommerceCheckoutsCreateResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "OK",
              "PRICE_CHANGED",
              "UNAVAILABLE"
            ]
          },
          "checkout": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "expiresAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  "orderId": {
                    "type": "string",
                    "minLength": 1
                  },
                  "paymentUrl": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "title": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "totalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "currency",
                  "expiresAt",
                  "orderId",
                  "paymentUrl",
                  "title",
                  "totalMinor"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "status",
          "checkout",
          "reason"
        ],
        "additionalProperties": false
      },
      "CommissionExport": {
        "type": "object",
        "properties": {
          "columns": {
            "maxItems": 60,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExportColumn"
            }
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "downloadUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "errorCode": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "COMMISSION_EXPORT_TOO_LARGE",
                  "COMMISSION_EXPORT_TIMED_OUT",
                  "COMMISSION_EXPORT_FAILED"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "exportId": {
            "type": "string",
            "minLength": 1
          },
          "fileName": {
            "type": "string",
            "minLength": 1
          },
          "finishedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "filter": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "format": {
            "$ref": "#/components/schemas/ExportFormat"
          },
          "groupBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExportColumn"
              },
              {
                "type": "null"
              }
            ]
          },
          "presetId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "requestedByUserId": {
            "type": "string",
            "minLength": 1
          },
          "rowCount": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "sizeBytes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "startedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CommissionExportStatus"
          },
          "subject": {
            "$ref": "#/components/schemas/ExportSubject"
          },
          "totalsOnly": {
            "type": "boolean"
          }
        },
        "required": [
          "columns",
          "companyName",
          "createdAt",
          "downloadUrl",
          "errorCode",
          "expiresAt",
          "exportId",
          "fileName",
          "finishedAt",
          "filter",
          "format",
          "groupBy",
          "presetId",
          "requestedByUserId",
          "rowCount",
          "sizeBytes",
          "startedAt",
          "status",
          "subject",
          "totalsOnly"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionExportsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionExport"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommissionImport": {
        "type": "object",
        "properties": {
          "committedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "type": "string",
            "minLength": 1
          },
          "errorCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "fileName": {
            "type": "string",
            "minLength": 1
          },
          "format": {
            "type": "string",
            "enum": [
              "CSV",
              "TSV",
              "TXT",
              "XLSX"
            ]
          },
          "headers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "presetId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "source": {
            "type": "string",
            "enum": [
              "FILE_IMPORT"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CommissionFileStatus"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "advisors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportAdvisor"
            }
          },
          "counts": {
            "type": "object",
            "properties": {
              "committed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "duplicate": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "invalid": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "rows": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "valid": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "committed",
              "duplicate",
              "invalid",
              "rows",
              "valid"
            ],
            "additionalProperties": false
          },
          "importId": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "BOOKINGS"
            ]
          },
          "mapping": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BookingImportMapping"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "committedAt",
          "companyName",
          "createdAt",
          "createdByUserId",
          "errorCode",
          "fileName",
          "format",
          "headers",
          "jobId",
          "presetId",
          "sizeBytes",
          "source",
          "status",
          "updatedAt",
          "advisorUserId",
          "advisors",
          "counts",
          "importId",
          "kind",
          "mapping"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionImportsCreateResponse": {
        "type": "object",
        "properties": {
          "import": {
            "$ref": "#/components/schemas/CommissionImport"
          },
          "upload": {
            "$ref": "#/components/schemas/UploadLink"
          }
        },
        "required": [
          "import",
          "upload"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionImportsGetResponse": {
        "type": "object",
        "properties": {
          "import": {
            "$ref": "#/components/schemas/CommissionImport"
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "rows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportRow"
            }
          }
        },
        "required": [
          "import",
          "nextCursor",
          "rows"
        ],
        "additionalProperties": false
      },
      "CommissionInvoiceDetail": {
        "type": "object",
        "properties": {
          "amountBasis": {
            "type": "string",
            "enum": [
              "BALANCE",
              "ESTIMATE",
              "GROSS"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "invoiceId": {
            "type": "string",
            "minLength": 1
          },
          "itemCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "kind": {
            "type": "string",
            "enum": [
              "SUPPLIER",
              "CLIENT"
            ]
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "pdfUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "totalMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionInvoiceLine"
            }
          }
        },
        "required": [
          "amountBasis",
          "createdAt",
          "createdByUserId",
          "currency",
          "invoiceId",
          "itemCount",
          "kind",
          "number",
          "pdfUrl",
          "supplierId",
          "supplierName",
          "totalMinor",
          "version",
          "lines"
        ],
        "additionalProperties": false
      },
      "CommissionOverview": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "configuration": {
            "$ref": "#/components/schemas/CommissionOverviewConfiguration"
          },
          "files": {
            "$ref": "#/components/schemas/CommissionOverviewFiles"
          },
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "moneyReceived": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionOverviewMoneyReceived"
            }
          },
          "payees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionOverviewPayees"
            }
          },
          "payouts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionOverviewPayouts"
            }
          },
          "production": {
            "$ref": "#/components/schemas/CommissionSummary"
          },
          "receivables": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionOverviewReceivables"
            }
          },
          "reportingCurrency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "reportingMoneyReceived": {
            "$ref": "#/components/schemas/CommissionOverviewMoneyReceived"
          },
          "reportingReceivables": {
            "$ref": "#/components/schemas/CommissionOverviewReceivables"
          },
          "statements": {
            "$ref": "#/components/schemas/CommissionOverviewStatements"
          },
          "unconvertedCurrencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          "window": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "to": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              }
            },
            "required": [
              "from",
              "to"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "companyName",
          "configuration",
          "files",
          "generatedAt",
          "moneyReceived",
          "payees",
          "payouts",
          "production",
          "receivables",
          "reportingCurrency",
          "reportingMoneyReceived",
          "reportingReceivables",
          "statements",
          "unconvertedCurrencies",
          "window"
        ],
        "additionalProperties": false
      },
      "CommissionReport": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "PRODUCTION_BY_SUPPLIER"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionBySupplierRow"
                }
              },
              "totals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionTotal"
                }
              },
              "reportingCurrency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "reportingTotals": {
                "$ref": "#/components/schemas/ProductionTotal"
              },
              "unconvertedCurrencies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals",
              "reportingCurrency",
              "reportingTotals",
              "unconvertedCurrencies"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "PRODUCTION_BY_ADVISOR"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionByAdvisorRow"
                }
              },
              "totals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionTotal"
                }
              },
              "reportingCurrency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "reportingTotals": {
                "$ref": "#/components/schemas/ProductionTotal"
              },
              "unconvertedCurrencies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals",
              "reportingCurrency",
              "reportingTotals",
              "unconvertedCurrencies"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "PRODUCTION_BY_CLIENT"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionByClientRow"
                }
              },
              "totals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionTotal"
                }
              },
              "reportingCurrency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "reportingTotals": {
                "$ref": "#/components/schemas/ProductionTotal"
              },
              "unconvertedCurrencies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals",
              "reportingCurrency",
              "reportingTotals",
              "unconvertedCurrencies"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "PRODUCTION_BY_DESTINATION"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionByDestinationRow"
                }
              },
              "totals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionTotal"
                }
              },
              "reportingCurrency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "reportingTotals": {
                "$ref": "#/components/schemas/ProductionTotal"
              },
              "unconvertedCurrencies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals",
              "reportingCurrency",
              "reportingTotals",
              "unconvertedCurrencies"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "RECEIVABLES_AGING"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReceivablesAgingRow"
                }
              },
              "totals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReceivablesTotal"
                }
              },
              "reportingCurrency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "reportingTotals": {
                "$ref": "#/components/schemas/ReceivablesTotal"
              },
              "unconvertedCurrencies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals",
              "reportingCurrency",
              "reportingTotals",
              "unconvertedCurrencies"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "RECONCILIATION_EXCEPTIONS"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReconciliationExceptionRow"
                }
              },
              "totals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReconciliationExceptionTotal"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextCursor": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "period": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "reportKind": {
                "type": "string",
                "const": "SUPPLIER_DIRECTORY"
              },
              "rows": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SupplierDirectoryRow"
                }
              },
              "totals": {
                "minItems": 1,
                "maxItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionTotal"
                }
              },
              "previousPeriod": {
                "$ref": "#/components/schemas/CommissionReportPeriod"
              },
              "previousTotals": {
                "maxItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductionTotal"
                }
              },
              "reportingCurrency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "supplierCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "unconvertedCurrencies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              }
            },
            "required": [
              "nextCursor",
              "period",
              "reportKind",
              "rows",
              "totals",
              "previousPeriod",
              "previousTotals",
              "reportingCurrency",
              "supplierCount",
              "unconvertedCurrencies"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommissionSettingsDocument": {
        "type": "object",
        "properties": {
          "exportPresets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExportPreset"
            }
          },
          "hostRelationships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostRelationship"
            }
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgencyIdentifier"
            }
          },
          "importPresets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportPreset"
            }
          },
          "settings": {
            "$ref": "#/components/schemas/CommissionSettings"
          },
          "splitPlanAssignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitPlanAssignment"
            }
          },
          "splitPlans": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitPlan"
            }
          }
        },
        "required": [
          "exportPresets",
          "hostRelationships",
          "identifiers",
          "importPresets",
          "settings",
          "splitPlanAssignments",
          "splitPlans"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionsActionsCreateResponse": {
        "type": "object",
        "properties": {
          "item": {
            "$ref": "#/components/schemas/CommissionItemDetail"
          },
          "upload": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadLink"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "item",
          "upload"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionsAdvisorsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommissionItemDetail": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "agingBucket": {
            "$ref": "#/components/schemas/AgingBucket"
          },
          "balanceMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "bookedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "category": {
            "$ref": "#/components/schemas/CommissionCategory"
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "collectedByNicer": {
            "type": "boolean"
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "daysPastDue": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "dueOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "externalBookingId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "grossMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "isCommissionable": {
            "type": "boolean"
          },
          "isFlagged": {
            "type": "boolean"
          },
          "isOverdue": {
            "type": "boolean"
          },
          "kind": {
            "$ref": "#/components/schemas/CommissionItemKind"
          },
          "lastReceivedOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "needsReview": {
            "type": "boolean"
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "orderId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentStatus": {
            "$ref": "#/components/schemas/CommissionPaymentStatus"
          },
          "percentPaid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivingCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "$ref": "#/components/schemas/CommissionItemSource"
          },
          "supplier": {
            "type": "object",
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supplierId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "supplierId",
              "verified"
            ],
            "additionalProperties": false
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "CHANGE_EXPECTED",
                "CHANGE_DATES",
                "SET_DUE_DATE",
                "CANCEL",
                "REOPEN",
                "SET_COMMISSIONABLE",
                "WRITE_OFF",
                "CONFIRM_IMPORTED",
                "REASSIGN_ADVISOR",
                "SET_FLAG",
                "ADD_NOTE",
                "SET_TAGS",
                "ADD_ATTACHMENT",
                "REPORT_MISSING"
              ]
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionAttachment"
            }
          },
          "cancelReason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancelledAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "commissionableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "expectationVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "identifier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommissionIdentifierRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionNote"
            }
          },
          "paymentTermDays": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "quantity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "rateBps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "revisions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionItemRevision"
            }
          },
          "supplierCostMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "writeOffReason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "writtenOffAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "advisorUserId",
          "agingBucket",
          "balanceMinor",
          "bookedOn",
          "category",
          "clientName",
          "collectedByNicer",
          "commissionItemId",
          "companyName",
          "confirmationNumber",
          "currency",
          "daysPastDue",
          "dueOn",
          "expectedMinor",
          "externalBookingId",
          "grossMinor",
          "isCommissionable",
          "isFlagged",
          "isOverdue",
          "kind",
          "lastReceivedOn",
          "needsReview",
          "number",
          "orderId",
          "paymentStatus",
          "percentPaid",
          "providerLocator",
          "receivedMinor",
          "receivingCompanyName",
          "source",
          "supplier",
          "tags",
          "travelEnd",
          "travelStart",
          "updatedAt",
          "allowedActions",
          "attachments",
          "cancelReason",
          "cancelledAt",
          "clientUserId",
          "commissionableMinor",
          "createdAt",
          "createdByUserId",
          "expectationVersion",
          "identifier",
          "notes",
          "paymentTermDays",
          "quantity",
          "rateBps",
          "revisions",
          "supplierCostMinor",
          "travelersTripId",
          "writeOffReason",
          "writtenOffAt"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionItemSummary"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommissionSummary": {
        "type": "object",
        "properties": {
          "byAgingBucket": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agingBucket": {
                  "$ref": "#/components/schemas/AgingBucket"
                },
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              },
              "required": [
                "agingBucket",
                "balanceMinor",
                "count",
                "currency"
              ],
              "additionalProperties": false
            }
          },
          "byStatus": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "expectedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "paymentStatus": {
                  "$ref": "#/components/schemas/CommissionPaymentStatus"
                },
                "receivedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "balanceMinor",
                "count",
                "currency",
                "expectedMinor",
                "paymentStatus",
                "receivedMinor"
              ],
              "additionalProperties": false
            }
          },
          "period": {
            "type": "object",
            "properties": {
              "dateField": {
                "type": "string",
                "enum": [
                  "TRAVEL_END",
                  "TRAVEL_START",
                  "BOOKED",
                  "DUE"
                ]
              },
              "from": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "to": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "dateField",
              "from",
              "to"
            ],
            "additionalProperties": false
          },
          "reportingByAgingBucket": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agingBucket": {
                  "$ref": "#/components/schemas/AgingBucket"
                },
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                }
              },
              "required": [
                "agingBucket",
                "balanceMinor",
                "count",
                "currency"
              ],
              "additionalProperties": false
            }
          },
          "reportingByStatus": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "expectedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "paymentStatus": {
                  "$ref": "#/components/schemas/CommissionPaymentStatus"
                },
                "receivedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "grossMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "balanceMinor",
                "count",
                "currency",
                "expectedMinor",
                "paymentStatus",
                "receivedMinor",
                "grossMinor"
              ],
              "additionalProperties": false
            }
          },
          "reportingCurrency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "reportingTopSuppliers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "supplierId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "balanceMinor",
                "count",
                "currency",
                "name",
                "supplierId"
              ],
              "additionalProperties": false
            }
          },
          "reportingTotals": {
            "type": "object",
            "properties": {
              "balanceMinor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "dueNext30Minor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "expectedMinor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "overdueCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "overdueMinor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "receivedMinor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "grossMinor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "balanceMinor",
              "count",
              "currency",
              "dueNext30Minor",
              "expectedMinor",
              "overdueCount",
              "overdueMinor",
              "receivedMinor",
              "grossMinor"
            ],
            "additionalProperties": false
          },
          "topSuppliers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "supplierId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "balanceMinor",
                "count",
                "currency",
                "name",
                "supplierId"
              ],
              "additionalProperties": false
            }
          },
          "totals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "dueNext30Minor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "expectedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "overdueCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "overdueMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "receivedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "balanceMinor",
                "count",
                "currency",
                "dueNext30Minor",
                "expectedMinor",
                "overdueCount",
                "overdueMinor",
                "receivedMinor"
              ],
              "additionalProperties": false
            }
          },
          "unconvertedCurrencies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyCode"
            }
          }
        },
        "required": [
          "byAgingBucket",
          "byStatus",
          "period",
          "reportingByAgingBucket",
          "reportingByStatus",
          "reportingCurrency",
          "reportingTopSuppliers",
          "reportingTotals",
          "topSuppliers",
          "totals",
          "unconvertedCurrencies"
        ],
        "additionalProperties": false
      },
      "ExternalBooking": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "bookedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "bookingVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "category": {
            "$ref": "#/components/schemas/CommissionCategory"
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "clientUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "externalBookingId": {
            "type": "string",
            "minLength": 1
          },
          "externalReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "grossMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "identifier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommissionIdentifierRef"
              },
              {
                "type": "null"
              }
            ]
          },
          "importId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionItemSummary"
            }
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "receivingCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "type": "string",
            "enum": [
              "MANUAL",
              "FILE_IMPORT"
            ]
          },
          "supplier": {
            "type": "object",
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supplierId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "supplierId",
              "verified"
            ],
            "additionalProperties": false
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "advisorUserId",
          "bookedOn",
          "bookingVersion",
          "category",
          "clientName",
          "clientUserId",
          "companyName",
          "confirmationNumber",
          "createdAt",
          "createdByUserId",
          "currency",
          "externalBookingId",
          "externalReference",
          "grossMinor",
          "identifier",
          "importId",
          "items",
          "providerLocator",
          "quantity",
          "receivingCompanyName",
          "source",
          "supplier",
          "travelEnd",
          "travelersTripId",
          "travelStart",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "CommerceExternalPaymentsCreateResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "amount": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000000
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  }
                },
                "required": [
                  "amountMinor",
                  "currency"
                ],
                "additionalProperties": false
              },
              "externalPaymentId": {
                "type": "string",
                "minLength": 1
              },
              "itineraryItemId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "orderId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paidAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "status": {
                "type": "string",
                "const": "RECORDED"
              },
              "travelersTripId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "amount",
              "externalPaymentId",
              "itineraryItemId",
              "orderId",
              "paidAt",
              "recordedAt",
              "status",
              "travelersTripId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "externalPaymentId": {
                "type": "string",
                "minLength": 1
              },
              "reversedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "reversalEntryId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "const": "REVERSED"
              }
            },
            "required": [
              "externalPaymentId",
              "reversedAt",
              "reversalEntryId",
              "status"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceFinanceBalancesListResponse": {
        "type": "object",
        "properties": {
          "balances": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "accountCode": {
                  "type": "string",
                  "minLength": 1
                },
                "availableMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "beneficiaryId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "beneficiaryKind": {
                  "type": "string",
                  "enum": [
                    "ADVISOR",
                    "COMPANY",
                    "NICER",
                    "TRAVELER"
                  ]
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "pendingMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "receivableMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "accountCode",
                "availableMinor",
                "beneficiaryId",
                "beneficiaryKind",
                "currency",
                "pendingMinor",
                "receivableMinor"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "balances"
        ],
        "additionalProperties": false
      },
      "CommerceFinanceEarningsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "$ref": "#/components/schemas/Money"
                },
                "beneficiaryId": {
                  "type": "string",
                  "minLength": 1
                },
                "beneficiaryKind": {
                  "type": "string",
                  "enum": [
                    "ADVISOR",
                    "COMPANY",
                    "TRAVELER"
                  ]
                },
                "commissionItemId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "earningId": {
                  "type": "string",
                  "minLength": 1
                },
                "earningKind": {
                  "type": "string",
                  "enum": [
                    "ADJUSTMENT",
                    "ADVISOR_COMMISSION",
                    "AGENCY_COMMISSION",
                    "HOST_SHARE",
                    "PLANNING_FEE",
                    "REFERRAL_COMMISSION",
                    "TRAVELER_REWARD"
                  ]
                },
                "entryType": {
                  "type": "string",
                  "enum": [
                    "EARNING",
                    "REVERSAL",
                    "CLAWBACK"
                  ]
                },
                "orderId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "PENDING",
                    "AVAILABLE",
                    "REVERSED"
                  ]
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                }
              },
              "required": [
                "amount",
                "beneficiaryId",
                "beneficiaryKind",
                "commissionItemId",
                "earningId",
                "earningKind",
                "entryType",
                "orderId",
                "status",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersActionsCreateResponse": {
        "type": "object",
        "properties": {
          "checkoutSession": {
            "type": "object",
            "properties": {
              "token": {
                "type": "string",
                "minLength": 1
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              }
            },
            "required": [
              "token",
              "expiresAt"
            ],
            "additionalProperties": false
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "orderStatus": {
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "paymentUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACCEPTED",
              "COMPLETED"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "EXCHANGE_CHECKOUT_SESSION",
              "RENEW_CHECKOUT",
              "SUBMIT_CHECKOUT",
              "CREATE_PAYMENT_LINK",
              "CONFIRM_NICER_PAYMENT",
              "CANCEL",
              "REVOKE_PAYMENT_LINK"
            ]
          }
        },
        "required": [
          "expiresAt",
          "orderId",
          "orderStatus",
          "paymentUrl",
          "status",
          "type"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersAdvisorUpdateResponse": {
        "type": "object",
        "properties": {
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "orderVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "assignment": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "INHERIT"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "UNASSIGNED"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "ASSIGNED"
                  },
                  "advisorUserId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "mode",
                  "advisorUserId"
                ],
                "additionalProperties": false
              }
            ]
          },
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "orderId",
          "orderVersion",
          "assignment",
          "advisorUserId"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersConfirmationEmailsCreateResponse": {
        "type": "object",
        "properties": {
          "queuedRecipients": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "success": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "queuedRecipients",
          "success"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersCreateResponse": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CreateOrderResponse"
          },
          {
            "$ref": "#/components/schemas/OrderOfferReview"
          }
        ]
      },
      "CommerceOrdersGetResponse": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Order"
          },
          {
            "$ref": "#/components/schemas/RecordedOrder"
          }
        ]
      },
      "CommerceOrdersListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OrderListItem"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "totalCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "items",
          "totalCount"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersPaymentsCreateResponse": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/PaymentAttempt"
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "object",
                "properties": {
                  "token": {
                    "type": "string",
                    "minLength": 1
                  },
                  "url": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "token",
                  "url"
                ],
                "additionalProperties": false
              },
              "collectionId": {
                "type": "string",
                "minLength": 1
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "status": {
                "type": "string",
                "const": "AWAITING_CARD"
              },
              "type": {
                "type": "string",
                "const": "PROVIDER_CARD_COLLECTION"
              }
            },
            "required": [
              "action",
              "collectionId",
              "expiresAt",
              "status",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommercePayeesActionsCreateResponse": {
        "type": "object",
        "properties": {
          "onboardingUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "payee": {
            "$ref": "#/components/schemas/PayeeSettings"
          }
        },
        "required": [
          "onboardingUrl",
          "payee"
        ],
        "additionalProperties": false
      },
      "CommercePayeesListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayeeSettings"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommercePaymentMethodsActionsCreateResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "methods": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PaymentMethodSummary"
                }
              },
              "status": {
                "type": "string",
                "const": "LISTED"
              }
            },
            "required": [
              "methods",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "collection": {
                "type": "object",
                "properties": {
                  "collectionToken": {
                    "type": "string",
                    "minLength": 1
                  },
                  "collectionUrl": {
                    "type": "string",
                    "minLength": 1
                  },
                  "type": {
                    "type": "string",
                    "const": "COLLECT_PROVIDER_CARD"
                  }
                },
                "required": [
                  "collectionToken",
                  "collectionUrl",
                  "type"
                ],
                "additionalProperties": false
              },
              "setupId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "const": "AWAITING_CARD"
              }
            },
            "required": [
              "collection",
              "setupId",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "nextAction": {
                "type": "object",
                "properties": {
                  "clientSecret": {
                    "type": "string",
                    "minLength": 1
                  },
                  "type": {
                    "type": "string",
                    "const": "CONFIRM_NICER_CARD_SETUP"
                  }
                },
                "required": [
                  "clientSecret",
                  "type"
                ],
                "additionalProperties": false
              },
              "setupId": {
                "type": "string",
                "minLength": 1
              },
              "status": {
                "type": "string",
                "const": "REQUIRES_ACTION"
              }
            },
            "required": [
              "nextAction",
              "setupId",
              "status"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paymentMethodId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "const": "COMPLETED"
              },
              "travelersTripId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "expiresAt",
              "paymentMethodId",
              "status",
              "travelersTripId",
              "url"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommercePaymentMethodsCardLinkListResponse": {
        "type": "object",
        "properties": {
          "consentCopy": {
            "type": "string",
            "minLength": 1,
            "description": "The exact statement the person accepts; the same text is stored with the authorization."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the link stops working."
          },
          "grantScopeKind": {
            "description": "What completing the link grants. ADVISOR: the card to the advisor who made the link. USER: a personal card for the person who made it, who must be signed in. TRIP: the card to everyone working the link's trip (links made before advisor grants).",
            "$ref": "#/components/schemas/GrantScopeKind"
          }
        },
        "required": [
          "consentCopy",
          "expiresAt",
          "grantScopeKind"
        ],
        "additionalProperties": false
      },
      "PayoutRunDetail": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "completedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "type": "string",
            "minLength": 1
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "payoutCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "payoutRunId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "SUBMITTED",
              "PARTIALLY_FAILED",
              "COMPLETED"
            ]
          },
          "submittedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "totals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayoutRunTotal"
            }
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "RETRY",
                "CANCEL"
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "payouts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Payout"
            }
          }
        },
        "required": [
          "companyName",
          "completedAt",
          "createdAt",
          "createdByUserId",
          "jobId",
          "number",
          "payoutCount",
          "payoutRunId",
          "status",
          "submittedAt",
          "totals",
          "updatedAt",
          "allowedActions",
          "nextCursor",
          "payouts"
        ],
        "additionalProperties": false
      },
      "CommercePayoutRunsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayoutRun"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommerceRemittanceBatchesActionsCreateResponse": {
        "type": "object",
        "properties": {
          "batch": {
            "$ref": "#/components/schemas/RemittanceBatch"
          },
          "line": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemittanceLine"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "batch",
          "line"
        ],
        "additionalProperties": false
      },
      "CommerceRemittanceBatchesCreateResponse": {
        "type": "object",
        "properties": {
          "batch": {
            "$ref": "#/components/schemas/RemittanceBatch"
          },
          "upload": {
            "$ref": "#/components/schemas/UploadLink"
          }
        },
        "required": [
          "batch",
          "upload"
        ],
        "additionalProperties": false
      },
      "CommerceRemittanceBatchesGetResponse": {
        "type": "object",
        "properties": {
          "batch": {
            "$ref": "#/components/schemas/RemittanceBatch"
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceLine"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "batch",
          "lines",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommerceRemittanceBatchesListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceBatch"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "RemittanceClaim": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "claimId": {
            "type": "string",
            "minLength": 1
          },
          "claimantCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "claimantUserId": {
            "type": "string",
            "minLength": 1
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "decidedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "decidedByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "decisionReason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "itemCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "itemNumber": {
            "type": "string",
            "minLength": 1
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "remittanceId": {
            "type": "string",
            "minLength": 1
          },
          "remittanceLineId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "APPROVED",
              "REJECTED"
            ]
          }
        },
        "required": [
          "amountMinor",
          "claimId",
          "claimantCompanyName",
          "claimantUserId",
          "commissionItemId",
          "createdAt",
          "decidedAt",
          "decidedByUserId",
          "decisionReason",
          "itemCompanyName",
          "itemNumber",
          "note",
          "remittanceId",
          "remittanceLineId",
          "status"
        ],
        "additionalProperties": false
      },
      "CommerceRemittanceLinesSuggestionsListResponse": {
        "type": "object",
        "properties": {
          "line": {
            "$ref": "#/components/schemas/RemittanceLine"
          },
          "suggestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatchProposal"
            }
          }
        },
        "required": [
          "line",
          "suggestions"
        ],
        "additionalProperties": false
      },
      "RemittanceDetail": {
        "type": "object",
        "properties": {
          "allocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "batchId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "$ref": "#/components/schemas/CommissionChannel"
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "feeMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lineCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "payableOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "payerKind": {
            "$ref": "#/components/schemas/RemittancePayerKind"
          },
          "payerName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "postedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "remittanceId": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "type": "string",
            "enum": [
              "MANUAL",
              "FILE_IMPORT"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/RemittanceState"
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "unallocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ALLOCATE",
                "REVERSE_ALLOCATION",
                "MARK_DUPLICATE",
                "UNMARK_DUPLICATE",
                "VOID",
                "APPROVE_CLAIM",
                "REJECT_CLAIM"
              ]
            }
          },
          "claims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceClaim"
            }
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "duplicateOfRemittanceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceLine"
            }
          },
          "nextLineCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionNote"
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          },
          "voidReason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "allocatedMinor",
          "batchId",
          "channel",
          "companyName",
          "createdAt",
          "currency",
          "feeMinor",
          "grossMinor",
          "lineCount",
          "number",
          "payableOn",
          "payerKind",
          "payerName",
          "postedAt",
          "receivedOn",
          "reference",
          "remittanceId",
          "source",
          "state",
          "supplierId",
          "unallocatedMinor",
          "allowedActions",
          "claims",
          "createdByUserId",
          "duplicateOfRemittanceId",
          "lines",
          "nextLineCursor",
          "notes",
          "tags",
          "voidReason"
        ],
        "additionalProperties": false
      },
      "CommerceRemittancesListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceSummary"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "CommerceSettingsActionsCreateResponse": {
        "type": "object",
        "properties": {
          "resourceType": {
            "type": "string",
            "const": "SETTLEMENT"
          },
          "status": {
            "type": "string",
            "const": "SAVED"
          },
          "version": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "resourceType",
          "status",
          "version"
        ],
        "additionalProperties": false
      },
      "CommerceStatementsActionsCreateResponse": {
        "type": "object",
        "properties": {
          "statement": {
            "$ref": "#/components/schemas/StatementDetail"
          },
          "upload": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/UploadLink"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "statement",
          "upload"
        ],
        "additionalProperties": false
      },
      "StatementDetail": {
        "type": "object",
        "properties": {
          "adjustmentsMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "closedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "cycleOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "earningsMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lineCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "paidAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "payeeId": {
            "type": "string",
            "minLength": 1
          },
          "payeeKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "COMPANY"
            ]
          },
          "periodEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "periodStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "statementId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "$ref": "#/components/schemas/StatementStatus"
          },
          "totalMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "voidReason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "adjustments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatementAdjustment"
            }
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "ADD_ADJUSTMENT",
                "REMOVE_ADJUSTMENT",
                "ADD_NOTE",
                "CLOSE",
                "APPROVE",
                "REOPEN",
                "VOID",
                "RECOMPUTE",
                "MARK_PAID",
                "ADD_ATTACHMENT"
              ]
            }
          },
          "attachments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionAttachment"
            }
          },
          "lines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatementLine"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionNote"
            }
          },
          "payout": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Payout"
              },
              {
                "type": "null"
              }
            ]
          },
          "pdfUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "adjustmentsMinor",
          "approvedAt",
          "approvedByUserId",
          "closedAt",
          "companyName",
          "createdAt",
          "currency",
          "cycleOn",
          "earningsMinor",
          "lineCount",
          "number",
          "paidAt",
          "payeeId",
          "payeeKind",
          "periodEnd",
          "periodStart",
          "statementId",
          "status",
          "totalMinor",
          "updatedAt",
          "version",
          "voidReason",
          "adjustments",
          "allowedActions",
          "attachments",
          "lines",
          "nextCursor",
          "notes",
          "payout",
          "pdfUrl"
        ],
        "additionalProperties": false
      },
      "CommerceStatementsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StatementSummary"
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items",
          "nextCursor"
        ],
        "additionalProperties": false
      },
      "SupplierDetail": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupplierAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "contacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupplierContact"
            }
          },
          "defaults": {
            "type": "object",
            "properties": {
              "commissionBps": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "commissionChannel": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/CommissionChannel"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paymentTermDays": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 730
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "commissionBps",
              "commissionChannel",
              "paymentTermDays"
            ],
            "additionalProperties": false
          },
          "identities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "externalId": {
                  "type": "string",
                  "minLength": 1
                },
                "source": {
                  "type": "string"
                }
              },
              "required": [
                "externalId",
                "source"
              ],
              "additionalProperties": false
            }
          },
          "kind": {
            "$ref": "#/components/schemas/SupplierKind"
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "mergedIntoSupplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "production": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupplierProduction"
            }
          },
          "programs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "programId": {
                  "type": "string",
                  "minLength": 1
                },
                "validFrom": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "validTo": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "name",
                "programId",
                "validFrom",
                "validTo"
              ],
              "additionalProperties": false
            }
          },
          "sabreRating": {
            "type": "number",
            "minimum": 0,
            "maximum": 5
          },
          "scope": {
            "type": "string",
            "enum": [
              "GLOBAL",
              "COMPANY"
            ]
          },
          "source": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "MERGED",
              "ARCHIVED"
            ]
          },
          "supplierId": {
            "type": "string",
            "minLength": 1
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "verifiedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "contacts",
          "defaults",
          "identities",
          "kind",
          "latitude",
          "longitude",
          "mergedIntoSupplierId",
          "name",
          "phone",
          "production",
          "programs",
          "scope",
          "source",
          "status",
          "supplierId",
          "updatedAt",
          "verifiedAt",
          "website"
        ],
        "additionalProperties": false
      },
      "CommerceSuppliersListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupplierSummary"
            }
          },
          "suggestions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SupplierSuggestion"
            }
          }
        },
        "required": [
          "items",
          "suggestions"
        ],
        "additionalProperties": false
      },
      "CommunityAuthResponse": {
        "type": "object",
        "properties": {
          "body": {
            "type": "string",
            "description": "The realtime service's answer as text, holding the caller's session token: the portal hands it to its realtime client unchanged."
          },
          "status": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The HTTP status the realtime service answered with."
          }
        },
        "required": [
          "body",
          "status"
        ],
        "additionalProperties": false
      },
      "CommunityChannelsArchiveResponse": {
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "description": "The channel that was deleted."
          },
          "archived": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "channelId",
          "archived"
        ],
        "additionalProperties": false
      },
      "CommunityChannelPage": {
        "type": "object",
        "properties": {
          "channels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityChannel"
            }
          },
          "nextCursor": {
            "description": "Send it back as cursor for the next page; absent on the last page.",
            "type": "string"
          }
        },
        "required": [
          "channels"
        ],
        "additionalProperties": false
      },
      "CommunityChannel": {
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "description": "The channel's id."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the channel belongs to."
          },
          "name": {
            "type": "string",
            "description": "The channel's name."
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the channel is for; null when it says nothing."
          },
          "private": {
            "type": "boolean",
            "description": "Whether the channel is invite-only. A public channel is open to everyone in the agency."
          },
          "writePolicy": {
            "type": "string",
            "enum": [
              "all-members",
              "creator-only"
            ],
            "description": "Who may post: all-members, or creator-only for its creator and the writers granted posting."
          },
          "createdBy": {
            "type": "string",
            "description": "The userId of the person who created the channel."
          },
          "createdAt": {
            "type": "string",
            "description": "When the channel was created, as ISO 8601 text."
          },
          "memberCount": {
            "description": "How many people are in the channel. Only getting and creating a channel answer it.",
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "channelId",
          "companyName",
          "name",
          "description",
          "private",
          "writePolicy",
          "createdBy",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "CommunityChannelsGetResponse": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/CommunityChannel"
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "description": "The member's userId."
                }
              },
              "required": [
                "userId"
              ],
              "additionalProperties": false
            },
            "description": "Everyone in the channel."
          },
          "writers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityChannelWriter"
            },
            "description": "Who may post when only some may: the creator, and anyone granted posting on a creator-only channel."
          }
        },
        "required": [
          "channel",
          "members",
          "writers"
        ],
        "additionalProperties": false
      },
      "CommunityChannelsJoinResponse": {
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "description": "The channel the caller is in now."
          },
          "joined": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "channelId",
          "joined"
        ],
        "additionalProperties": false
      },
      "CommunityChannelsLeaveResponse": {
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "description": "The channel the caller is no longer in."
          },
          "left": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "channelId",
          "left"
        ],
        "additionalProperties": false
      },
      "CommunityChannelMembers": {
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "description": "The channel."
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "userId": {
                  "type": "string",
                  "description": "The member's userId."
                }
              },
              "required": [
                "userId"
              ],
              "additionalProperties": false
            },
            "description": "Everyone in the channel now."
          }
        },
        "required": [
          "channelId",
          "members"
        ],
        "additionalProperties": false
      },
      "CommunityChannelsMembersDeleteResponse": {
        "type": "object",
        "properties": {
          "channelId": {
            "type": "string",
            "description": "The channel the person was removed from."
          },
          "userId": {
            "type": "string",
            "description": "The person who is no longer in it."
          },
          "removed": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "channelId",
          "userId",
          "removed"
        ],
        "additionalProperties": false
      },
      "CommunityDm": {
        "type": "object",
        "properties": {
          "dmId": {
            "type": "string",
            "description": "The conversation's id, the same whenever the same people talk."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the conversation belongs to."
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The userIds of everyone in the conversation, the caller among them."
          },
          "createdAt": {
            "type": "string",
            "description": "When the conversation was created, as ISO 8601 text."
          }
        },
        "required": [
          "dmId",
          "companyName",
          "participants",
          "createdAt"
        ],
        "additionalProperties": false
      },
      "CommunityDmListResponse": {
        "type": "object",
        "properties": {
          "dms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommunityDm"
            }
          },
          "nextCursor": {
            "description": "Send it back as cursor for the next page; absent on the last page.",
            "type": "string"
          }
        },
        "required": [
          "dms"
        ],
        "additionalProperties": false
      },
      "CommunityWebhooksLiveblocksCreateResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "AppVersion": {
        "type": "object",
        "properties": {
          "createdBy": {
            "type": "string"
          },
          "isUnderMaintenance": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "requiresUpdate": {
            "type": "boolean"
          },
          "versionCode": {
            "type": "string",
            "minLength": 1
          },
          "type": {
            "type": "string",
            "const": "AppVersion"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "createdBy",
          "isUnderMaintenance",
          "lastModifiedBy",
          "requiresUpdate",
          "versionCode",
          "type",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "ConfigPromotionCreateResponse": {
        "type": "object",
        "properties": {
          "buttonName": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "images": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "price": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "status": {
            "$ref": "#/components/schemas/PromotionStatus"
          },
          "tag": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "color",
              "name"
            ],
            "additionalProperties": false
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "promotionId": {
            "type": "string",
            "pattern": "^PROMO.*"
          },
          "type": {
            "type": "string",
            "const": "Promotion"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "buttonName",
          "companyName",
          "createdBy",
          "description",
          "images",
          "lastModifiedBy",
          "status",
          "title",
          "promotionId",
          "type",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "ConfigPromotionListResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ConfigPromotionCreateResponse"
        }
      },
      "ActivityList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Activity"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "One page of a traveler's timeline, newest first, and the token of the next page."
      },
      "Me": {
        "type": "object",
        "properties": {
          "advisors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MyAdvisor"
            },
            "description": "The advisors who serve the person at every agency where they are a traveler, one entry per advisor and agency."
          },
          "family": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FamilyMember"
            },
            "description": "The family members the person may fill in for at the agency they act in; empty when no agency is selected."
          },
          "traveler": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerSelf"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's own traveler at the agency they act in; null before they have one there, or when no agency is selected."
          }
        },
        "required": [
          "advisors",
          "family",
          "traveler"
        ],
        "additionalProperties": false,
        "description": "The signed-in person in the CRM: their own traveler at the agency they act in, the family they may fill in for there, and the advisors who serve them at every agency."
      },
      "Note": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "description": "The agency the note belongs to."
          },
          "content": {
            "type": "string",
            "description": "The text, in the format of the editor that wrote it."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the note was written."
          },
          "createdBy": {
            "type": "string",
            "description": "The user id of who wrote the note."
          },
          "isPinned": {
            "type": "boolean",
            "description": "Whether the note is pinned: pinned notes lead the traveler's overview."
          },
          "kind": {
            "description": "What the note records.",
            "$ref": "#/components/schemas/NoteKind"
          },
          "lastModifiedBy": {
            "type": "string",
            "description": "The user id of who changed the note last."
          },
          "noteId": {
            "type": "string",
            "description": "The note's id: what updateNote and deleteNote take."
          },
          "travelerId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerId"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler the note is about; null for a note about a trip. A note is about one traveler or one trip."
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip (TT…) the note is about; null for a note about a traveler."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the note last changed."
          }
        },
        "required": [
          "companyName",
          "content",
          "createdAt",
          "createdBy",
          "isPinned",
          "kind",
          "lastModifiedBy",
          "noteId",
          "travelerId",
          "travelersTripId",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "A note about a traveler or a trip."
      },
      "Deleted": {
        "type": "object",
        "properties": {
          "deleted": {
            "type": "boolean",
            "const": true,
            "description": "Always true: the record no longer exists."
          },
          "id": {
            "type": "string",
            "description": "The id of the record deleted."
          }
        },
        "required": [
          "deleted",
          "id"
        ],
        "additionalProperties": false,
        "description": "The record a delete removed: its id, and deleted set to true."
      },
      "NoteList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Note"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "One page of the notes about a traveler or a trip, newest first, and the token of the next page."
      },
      "ProfileForm": {
        "type": "object",
        "properties": {
          "companyDisplayName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name the agency presents itself with; null when it has none on file."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the traveler belongs to."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the link stops working, ISO 8601 in UTC: 14 days after the advisor sent it."
          },
          "traveler": {
            "description": "The traveler the link was sent for, as the person fills it.",
            "$ref": "#/components/schemas/TravelerSelf"
          }
        },
        "required": [
          "companyDisplayName",
          "companyName",
          "expiresAt",
          "traveler"
        ],
        "additionalProperties": false,
        "description": "The traveler a profile form link opens, as the person fills it, and when the link expires."
      },
      "CrmSettings": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "description": "The agency the settings belong to."
          },
          "customFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldDefinition"
            },
            "description": "The fields the agency adds to its travelers."
          },
          "defaultVisibility": {
            "description": "Who sees a new traveler unless it says otherwise.",
            "$ref": "#/components/schemas/TravelerVisibility"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The settings' revision, to send back with a change; 0 until the settings are saved for the first time."
          },
          "segments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Segment"
            },
            "description": "The agency's saved filters of travelers."
          },
          "taskTemplates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTemplate"
            },
            "description": "The agency's task templates."
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the settings last changed; null until the first save."
          },
          "webhooks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Webhook"
            },
            "description": "The agency's webhooks. Only the answer to an update carries a secret, and only on the webhooks that update created."
          }
        },
        "required": [
          "companyName",
          "customFields",
          "defaultVisibility",
          "revision",
          "segments",
          "taskTemplates",
          "updatedAt",
          "webhooks"
        ],
        "additionalProperties": false,
        "description": "How an agency uses its CRM: custom fields, task templates, saved segments, who sees new travelers and its webhooks."
      },
      "TaskList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Task"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "Tasks and the token of the next page: null on the last page, and always null after applying a template, which answers every task it made."
      },
      "Task": {
        "type": "object",
        "properties": {
          "assignedUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The advisor or admin who should do it; null when nobody is assigned."
          },
          "associatedTripItineraryId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The itinerary (TI…) of the trip the task is about, when it has one; null otherwise."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the task belongs to."
          },
          "completed": {
            "type": "boolean",
            "description": "Whether the task is done."
          },
          "completedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the task was marked done; null while it is open."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the task was created."
          },
          "createdBy": {
            "type": "string",
            "description": "The user id of who created it, or SYSTEM for the CRM."
          },
          "lastModifiedBy": {
            "type": "string",
            "description": "The user id of who changed it last, or SYSTEM for the CRM."
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "More about it; null when there is none."
          },
          "origin": {
            "description": "How the task was made.",
            "$ref": "#/components/schemas/TaskOrigin"
          },
          "taskId": {
            "type": "string",
            "description": "The task's id: what updateTask and deleteTask take."
          },
          "tentativeDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When it should be done, as a date; null when undated."
          },
          "title": {
            "type": "string",
            "description": "What to do, in a few words."
          },
          "travelerId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerId"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler the task is about; null for a task about a trip. A task is about one traveler or one trip."
          },
          "travelerName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler's name as the agency knows them, read when the task is answered; null for a task about a trip."
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip (TT…) the task is about; null for a task about a traveler."
          },
          "tripName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's name, read when the task is answered; null for a task about a traveler or a trip without a name."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the task last changed."
          }
        },
        "required": [
          "assignedUserId",
          "associatedTripItineraryId",
          "companyName",
          "completed",
          "completedAt",
          "createdAt",
          "createdBy",
          "lastModifiedBy",
          "notes",
          "origin",
          "taskId",
          "tentativeDate",
          "title",
          "travelerId",
          "travelerName",
          "travelersTripId",
          "tripName",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "Something to do about a traveler or a trip."
      },
      "Traveler": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler's postal address; null when nobody gave one."
          },
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The user id of the advisor responsible for the traveler; null until an admin assigns one."
          },
          "birthDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date of birth, YYYY-MM-DD; null when unknown."
          },
          "bookedTotal": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ],
            "description": "What the traveler has booked, in minor units of one currency. Informative only: commerce holds the money. Null before the first booking."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the traveler belongs to."
          },
          "contact": {
            "description": "The traveler's email and phone, the phone in E.164; each is null when unknown.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "contributingAdvisorIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The user ids of every advisor who serves the traveler, the assigned one included."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the traveler was added, ISO 8601 in UTC."
          },
          "createdBy": {
            "type": "string",
            "description": "The user id of who added the traveler, or SYSTEM."
          },
          "customFields": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-zA-Z0-9]{0,39}$"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomFieldValue"
            },
            "description": "The values of the agency's own custom fields, by the field's key."
          },
          "displayName": {
            "type": "string",
            "description": "The name to show: the preferred name, else the given name, then the family name."
          },
          "documents": {
            "description": "The traveler's travel documents with their full numbers, oldest first. Only with expand=documents; never in a list.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerDocument"
            }
          },
          "frequentFlyerPrograms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            },
            "description": "Airline loyalty memberships, as a flight reservation carries them."
          },
          "importantDates": {
            "description": "The dates the agency remembers every year; the birthday is birthDate, not one of these. Only with expand=importantDates.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportantDate"
            }
          },
          "isArchived": {
            "type": "boolean",
            "description": "Whether the traveler is archived: kept, but out of the lists and searches."
          },
          "lastActivityAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When something last happened with the traveler, ISO 8601 in UTC; null when nothing has."
          },
          "lastModifiedBy": {
            "type": "string",
            "description": "The user id of who last changed the traveler, or SYSTEM."
          },
          "lastTripEndDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The last day, YYYY-MM-DD, of the traveler's latest trip that has ended; null when none has."
          },
          "linkedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the traveler was linked to a Nicer account, ISO 8601 in UTC; null while they have none."
          },
          "marketingConsent": {
            "$ref": "#/components/schemas/MarketingConsent"
          },
          "name": {
            "description": "The legal name, as printed on the travel document.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "nextTripStartDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The first day, YYYY-MM-DD, of the traveler's next trip; null when none is coming."
          },
          "origin": {
            "$ref": "#/components/schemas/TravelerOrigin"
          },
          "possibleDuplicates": {
            "description": "Other travelers of the agency, among those the caller may see, who may be the same person. Only with expand=possibleDuplicates, and always on the answer to adding a traveler.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerDuplicate"
            }
          },
          "preferredChannel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreferredChannel"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the traveler prefers to be contacted; null when they have not said."
          },
          "preferredLanguage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageTag"
              },
              {
                "type": "null"
              }
            ],
            "description": "The language to write to the traveler in, e.g. es or en-US; null when unknown."
          },
          "preferredName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name the traveler goes by when it is not their given name; null otherwise."
          },
          "profile": {
            "description": "The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets. Only with expand=profile.",
            "$ref": "#/components/schemas/TravelProfile"
          },
          "referredByTravelerId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler who referred this one; null when nobody did."
          },
          "relationships": {
            "description": "Other travelers of the agency this one is related to. Only with expand=relationships.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerRelationship"
            }
          },
          "residenceCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "Goes up by one on every change. Send it back with an update, so a change made meanwhile is never overwritten."
          },
          "sex": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sex marker on the travel document; null when unknown."
          },
          "stage": {
            "description": "LEAD until the traveler's first booking is confirmed, then CLIENT.",
            "$ref": "#/components/schemas/TravelerStage"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerTag"
            },
            "description": "Labels the agency groups travelers by, such as VIP."
          },
          "travelerId": {
            "description": "The traveler's id.",
            "$ref": "#/components/schemas/TravelerId"
          },
          "trips": {
            "description": "The trips the traveler is on, the latest start first and undated ones last. Only with expand=trips.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerTrip"
            }
          },
          "tripsCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many trips the traveler is on."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the traveler last changed, ISO 8601 in UTC."
          },
          "userId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler's Nicer account, once they have one and it is linked; null otherwise."
          },
          "visibility": {
            "description": "Which of the agency's advisors see the traveler.",
            "$ref": "#/components/schemas/TravelerVisibility"
          }
        },
        "required": [
          "address",
          "assignedAdvisorUserId",
          "birthDate",
          "bookedTotal",
          "companyName",
          "contact",
          "contributingAdvisorIds",
          "createdAt",
          "createdBy",
          "customFields",
          "displayName",
          "frequentFlyerPrograms",
          "isArchived",
          "lastActivityAt",
          "lastModifiedBy",
          "lastTripEndDate",
          "linkedAt",
          "marketingConsent",
          "name",
          "nationalityCountryCode",
          "nextTripStartDate",
          "origin",
          "preferredChannel",
          "preferredLanguage",
          "preferredName",
          "referredByTravelerId",
          "residenceCountryCode",
          "revision",
          "sex",
          "stage",
          "tags",
          "travelerId",
          "tripsCount",
          "updatedAt",
          "userId",
          "visibility"
        ],
        "additionalProperties": false,
        "description": "A person the agency serves, with or without a Nicer account. Every route that answers a traveler answers this object: its own fields always, and profile, documents, importantDates, relationships, trips and possibleDuplicates only when the route's expand query names them."
      },
      "TravelerImportResult": {
        "type": "object",
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "errorCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "index": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "outcome": {
                  "type": "string",
                  "enum": [
                    "CREATED",
                    "FAILED",
                    "MATCHED"
                  ]
                },
                "travelerId": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TravelerId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "errorCode",
                "index",
                "outcome",
                "travelerId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "results"
        ],
        "additionalProperties": false
      },
      "TravelerInvitation": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "EMAIL",
              "SMS"
            ]
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "ACCOUNT",
              "PROFILE_FORM"
            ]
          },
          "profileFormToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "travelerId": {
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "channel",
          "expiresAt",
          "kind",
          "profileFormToken",
          "travelerId"
        ],
        "additionalProperties": false
      },
      "TravelerList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Traveler"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "How many travelers the whole list holds across its pages; null for a search or a segment with dates."
          }
        },
        "required": [
          "items",
          "nextToken",
          "total"
        ],
        "additionalProperties": false,
        "description": "One page of travelers, each with its own fields only (a list takes no expand), the token of the next page, and how many travelers the whole list holds."
      },
      "CrmTrip": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The user id of the trip's advisor; null while it has none."
          },
          "associatedTripItineraryId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's itinerary (TI…), when its advisor started one; null otherwise."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the trip belongs to."
          },
          "primaryTravelerId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerId"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler the trip is for, its PRIMARY traveler; null while it has none."
          },
          "primaryTravelerName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The primary traveler's name as the agency knows them; null while the trip has no primary traveler."
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The revision of the trip's CRM record: send it back with a change, and a change made since answers 409 CRM_REVISION_CONFLICT. 0 while the CRM keeps nothing of the trip yet."
          },
          "salesStage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesStage"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the trip stands as a sale; null while it has no stage."
          },
          "travelerCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many travelers are on the trip."
          },
          "travelers": {
            "description": "Who travels on the trip, the PRIMARY traveler first. Present in the answers about one trip (GET and PUT /crm/trips/{travelersTripId}, POST /crm/trips/{travelersTripId}/travelers); absent from GET /crm/trips, which never reads a trip's travelers.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TripTraveler"
            }
          },
          "travelersTripId": {
            "type": "string",
            "description": "The trip's id (TT…)."
          },
          "tripEndDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's last day, YYYY-MM-DD; null while it has no dates."
          },
          "tripName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's name; null when it has none."
          },
          "tripStartDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's first day, YYYY-MM-DD; null while it has no dates."
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the trip's CRM record last changed; null while the CRM keeps nothing of the trip yet."
          }
        },
        "required": [
          "assignedAdvisorUserId",
          "associatedTripItineraryId",
          "companyName",
          "primaryTravelerId",
          "primaryTravelerName",
          "revision",
          "salesStage",
          "travelerCount",
          "travelersTripId",
          "tripEndDate",
          "tripName",
          "tripStartDate",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "A trip as the CRM sees it: its sales stage, its primary traveler and how many travel on it, and, in the answers about one trip, who travels on it with the details a checkout needs."
      },
      "CrmTripList": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CrmTrip"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false,
        "description": "One page of the agency's trips by sales stage, soonest first, without their travelers, and the token of the next page."
      },
      "CruisesSsoUrlResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "string",
            "description": "The sign-on link into the cruise booking tool, for the advisor's browser to open: whoever holds it is signed in as the advisor."
          },
          "message": {
            "type": "string",
            "description": "A note on the outcome, for people."
          },
          "successful": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "data",
          "message",
          "successful"
        ],
        "additionalProperties": false
      },
      "FavoritesDeleteResponse": {
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/FavoriteKind"
          },
          "reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "saved": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "kind",
          "reference",
          "saved"
        ],
        "additionalProperties": false
      },
      "FavoritesListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Favorite"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "FavoritesShareDeleteResponse": {
        "type": "object",
        "properties": {
          "shareId": {
            "type": "null"
          }
        },
        "required": [
          "shareId"
        ],
        "additionalProperties": false
      },
      "FavoritesShareListResponse": {
        "type": "object",
        "properties": {
          "avatarUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "shareId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{22}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "avatarUrl",
          "shareId"
        ],
        "additionalProperties": false
      },
      "FavoritesShareUpdateResponse": {
        "type": "object",
        "properties": {
          "shareId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{22}$"
          }
        },
        "required": [
          "shareId"
        ],
        "additionalProperties": false
      },
      "FavoritesSharedGetResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "activity": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/FavoriteActivity"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "city": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "country": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 200
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "imageUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2048,
                      "pattern": "^https:\\/\\/"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "latitude": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": -90,
                      "maximum": 90
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "longitude": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": -180,
                      "maximum": 180
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300
                },
                "rateCodes": {
                  "anyOf": [
                    {
                      "maxItems": 20,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 16
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "starRating": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 5
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string"
                },
                "kind": {
                  "$ref": "#/components/schemas/FavoriteKind"
                },
                "reference": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 512
                }
              },
              "required": [
                "name",
                "kind",
                "reference"
              ],
              "additionalProperties": false
            }
          },
          "owner": {
            "type": "object",
            "properties": {
              "avatarUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "avatarUrl",
              "firstName"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "items",
          "owner"
        ],
        "additionalProperties": false
      },
      "Favorite": {
        "type": "object",
        "properties": {
          "activity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FavoriteActivity"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "imageUrl": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048,
                "pattern": "^https:\\/\\/"
              },
              {
                "type": "null"
              }
            ]
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "rateCodes": {
            "anyOf": [
              {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 16
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "starRating": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "favoriteId": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/FavoriteKind"
          },
          "reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "type": {
            "type": "string",
            "const": "Favorite"
          },
          "userId": {
            "type": "string"
          }
        },
        "required": [
          "name",
          "createdAt",
          "updatedAt",
          "favoriteId",
          "kind",
          "reference",
          "type",
          "userId"
        ],
        "additionalProperties": false
      },
      "IdentityAdminHostsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostView"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "CompanyMembership": {
        "type": "object",
        "properties": {
          "bookingAccessEnabled": {
            "description": "As stored; absent when never set.",
            "type": "boolean"
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the membership belongs to: the one the request acts for."
          },
          "hasAdvisorPortalAccess": {
            "description": "As stored; absent when never set, which lets an advisor in.",
            "type": "boolean"
          },
          "isTestUser": {
            "description": "As stored; absent when never set.",
            "type": "boolean"
          },
          "noLeads": {
            "description": "As stored; absent when never set.",
            "type": "boolean"
          },
          "role": {
            "type": "string",
            "enum": [
              "advisor",
              "admin",
              "superadmin"
            ],
            "description": "The member's role in the agency. superadmin is the legacy company-level membership of Nicer staff, which counts as an admin of the agency."
          },
          "status": {
            "type": "string",
            "const": "active",
            "description": "The membership's status: only an active membership changes."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the membership last changed."
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "description": "The member."
          }
        },
        "required": [
          "companyName",
          "role",
          "status",
          "updatedAt",
          "userId"
        ],
        "additionalProperties": false
      },
      "Agreement": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "content": {
            "type": "string"
          },
          "customFields": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "endDate": {
            "type": "string"
          },
          "publishedAt": {
            "type": "string"
          },
          "startDate": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "draft",
              "published",
              "terminated"
            ]
          },
          "versionNumber": {
            "type": "number"
          },
          "agreementId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "Agreement"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "companyName",
          "content",
          "publishedAt",
          "startDate",
          "status",
          "versionNumber",
          "agreementId",
          "createdAt",
          "type",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "IdentityAgreementListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Agreement"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "IdentityAgreementSignResponse": {
        "type": "object",
        "properties": {
          "acceptedAt": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "signature": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "accepted",
              "updateRequired"
            ]
          },
          "versionNumber": {
            "type": "number"
          },
          "agreementId": {
            "type": "string"
          },
          "userId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "AgreementAcceptance"
          },
          "updatedAt": {
            "type": "string"
          }
        },
        "required": [
          "acceptedAt",
          "companyName",
          "signature",
          "status",
          "versionNumber",
          "agreementId",
          "userId",
          "createdAt",
          "type",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "IdentityAgreementUserGetResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "acceptance": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/IdentityAgreementSignResponse"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "agreement": {
                  "$ref": "#/components/schemas/Agreement"
                },
                "documentUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "signed": {
                  "type": "boolean"
                }
              },
              "required": [
                "acceptance",
                "agreement",
                "documentUrl",
                "signed"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "SiteHostView": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "type": "string",
            "minLength": 1
          },
          "aliasOf": {
            "type": "string"
          },
          "app": {
            "$ref": "#/components/schemas/HostApp"
          },
          "attempt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "canonical": {
            "type": "boolean"
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string",
            "minLength": 1
          },
          "dnsTarget": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/HostKind"
          },
          "lastError": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/HostStatus"
          },
          "updatedAt": {
            "type": "string"
          },
          "validationMode": {
            "type": "string",
            "enum": [
              "cloudfront",
              "self-hosted"
            ]
          },
          "validationRedirectFrom": {
            "type": "string"
          },
          "validationRedirectTo": {
            "type": "string"
          },
          "host": {
            "type": "string",
            "minLength": 1
          },
          "certificateIssued": {
            "type": "boolean"
          },
          "hasTenant": {
            "type": "boolean"
          }
        },
        "required": [
          "canonical",
          "companyName",
          "createdAt",
          "createdBy",
          "kind",
          "status",
          "updatedAt",
          "host",
          "certificateIssued",
          "hasTenant"
        ],
        "additionalProperties": false
      },
      "IdentityBookingSiteListResponse": {
        "type": "object",
        "properties": {
          "advisorSites": {
            "type": "boolean"
          },
          "branding": {
            "$ref": "#/components/schemas/CompanyBranding"
          },
          "canManage": {
            "type": "boolean"
          },
          "companyName": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "dnsTargetZone": {
            "type": "string"
          },
          "enabled": {
            "type": "boolean"
          },
          "envDomain": {
            "type": "string"
          },
          "handle": {
            "type": "string"
          },
          "hosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SiteHostView"
            }
          },
          "myShareUrl": {
            "type": "string"
          },
          "pages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "advisorUserId": {
                  "type": "string"
                },
                "enabled": {
                  "type": "boolean"
                }
              },
              "required": [
                "advisorUserId",
                "enabled"
              ],
              "additionalProperties": false
            }
          },
          "platformHost": {
            "type": "string"
          }
        },
        "required": [
          "advisorSites",
          "branding",
          "canManage",
          "companyName",
          "displayName",
          "dnsTargetZone",
          "enabled",
          "envDomain",
          "hosts",
          "pages"
        ],
        "additionalProperties": false
      },
      "IdentityCompanyAgreementsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "acceptedAt": {
                  "type": "string"
                },
                "companyName": {
                  "type": "string"
                },
                "metadata": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string"
                  },
                  "additionalProperties": {}
                },
                "signature": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "accepted",
                    "updateRequired"
                  ]
                },
                "versionNumber": {
                  "type": "number"
                },
                "agreementId": {
                  "type": "string"
                },
                "userId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "AgreementAcceptance"
                },
                "updatedAt": {
                  "type": "string"
                },
                "documentUrl": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "familyName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "givenName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "acceptedAt",
                "companyName",
                "signature",
                "status",
                "versionNumber",
                "agreementId",
                "userId",
                "createdAt",
                "type",
                "updatedAt",
                "documentUrl",
                "email",
                "familyName",
                "givenName"
              ],
              "additionalProperties": false
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false
      },
      "Company": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "config": {
            "default": {},
            "type": "object",
            "properties": {
              "bookingSite": {
                "type": "object",
                "properties": {
                  "advisorSites": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "handle": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              },
              "branding": {
                "$ref": "#/components/schemas/CompanyBranding"
              },
              "emailSending": {
                "type": "object",
                "properties": {
                  "checkedAt": {
                    "type": "string"
                  },
                  "dkimTokens": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "FAILED",
                      "PENDING",
                      "VERIFIED"
                    ]
                  },
                  "tenant": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "checkedAt",
                  "dkimTokens",
                  "domain",
                  "status",
                  "tenant"
                ],
                "additionalProperties": false
              },
              "locale": {
                "type": "string"
              },
              "timezone": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string",
            "minLength": 1
          },
          "displayName": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "Company"
          }
        },
        "required": [
          "companyName",
          "config",
          "createdAt",
          "createdBy",
          "displayName",
          "status",
          "updatedAt",
          "type"
        ],
        "additionalProperties": false
      },
      "IdentityCompanyListResponse": {
        "type": "object",
        "properties": {
          "activeCompanyName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "company": {
                  "$ref": "#/components/schemas/Company"
                },
                "role": {
                  "$ref": "#/components/schemas/AuthScope"
                }
              },
              "required": [
                "company",
                "role"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "activeCompanyName",
          "companies"
        ],
        "additionalProperties": false
      },
      "CompanyMemberRemoved": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the person no longer belongs to."
          },
          "removedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the membership was removed."
          },
          "removedBy": {
            "type": "string",
            "minLength": 1,
            "description": "The user id of the admin or staff member who removed it."
          },
          "status": {
            "type": "string",
            "const": "removed",
            "description": "The membership's status, which is kept rather than deleted."
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "description": "The person who was removed."
          }
        },
        "required": [
          "companyName",
          "removedAt",
          "removedBy",
          "status",
          "userId"
        ],
        "additionalProperties": false
      },
      "CompanyMemberResponse": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "description": "The agency, from the path."
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bookingAccessEnabled": {
            "type": "boolean"
          },
          "bookingPageEnabled": {
            "type": "boolean"
          },
          "hasAdvisorPortalAccess": {
            "type": "boolean"
          },
          "isTestUser": {
            "type": "boolean"
          },
          "joinedAt": {
            "type": "string"
          },
          "noLeads": {
            "type": "boolean"
          },
          "onboardingCompleted": {
            "type": "boolean"
          },
          "registrationSource": {
            "type": "string"
          },
          "joinRegistrationId": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "lastModifiedBy": {
            "description": "The user id of the admin or staff member who last changed the membership.",
            "type": "string",
            "minLength": 1
          },
          "removedAt": {
            "description": "When the membership was removed; set with status removed.",
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "removedBy": {
            "description": "The user id of the admin or staff member who removed the membership.",
            "type": "string",
            "minLength": 1
          },
          "role": {
            "$ref": "#/components/schemas/AuthScope"
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "invited",
              "removed"
            ]
          },
          "userId": {
            "type": "string",
            "description": "The member, from the path."
          },
          "type": {
            "type": "string",
            "const": "CompanyMember"
          },
          "createdAt": {
            "type": "string",
            "description": "When the membership was created."
          },
          "updatedAt": {
            "type": "string",
            "description": "When the membership last changed."
          },
          "shouldSignAgreement": {
            "type": "boolean",
            "description": "Whether the person must still sign the agency's current published agreement: true only for an advisor who has not."
          },
          "shouldUploadDocuments": {
            "type": "boolean",
            "description": "Whether the membership has no documents on file yet."
          },
          "signAgreementContent": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The text of the agency's current published agreement, shown before signing; null when there is none or the person is not an advisor."
          },
          "signAgreementId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The id of the agency's current published agreement, signed or not; null when there is none or the person is not an advisor."
          }
        },
        "required": [
          "companyName",
          "userId",
          "shouldSignAgreement",
          "shouldUploadDocuments",
          "signAgreementContent",
          "signAgreementId"
        ],
        "additionalProperties": false
      },
      "IdentityCompanySwitchResponse": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string"
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "companyName",
          "message"
        ],
        "additionalProperties": false
      },
      "IdentityCompanyUsersListResponse": {
        "type": "object",
        "properties": {
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows: pass nextToken to read it."
          },
          "invites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Invite"
            },
            "description": "The staff invitations of this page that were not accepted yet."
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UserWithMemberAttrs"
            },
            "description": "The advisors and admins of this page whose accounts are open, with their settings in the agency."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the next page starts; null after the last one."
          }
        },
        "required": [
          "hasMore",
          "invites",
          "items",
          "nextToken"
        ],
        "additionalProperties": false
      },
      "EmailDomainView": {
        "type": "object",
        "properties": {
          "domain": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "from": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "CNAME"
                },
                "value": {
                  "type": "string"
                }
              },
              "required": [
                "name",
                "type",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "status": {
            "type": "string",
            "enum": [
              "NONE",
              "PENDING",
              "VERIFIED",
              "FAILED"
            ]
          }
        },
        "required": [
          "domain",
          "from",
          "records",
          "status"
        ],
        "additionalProperties": false
      },
      "IdentityEmailPreviewGetResponse": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string"
          },
          "html": {
            "type": "string"
          },
          "replyTo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "type": "string"
          },
          "text": {
            "type": "string"
          }
        },
        "required": [
          "from",
          "html",
          "replyTo",
          "subject",
          "text"
        ],
        "additionalProperties": false
      },
      "IdentityEmailTestResponse": {
        "type": "object",
        "properties": {
          "sentTo": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          }
        },
        "required": [
          "sentTo"
        ],
        "additionalProperties": false
      },
      "IdentityFlagListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FeatureFlag"
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false
      },
      "IdentityInvitationsRegistrationAcceptResponse": {
        "type": "object",
        "properties": {
          "invitationId": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "advisor",
              "admin"
            ]
          },
          "acceptedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "refreshRequired": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "invitationId",
          "companyName",
          "role",
          "acceptedAt",
          "refreshRequired"
        ],
        "additionalProperties": false
      },
      "IdentityInvitationsRegistrationLookupResponse": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "available": {
                "type": "boolean",
                "const": false
              }
            },
            "required": [
              "available"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "available": {
                "type": "boolean",
                "const": true
              },
              "invitationId": {
                "type": "string"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "companyDisplayName": {
                "type": "string"
              },
              "logoUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoBackground": {
                "type": "string",
                "enum": [
                  "light",
                  "dark"
                ]
              },
              "role": {
                "type": "string",
                "enum": [
                  "advisor",
                  "admin"
                ]
              }
            },
            "required": [
              "available",
              "invitationId",
              "expiresAt",
              "companyDisplayName",
              "logoUrl",
              "role"
            ],
            "additionalProperties": false
          }
        ]
      },
      "IdentityInviteCreateResponse": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Invite"
          },
          {
            "type": "object",
            "properties": {
              "alreadyMember": {
                "type": "boolean",
                "const": true
              },
              "companyName": {
                "type": "string",
                "description": "The agency they joined."
              },
              "joinedAt": {
                "type": "string",
                "description": "When they joined it."
              },
              "role": {
                "type": "string",
                "enum": [
                  "advisor",
                  "admin"
                ],
                "description": "Their role there, as the request sent it."
              },
              "userId": {
                "type": "string",
                "description": "The person's id."
              }
            },
            "required": [
              "alreadyMember",
              "companyName",
              "joinedAt",
              "role",
              "userId"
            ],
            "additionalProperties": false
          }
        ]
      },
      "Invite": {
        "type": "object",
        "properties": {
          "advisorId": {
            "description": "The advisor some older invitations name.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "description": "The agency the invitation is to."
          },
          "createdBy": {
            "type": "string",
            "description": "The user id of whoever sent it, or SYSTEM for a paid Join."
          },
          "deleted": {
            "description": "True once it was cancelled.",
            "type": "boolean"
          },
          "email": {
            "description": "The email it was sent to.",
            "type": "string"
          },
          "expiresAt": {
            "description": "When it can no longer be accepted; one without it expires seven days after createdAt.",
            "type": "string"
          },
          "familyName": {
            "description": "The invitee's last name.",
            "type": "string"
          },
          "fullName": {
            "description": "The invitee's first and last name, joined.",
            "type": "string"
          },
          "givenName": {
            "description": "The invitee's first name.",
            "type": "string"
          },
          "invitedBy": {
            "type": "string",
            "description": "The user id of whoever sent it, or SYSTEM for a paid Join."
          },
          "lastModifiedBy": {
            "type": "string",
            "description": "The user id of whoever last changed it, or SYSTEM."
          },
          "metadata": {
            "description": "Details stored with it, such as joinRegistrationId.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "phoneNumber": {
            "description": "The phone it was sent to.",
            "type": "string"
          },
          "resendCount": {
            "description": "How many times it was sent again; four at most.",
            "type": "number"
          },
          "role": {
            "description": "The role the invitee gets on accepting.",
            "$ref": "#/components/schemas/AuthScope"
          },
          "sendMessage": {
            "description": "Whether the request asked to send it, kept on invitations of a person whose traveler account was opened from a staff invitation.",
            "type": "boolean"
          },
          "inviteId": {
            "type": "string",
            "description": "The invitation's id."
          },
          "userId": {
            "type": "string",
            "description": "The user id of whoever sent it; JOIN#<registrationId> for a paid Join."
          },
          "createdAt": {
            "type": "string",
            "description": "When it was sent."
          },
          "type": {
            "type": "string",
            "const": "Invite"
          },
          "updatedAt": {
            "type": "string",
            "description": "When it last changed."
          }
        },
        "required": [
          "companyName",
          "createdBy",
          "invitedBy",
          "lastModifiedBy",
          "role",
          "inviteId",
          "userId",
          "createdAt",
          "type",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "IdentityInviteResendResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "IdentityJoinRegistrationStatusResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "ready",
              "expired"
            ]
          },
          "registrationUrl": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "status"
        ],
        "additionalProperties": false
      },
      "IdentityMemberSearchListResponse": {
        "type": "object",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "avatar": {
                  "type": "string"
                },
                "familyName": {
                  "type": "string"
                },
                "fullName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "givenName": {
                  "type": "string"
                },
                "userId": {
                  "type": "string"
                }
              },
              "required": [
                "familyName",
                "fullName",
                "givenName",
                "userId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "members"
        ],
        "additionalProperties": false
      },
      "IdentityOnboardingStatusListResponse": {
        "type": "object",
        "properties": {
          "agreementSigned": {
            "type": "boolean"
          },
          "agreementSignedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "documentsUploaded": {
            "type": "boolean"
          },
          "onboardingCompleted": {
            "type": "boolean"
          },
          "onboardingFeePaid": {
            "type": "boolean"
          },
          "profileComplete": {
            "type": "boolean"
          }
        },
        "required": [
          "agreementSigned",
          "agreementSignedAt",
          "documentsUploaded",
          "onboardingCompleted",
          "onboardingFeePaid",
          "profileComplete"
        ],
        "additionalProperties": false
      },
      "PublicCompany": {
        "type": "object",
        "properties": {
          "branding": {
            "$ref": "#/components/schemas/CompanyBranding"
          },
          "companyName": {
            "type": "string"
          },
          "displayName": {
            "type": "string"
          },
          "urls": {
            "$ref": "#/components/schemas/CompanyUrls"
          }
        },
        "required": [
          "branding",
          "companyName",
          "displayName"
        ],
        "additionalProperties": false
      },
      "IdentityPublicSiteGetResponse": {
        "type": "object",
        "properties": {
          "advisor": {
            "type": "object",
            "properties": {
              "avatarUrl": {
                "type": "string"
              },
              "biography": {
                "type": "string"
              },
              "instagram": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "username": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "userId",
              "username"
            ],
            "additionalProperties": false
          },
          "advisorSites": {
            "type": "boolean"
          },
          "app": {
            "$ref": "#/components/schemas/HostApp"
          },
          "canonicalHost": {
            "type": "string"
          },
          "company": {
            "$ref": "#/components/schemas/PublicCompany"
          },
          "host": {
            "type": "string"
          },
          "refAdvisor": {
            "type": "object",
            "properties": {
              "avatarUrl": {
                "type": "string"
              },
              "biography": {
                "type": "string"
              },
              "instagram": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "username": {
                "type": "string"
              }
            },
            "required": [
              "name",
              "userId",
              "username"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "advisorSites",
          "canonicalHost",
          "company",
          "host"
        ],
        "additionalProperties": false
      },
      "IdentityReferralClaimResponse": {
        "type": "object",
        "properties": {
          "companyChanged": {
            "type": "boolean"
          },
          "ownerSiteUrl": {
            "type": "string"
          },
          "result": {
            "type": "string",
            "enum": [
              "ATTACHED",
              "UNCHANGED",
              "IGNORED_OWNED",
              "IGNORED_FOREIGN",
              "IGNORED_INVALID"
            ]
          }
        },
        "required": [
          "companyChanged",
          "result"
        ],
        "additionalProperties": false
      },
      "IdentityReferralsListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "createdAt": {
                  "type": "string"
                },
                "fullName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "Invite",
                    "User"
                  ]
                },
                "userId": {
                  "type": "string"
                }
              },
              "required": [
                "createdAt",
                "type",
                "userId"
              ],
              "additionalProperties": false
            },
            "description": "The items of this page."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false
      },
      "User": {
        "type": "object",
        "properties": {
          "avatar": {
            "description": "The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.",
            "type": "string"
          },
          "biography": {
            "description": "What the person writes about themself.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "calendarUrl": {
            "description": "A link where people book time with the person.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "description": "The agency the person last switched into; null, empty or absent on some older accounts.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deleted": {
            "description": "True once the account is closed.",
            "type": "boolean"
          },
          "deletedAt": {
            "description": "When the account was closed.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deletedBy": {
            "description": "The user id of whoever closed the account.",
            "type": "string"
          },
          "email": {
            "description": "The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "externalIntercomId": {
            "description": "A support-tool id some older accounts keep.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "familyName": {
            "type": "string",
            "description": "The person's last name."
          },
          "fullName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "givenName and familyName joined; null until the person has both."
          },
          "givenName": {
            "type": "string",
            "description": "The person's first name."
          },
          "instagram": {
            "description": "The person's Instagram handle.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "invitedAt": {
            "description": "When the person was invited, on some older accounts.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "invitedBy": {
            "description": "The user id of whoever invited or referred the person.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModifiedBy": {
            "description": "The user id of whoever last changed the account.",
            "type": "string"
          },
          "location": {
            "description": "Where the person says they are.",
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "countryCode": {
                "type": "string"
              },
              "latitude": {
                "type": "number"
              },
              "longitude": {
                "type": "number"
              },
              "neighborhood": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "zipCode": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "phoneNumber": {
            "description": "The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "registrationSource": {
            "description": "How the account was opened, such as INVITATION_REGISTRATION.",
            "type": "string"
          },
          "role": {
            "description": "The person's role in the agency they last switched into.",
            "$ref": "#/components/schemas/AuthScope"
          },
          "searchKey": {
            "description": "fullName in lowercase, which searches match.",
            "type": "string"
          },
          "tenantOwner": {
            "description": "Set on some older accounts.",
            "type": "boolean",
            "const": true
          },
          "tourProgress": {
            "description": "The in-app product tours the person completed, skipped or dismissed, by tour id.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "completedAt": {
                  "type": "string",
                  "description": "When the person got through the tour."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "completed",
                    "skipped",
                    "dismissed"
                  ]
                }
              },
              "required": [
                "completedAt",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "username": {
            "description": "The person's handle, made from their name, for referral links.",
            "type": "string"
          },
          "zoneinfo": {
            "description": "The person's time zone, an IANA name such as America/Bogota.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tenantId": {
            "type": "string",
            "description": "The partition the account is stored in: the userId for every account opened today."
          },
          "userId": {
            "type": "string",
            "description": "The person's id, their sign-in subject."
          },
          "createdAt": {
            "type": "string",
            "description": "When the account was opened."
          },
          "type": {
            "type": "string",
            "const": "User"
          },
          "updatedAt": {
            "type": "string",
            "description": "When the account last changed."
          }
        },
        "required": [
          "familyName",
          "fullName",
          "givenName",
          "role",
          "tenantId",
          "userId",
          "createdAt",
          "type",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "IdentityUserGetResponse": {
        "type": "object",
        "properties": {
          "avatar": {
            "description": "The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.",
            "type": "string"
          },
          "biography": {
            "description": "What the person writes about themself.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "description": "The agency the person last switched into; null, empty or absent on some older accounts.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "email": {
            "description": "The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "familyName": {
            "type": "string",
            "description": "The person's last name."
          },
          "fullName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "givenName and familyName joined; null until the person has both."
          },
          "givenName": {
            "type": "string",
            "description": "The person's first name."
          },
          "instagram": {
            "description": "The person's Instagram handle.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "description": "The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "description": "The person's role in the agency they last switched into.",
            "$ref": "#/components/schemas/AuthScope"
          },
          "type": {
            "type": "string",
            "const": "User"
          },
          "userId": {
            "type": "string",
            "description": "The person's id, their sign-in subject."
          }
        },
        "required": [
          "type",
          "userId"
        ],
        "additionalProperties": false
      },
      "IdentityUsersListResponse": {
        "type": "object",
        "properties": {
          "hasMore": {
            "type": "boolean",
            "description": "Whether another page follows: pass nextToken to read it."
          },
          "invites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Invite"
            },
            "description": "Always empty: an admin's pending invitations come in items."
          },
          "items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "avatar": {
                      "description": "The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.",
                      "type": "string"
                    },
                    "biography": {
                      "description": "What the person writes about themself.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "calendarUrl": {
                      "description": "A link where people book time with the person.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "companyName": {
                      "description": "The agency the person last switched into; null, empty or absent on some older accounts.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deleted": {
                      "description": "True once the account is closed.",
                      "type": "boolean"
                    },
                    "deletedAt": {
                      "description": "When the account was closed.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "deletedBy": {
                      "description": "The user id of whoever closed the account.",
                      "type": "string"
                    },
                    "email": {
                      "description": "The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "externalIntercomId": {
                      "description": "A support-tool id some older accounts keep.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "familyName": {
                      "type": "string",
                      "description": "The person's last name."
                    },
                    "fullName": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "givenName and familyName joined; null until the person has both."
                    },
                    "givenName": {
                      "type": "string",
                      "description": "The person's first name."
                    },
                    "instagram": {
                      "description": "The person's Instagram handle.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "invitedAt": {
                      "description": "When the person was invited, on some older accounts.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "invitedBy": {
                      "description": "The user id of whoever invited or referred the person.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastModifiedBy": {
                      "description": "The user id of whoever last changed the account.",
                      "type": "string"
                    },
                    "location": {
                      "description": "Where the person says they are.",
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string"
                        },
                        "city": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string"
                        },
                        "countryCode": {
                          "type": "string"
                        },
                        "latitude": {
                          "type": "number"
                        },
                        "longitude": {
                          "type": "number"
                        },
                        "neighborhood": {
                          "type": "string"
                        },
                        "region": {
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "zipCode": {
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "phoneNumber": {
                      "description": "The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "registrationSource": {
                      "type": "string"
                    },
                    "role": {
                      "description": "The person's role in the agency they last switched into.",
                      "$ref": "#/components/schemas/AuthScope"
                    },
                    "searchKey": {
                      "description": "fullName in lowercase, which searches match.",
                      "type": "string"
                    },
                    "tenantOwner": {
                      "description": "Set on some older accounts.",
                      "type": "boolean",
                      "const": true
                    },
                    "tourProgress": {
                      "description": "The in-app product tours the person completed, skipped or dismissed, by tour id.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "object",
                        "properties": {
                          "completedAt": {
                            "type": "string",
                            "description": "When the person got through the tour."
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "completed",
                              "skipped",
                              "dismissed"
                            ]
                          }
                        },
                        "additionalProperties": false
                      }
                    },
                    "username": {
                      "description": "The person's handle, made from their name, for referral links.",
                      "type": "string"
                    },
                    "zoneinfo": {
                      "description": "The person's time zone, an IANA name such as America/Bogota.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "tenantId": {
                      "type": "string",
                      "description": "The partition the account is stored in: the userId for every account opened today."
                    },
                    "userId": {
                      "type": "string",
                      "description": "The person's id."
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "When the account was opened."
                    },
                    "type": {
                      "type": "string",
                      "const": "User"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "When the account last changed."
                    },
                    "bookingAccessEnabled": {
                      "type": "boolean"
                    },
                    "documents": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "hasAdvisorPortalAccess": {
                      "type": "boolean"
                    },
                    "isTestUser": {
                      "type": "boolean"
                    },
                    "noLeads": {
                      "type": "boolean"
                    },
                    "onboardingCompleted": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "userId",
                    "type"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "advisorId": {
                      "description": "The advisor some older invitations name.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "companyName": {
                      "type": "string",
                      "description": "The agency the invitation is to."
                    },
                    "createdBy": {
                      "type": "string",
                      "description": "The user id of whoever sent it, or SYSTEM for a paid Join."
                    },
                    "deleted": {
                      "description": "True once it was cancelled.",
                      "type": "boolean"
                    },
                    "email": {
                      "description": "The email it was sent to.",
                      "type": "string"
                    },
                    "expiresAt": {
                      "description": "When it can no longer be accepted; one without it expires seven days after createdAt.",
                      "type": "string"
                    },
                    "familyName": {
                      "description": "The invitee's last name.",
                      "type": "string"
                    },
                    "fullName": {
                      "description": "The invitee's first and last name, joined.",
                      "type": "string"
                    },
                    "givenName": {
                      "description": "The invitee's first name.",
                      "type": "string"
                    },
                    "invitedBy": {
                      "type": "string",
                      "description": "The user id of whoever sent it, or SYSTEM for a paid Join."
                    },
                    "lastModifiedBy": {
                      "type": "string",
                      "description": "The user id of whoever last changed it, or SYSTEM."
                    },
                    "metadata": {
                      "description": "Details stored with it, such as joinRegistrationId.",
                      "type": "object",
                      "propertyNames": {
                        "type": "string"
                      },
                      "additionalProperties": {
                        "type": "string"
                      }
                    },
                    "phoneNumber": {
                      "description": "The phone it was sent to.",
                      "type": "string"
                    },
                    "resendCount": {
                      "description": "How many times it was sent again; four at most.",
                      "type": "number"
                    },
                    "role": {
                      "description": "The role the invitee gets on accepting.",
                      "$ref": "#/components/schemas/AuthScope"
                    },
                    "sendMessage": {
                      "description": "Whether the request asked to send it, kept on invitations of a person whose traveler account was opened from a staff invitation.",
                      "type": "boolean"
                    },
                    "inviteId": {
                      "type": "string",
                      "description": "The invitation's id."
                    },
                    "userId": {
                      "type": "string",
                      "description": "The user id of whoever sent it; some older invitations carry a placeholder id here instead."
                    },
                    "createdAt": {
                      "type": "string",
                      "description": "When it was sent."
                    },
                    "type": {
                      "type": "string",
                      "const": "Invite"
                    },
                    "updatedAt": {
                      "type": "string",
                      "description": "When it last changed."
                    }
                  },
                  "required": [
                    "companyName",
                    "userId",
                    "type"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "description": "For an admin, the agency's people with their settings there and its pending invitations; for an advisor, the accounts of the travelers they serve at the agency. A person whose fullName is shorter than two characters is left out."
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the next page starts; null after the last one."
          }
        },
        "required": [
          "hasMore",
          "invites",
          "items",
          "nextToken"
        ],
        "additionalProperties": false
      },
      "IdentityUsersResolveResponse": {
        "type": "object",
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "avatar": {
                  "type": "string"
                },
                "familyName": {
                  "type": "string"
                },
                "fullName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "givenName": {
                  "type": "string"
                },
                "userId": {
                  "type": "string"
                }
              },
              "required": [
                "familyName",
                "fullName",
                "givenName",
                "userId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "users"
        ],
        "additionalProperties": false
      },
      "InternovaGetResponse": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "distanceFromSearch": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string",
                "enum": [
                  "km",
                  "mi"
                ]
              },
              "value": {
                "type": "number"
              }
            },
            "required": [
              "unit",
              "value"
            ],
            "additionalProperties": false
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fullAddress": {
            "type": "string"
          },
          "gate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "iataCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "internovaId": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "description": "The photo's absolute URL; empty for a photo without a key."
                },
                "source": {
                  "type": "string",
                  "description": "The program catalog the photo comes from, the same on every photo."
                }
              },
              "required": [
                "name",
                "url",
                "source"
              ],
              "additionalProperties": false
            }
          },
          "placeId": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeZone": {
            "type": "string"
          },
          "zipCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "additionalAmenities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "availableFilters": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "customs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    },
                    {
                      "type": "number"
                    }
                  ]
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "experiences": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hotelDetails": {
            "type": "object",
            "properties": {
              "allowedPaymentMethods": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "commission": {
                "type": "number"
              },
              "commissionSuite": {
                "type": "number"
              },
              "contacts": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "email": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "phone": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    },
                    "type": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false
                }
              },
              "crownRating": {
                "type": "string"
              },
              "onSiteFitnessCenterAvailable": {
                "type": "boolean"
              },
              "ratingNumber": {
                "type": "number"
              },
              "smokingRoomAvailable": {
                "type": "boolean"
              },
              "totalNumberFloors": {
                "type": "number"
              },
              "totalNumberOfRooms": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "program": {
            "type": "string",
            "enum": [
              "SELECT",
              "CURATED"
            ]
          },
          "providerReferences": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "chainCode": {
                  "type": "string",
                  "minLength": 1
                },
                "propertyCode": {
                  "type": "string",
                  "minLength": 1
                },
                "system": {
                  "type": "string"
                }
              },
              "required": [
                "chainCode",
                "propertyCode",
                "system"
              ],
              "additionalProperties": false
            }
          },
          "searchKey": {
            "type": "string"
          },
          "specialAmenities": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string"
                },
                "value": {
                  "anyOf": [
                    {
                      "anyOf": [
                        {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "boolean"
                            }
                          ]
                        },
                        {
                          "type": "number"
                        }
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "type",
                "value"
              ],
              "additionalProperties": false
            }
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "Internova"
          }
        },
        "required": [
          "internovaId",
          "program",
          "searchKey",
          "createdAt",
          "updatedAt",
          "type"
        ],
        "additionalProperties": false
      },
      "InternovaListResponse": {
        "type": "object",
        "properties": {
          "countHotel": {
            "type": "number",
            "description": "How many hotels match the filter."
          },
          "countPages": {
            "type": "number",
            "description": "How many pages they make."
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "country": {
                  "type": "string"
                },
                "countryCode": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "distanceFromSearch": {
                  "type": "object",
                  "properties": {
                    "unit": {
                      "type": "string",
                      "enum": [
                        "km",
                        "mi"
                      ]
                    },
                    "value": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "unit",
                    "value"
                  ],
                  "additionalProperties": false
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "fullAddress": {
                  "type": "string"
                },
                "gate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "iataCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "internovaId": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number"
                },
                "longitude": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "photos": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name"
                    ],
                    "additionalProperties": false
                  }
                },
                "placeId": {
                  "type": "string"
                },
                "region": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "state": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "terminal": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "timeZone": {
                  "type": "string"
                },
                "zipCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "additionalAmenities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "boolean"
                              }
                            ]
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "availableFilters": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "customs": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "boolean"
                              }
                            ]
                          },
                          {
                            "type": "number"
                          }
                        ]
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "experiences": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "hotelDetails": {
                  "type": "object",
                  "properties": {
                    "allowedPaymentMethods": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "commission": {
                      "type": "number"
                    },
                    "commissionSuite": {
                      "type": "number"
                    },
                    "contacts": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "email": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "phone": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          },
                          "type": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "type"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "crownRating": {
                      "type": "string"
                    },
                    "onSiteFitnessCenterAvailable": {
                      "type": "boolean"
                    },
                    "ratingNumber": {
                      "type": "number"
                    },
                    "smokingRoomAvailable": {
                      "type": "boolean"
                    },
                    "totalNumberFloors": {
                      "type": "number"
                    },
                    "totalNumberOfRooms": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": false
                },
                "program": {
                  "type": "string",
                  "enum": [
                    "SELECT",
                    "CURATED"
                  ]
                },
                "providerReferences": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "chainCode": {
                        "type": "string",
                        "minLength": 1
                      },
                      "propertyCode": {
                        "type": "string",
                        "minLength": 1
                      },
                      "system": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "chainCode",
                      "propertyCode",
                      "system"
                    ],
                    "additionalProperties": false
                  }
                },
                "searchKey": {
                  "type": "string"
                },
                "specialAmenities": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string"
                      },
                      "value": {
                        "anyOf": [
                          {
                            "anyOf": [
                              {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "boolean"
                                  }
                                ]
                              },
                              {
                                "type": "number"
                              }
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "type",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "Internova"
                }
              },
              "required": [
                "type"
              ],
              "additionalProperties": false
            }
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The next page's number; null on the last page."
          },
          "prevToken": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The previous page's number; null on the first page."
          },
          "showing": {
            "type": "number",
            "description": "How many hotels this page holds."
          }
        },
        "required": [
          "countHotel",
          "countPages",
          "items",
          "nextToken",
          "prevToken",
          "showing"
        ],
        "additionalProperties": false
      },
      "CarriersResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Carrier"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "FlightLookupResponse": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/FlightLookupLeg"
        }
      },
      "PlaceDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/PlaceKind"
          },
          "source": {
            "$ref": "#/components/schemas/PlaceSource"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "iataCode": {
            "type": "string"
          },
          "hotelReference": {
            "type": "string"
          },
          "placeId": {
            "type": "string"
          },
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlacePhoto"
            }
          },
          "description": {
            "type": "string"
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlacePhoto"
            }
          }
        },
        "required": [
          "id",
          "kind",
          "source",
          "name",
          "photos",
          "amenities",
          "images"
        ],
        "additionalProperties": false
      },
      "PlacesResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Place"
            }
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "PlacesStreamEvent": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "snapshot"
              },
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "data": {
                "$ref": "#/components/schemas/PlacesResponse"
              }
            },
            "required": [
              "type",
              "sequence",
              "elapsedMs",
              "data"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "complete"
              },
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "settled": {
                "type": "boolean"
              }
            },
            "required": [
              "type",
              "sequence",
              "elapsedMs",
              "settled"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "error"
              },
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "code": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "type",
              "sequence",
              "elapsedMs",
              "code"
            ],
            "additionalProperties": false
          }
        ]
      },
      "TokenizationCreateResponse": {
        "type": "object",
        "properties": {
          "brand": {
            "type": "string",
            "enum": [
              "visa",
              "mastercard",
              "amex",
              "discover",
              "unionpay"
            ]
          },
          "last4": {
            "type": "string",
            "pattern": "^\\d{4}$"
          },
          "paymentCredentialId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^pcred_.*"
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentMethodId": {
            "type": "string",
            "pattern": "^paym_.*"
          },
          "source": {
            "type": "string",
            "enum": [
              "NICER#AUTHORIZATION_FORM",
              "NICER#PAYMENT_LINK"
            ]
          }
        },
        "required": [
          "brand",
          "last4",
          "paymentCredentialId",
          "paymentMethodId",
          "source"
        ],
        "additionalProperties": false
      },
      "TokenizationIntakeKeyListResponse": {
        "type": "object",
        "properties": {
          "alg": {
            "type": "string",
            "const": "RSA-OAEP-256+A256GCM"
          },
          "kid": {
            "type": "string",
            "minLength": 1
          },
          "publicKey": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "alg",
          "kid",
          "publicKey"
        ],
        "additionalProperties": false
      },
      "TourViatorProductsCreateResponse": {
        "type": "object",
        "properties": {
          "availability": {
            "type": "string",
            "enum": [
              "DATE_FILTERED",
              "NOT_CHECKED"
            ],
            "description": "Whether the requested dates filtered the results."
          },
          "availabilityNotice": {
            "description": "Present when the dates could not be checked: the results are catalogue suggestions, not confirmed availability.",
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "filters": {
            "type": "object",
            "properties": {
              "applied": {
                "description": "The filters of the request, as it sent them.",
                "type": "object",
                "properties": {
                  "duration": {
                    "type": "object",
                    "properties": {
                      "maxMinutes": {
                        "type": "number"
                      },
                      "minMinutes": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  },
                  "flags": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "NEW_ON_VIATOR",
                        "FREE_CANCELLATION",
                        "SKIP_THE_LINE",
                        "PRIVATE_TOUR",
                        "SPECIAL_OFFER",
                        "LIKELY_TO_SELL_OUT"
                      ]
                    }
                  },
                  "priceRange": {
                    "type": "object",
                    "properties": {
                      "max": {
                        "type": "number"
                      },
                      "min": {
                        "type": "number"
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "available": {
                "$ref": "#/components/schemas/AvailableFilters"
              }
            },
            "required": [
              "available"
            ],
            "additionalProperties": false
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItineraryActivitySegment"
            },
            "description": "The tours and activities of this page, as activity segments."
          },
          "page": {
            "type": "number"
          },
          "pageSize": {
            "type": "number"
          },
          "totalCount": {
            "type": "number"
          },
          "totalPages": {
            "type": "number"
          }
        },
        "required": [
          "availability",
          "currency",
          "filters",
          "items",
          "page",
          "pageSize",
          "totalCount",
          "totalPages"
        ],
        "additionalProperties": false
      },
      "ItineraryActivitySegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "$ref": "#/components/schemas/Location"
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "activity"
          },
          "additionalInfo": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "bookingQuestions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "cancellationPolicy": {
            "type": "object",
            "properties": {
              "cancelIfBadWeather": {
                "type": "boolean"
              },
              "freeDeadline": {
                "type": "string"
              },
              "isCancellable": {
                "type": "boolean"
              }
            },
            "required": [
              "isCancellable"
            ]
          },
          "dropoffInstructions": {
            "type": "string"
          },
          "dropoffLocation": {
            "$ref": "#/components/schemas/Location"
          },
          "dropoffTime": {
            "type": "string"
          },
          "durationMinutes": {
            "type": "number"
          },
          "durationText": {
            "type": "string"
          },
          "exclusions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "freeCancellation": {
            "type": "boolean"
          },
          "inclusions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "instantConfirmation": {
            "type": "boolean"
          },
          "itinerarySteps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "admissionIncluded": {
                  "type": "string",
                  "enum": [
                    "YES",
                    "NO",
                    "NOT_APPLICABLE"
                  ]
                },
                "description": {
                  "type": "string"
                },
                "durationMinutes": {
                  "type": "number"
                },
                "durationText": {
                  "type": "string"
                },
                "location": {
                  "$ref": "#/components/schemas/Location"
                },
                "passByWithoutStopping": {
                  "type": "boolean"
                },
                "title": {
                  "type": "string"
                }
              },
              "required": [
                "title"
              ]
            }
          },
          "languages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "maxTravelersPerBooking": {
            "type": "number"
          },
          "minTravelersPerBooking": {
            "type": "number"
          },
          "mobileTicket": {
            "type": "boolean"
          },
          "pickupInstructions": {
            "type": "string"
          },
          "pickupLocation": {
            "$ref": "#/components/schemas/Location"
          },
          "pickupTime": {
            "type": "string"
          },
          "privateTour": {
            "type": "boolean"
          },
          "provider": {
            "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
            "type": "string"
          },
          "providerBookingRef": {
            "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
            "type": "string"
          },
          "providerProductCode": {
            "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
            "type": "string"
          },
          "providerProductUrl": {
            "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
            "type": "string"
          },
          "reviews": {
            "type": "object",
            "properties": {
              "averageRating": {
                "type": "number"
              },
              "totalReviews": {
                "type": "number"
              }
            }
          },
          "skipTheLine": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "hold",
              "booked",
              "cancelled"
            ]
          },
          "supplierName": {
            "type": "string"
          },
          "supplierReference": {
            "type": "string"
          },
          "timeZone": {
            "type": "string"
          },
          "travelers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "TravelersTrip": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedChatId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedTripItineraryId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedUserIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "availableDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false
              }
            ]
          },
          "budgetCurrency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string"
          },
          "conciergeMessageSentAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdBy": {
            "type": "string"
          },
          "createdReason": {
            "type": "string",
            "enum": [
              "CREATED_BY_TRAVELER",
              "CREATED_BY_ADVISOR",
              "CREATED_BY_MATCHING_ADVISOR",
              "CREATED_BY_BOOKING"
            ]
          },
          "deleted": {
            "type": "boolean"
          },
          "deletedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deletedBy": {
            "type": "string"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Destination"
            }
          },
          "hasActivity": {
            "type": "boolean"
          },
          "hasFlexibleDates": {
            "type": "boolean"
          },
          "isAllPricesHidden": {
            "default": false,
            "type": "boolean"
          },
          "isItineraryVisible": {
            "default": true,
            "type": "boolean"
          },
          "isSummaryHidden": {
            "default": false,
            "type": "boolean"
          },
          "lastMessageTimestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "primaryTravelerUserId": {
            "type": "string"
          },
          "specialRequests": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggestionsEnabled": {
            "type": "boolean"
          },
          "travelers": {
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "tripEndDate": {
            "type": "string"
          },
          "tripStartDate": {
            "type": "string"
          },
          "tripTitle": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "budget": {
            "anyOf": [
              {
                "type": "string",
                "const": "goodValue"
              },
              {
                "type": "string",
                "const": "luxury"
              }
            ]
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string",
                "const": "holidays"
              },
              {
                "type": "string",
                "const": "business"
              },
              {
                "type": "string",
                "const": "honeymoon"
              },
              {
                "type": "string",
                "const": "familyFriends"
              }
            ]
          },
          "who": {
            "anyOf": [
              {
                "type": "string",
                "const": "solo"
              },
              {
                "type": "string",
                "const": "withKids"
              },
              {
                "type": "string",
                "const": "partner"
              },
              {
                "type": "string",
                "const": "group"
              }
            ]
          },
          "travelersTripId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "TravelersTrip"
          }
        },
        "required": [
          "associatedUserIds",
          "companyName",
          "createdBy",
          "destinations",
          "hasFlexibleDates",
          "isAllPricesHidden",
          "isItineraryVisible",
          "isSummaryHidden",
          "lastModifiedBy",
          "primaryTravelerUserId",
          "tripEndDate",
          "tripStartDate",
          "tripTitle",
          "travelersTripId",
          "createdAt",
          "updatedAt",
          "type"
        ],
        "additionalProperties": false
      },
      "TravelersTripGetResponse": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedChatId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedTripItineraryId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedUserIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "availableDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false
              }
            ]
          },
          "budgetCurrency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string"
          },
          "conciergeMessageSentAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdBy": {
            "type": "string"
          },
          "createdReason": {
            "type": "string",
            "enum": [
              "CREATED_BY_TRAVELER",
              "CREATED_BY_ADVISOR",
              "CREATED_BY_MATCHING_ADVISOR",
              "CREATED_BY_BOOKING"
            ]
          },
          "deleted": {
            "type": "boolean"
          },
          "deletedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deletedBy": {
            "type": "string"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Destination"
            }
          },
          "hasActivity": {
            "type": "boolean"
          },
          "hasFlexibleDates": {
            "type": "boolean"
          },
          "isAllPricesHidden": {
            "default": false,
            "type": "boolean"
          },
          "isItineraryVisible": {
            "default": true,
            "type": "boolean"
          },
          "isSummaryHidden": {
            "default": false,
            "type": "boolean"
          },
          "lastMessageTimestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "primaryTravelerUserId": {
            "type": "string"
          },
          "specialRequests": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggestionsEnabled": {
            "type": "boolean"
          },
          "travelers": {
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "tripEndDate": {
            "type": "string"
          },
          "tripStartDate": {
            "type": "string"
          },
          "tripTitle": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "budget": {
            "anyOf": [
              {
                "type": "string",
                "const": "goodValue"
              },
              {
                "type": "string",
                "const": "luxury"
              }
            ]
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string",
                "const": "holidays"
              },
              {
                "type": "string",
                "const": "business"
              },
              {
                "type": "string",
                "const": "honeymoon"
              },
              {
                "type": "string",
                "const": "familyFriends"
              }
            ]
          },
          "who": {
            "anyOf": [
              {
                "type": "string",
                "const": "solo"
              },
              {
                "type": "string",
                "const": "withKids"
              },
              {
                "type": "string",
                "const": "partner"
              },
              {
                "type": "string",
                "const": "group"
              }
            ]
          },
          "travelersTripId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "TravelersTrip"
          },
          "isArchived": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/TripItineraryStatus"
          }
        },
        "required": [
          "associatedUserIds",
          "companyName",
          "createdBy",
          "destinations",
          "hasFlexibleDates",
          "isAllPricesHidden",
          "isItineraryVisible",
          "isSummaryHidden",
          "lastModifiedBy",
          "primaryTravelerUserId",
          "tripEndDate",
          "tripStartDate",
          "tripTitle",
          "travelersTripId",
          "createdAt",
          "updatedAt",
          "type",
          "isArchived",
          "status"
        ],
        "additionalProperties": false
      },
      "TravelersTripListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "assignedAdvisorUserId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "associatedChatId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "associatedTripItineraryId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "associatedUserIds": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "companyName": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "destinations": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Destination"
                  }
                },
                "hasActivity": {
                  "type": "boolean"
                },
                "isArchived": {
                  "type": "boolean"
                },
                "primaryTravelerUserId": {
                  "type": "string"
                },
                "status": {
                  "$ref": "#/components/schemas/TripItineraryStatus"
                },
                "travelers": {
                  "type": "object",
                  "properties": {
                    "adults": {
                      "type": "number"
                    },
                    "children": {
                      "type": "number"
                    }
                  },
                  "additionalProperties": false
                },
                "travelersTripId": {
                  "type": "string"
                },
                "tripEndDate": {
                  "type": "string"
                },
                "tripStartDate": {
                  "type": "string"
                },
                "tripTitle": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                }
              },
              "required": [
                "associatedUserIds",
                "companyName",
                "createdAt",
                "destinations",
                "isArchived",
                "primaryTravelerUserId",
                "status",
                "travelersTripId",
                "tripEndDate",
                "tripStartDate",
                "tripTitle",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "nextToken": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "number"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "items"
        ],
        "additionalProperties": false
      },
      "TravelersTripToggleArchiveResponse": {
        "type": "object",
        "properties": {
          "isArchived": {
            "type": "boolean"
          }
        },
        "required": [
          "isArchived"
        ],
        "additionalProperties": false
      },
      "TripItineraryAgentViewListResponse": {
        "type": "object",
        "properties": {
          "lockedSegmentIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "segments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "attachmentCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "endDateTime": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "id": {
                  "type": "string"
                },
                "imageCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "lockedReason": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sourceDocumentKey": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "startDateTime": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "attachmentCount",
                "endDateTime",
                "id",
                "imageCount",
                "lockedReason",
                "sourceDocumentKey",
                "startDateTime",
                "title",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "trip": {
            "type": "object",
            "properties": {
              "destinations": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "endDate": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDate": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "travelers": {
                "type": "object",
                "properties": {
                  "adults": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "children": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": -9007199254740991,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "adults",
                  "children"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "destinations",
              "endDate",
              "startDate",
              "title",
              "travelers"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "lockedSegmentIds",
          "segments",
          "trip"
        ],
        "additionalProperties": false
      },
      "TripItineraryDocumentsCreateResponse": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "presignedPost": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string",
                "description": "Where to post the form."
              },
              "fields": {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "type": "string"
                },
                "description": "The form fields to send, as they are, before the file."
              }
            },
            "required": [
              "url",
              "fields"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "key",
          "presignedPost"
        ],
        "additionalProperties": false
      },
      "TripItineraryGetResponse": {
        "type": "object",
        "properties": {
          "approved": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string"
          },
          "countSegments": {
            "default": 0,
            "type": "number"
          },
          "createdBy": {
            "type": "string"
          },
          "itinerary": {
            "type": "object",
            "properties": {
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "caption": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "coverImageUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string"
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "note",
                    "title"
                  ],
                  "additionalProperties": false
                }
              },
              "segments": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProjectedSegment"
                },
                "description": "Each segment once, with its purchase state; the day view is the client's."
              }
            },
            "required": [
              "name",
              "segments"
            ],
            "additionalProperties": false
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "mode": {
            "default": "AUTO",
            "$ref": "#/components/schemas/TripItineraryMode"
          },
          "status": {
            "$ref": "#/components/schemas/TripItineraryStatus"
          },
          "travelersTripId": {
            "type": "string"
          },
          "tripCost": {
            "type": "number"
          },
          "type": {
            "type": "string",
            "const": "TripItinerary"
          },
          "tripItineraryId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "policies": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "externalReference": {
                  "type": "string",
                  "minLength": 1
                },
                "fulfillmentId": {
                  "type": "string",
                  "minLength": 1
                },
                "issuedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "documentUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "kind": {
                  "type": "string",
                  "const": "POLICY"
                },
                "policyNumber": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "externalReference",
                "fulfillmentId",
                "issuedAt",
                "kind",
                "policyNumber"
              ],
              "additionalProperties": false
            },
            "description": "Every policy issued for the trip, in issuance order."
          },
          "travelersTrip": {
            "$ref": "#/components/schemas/ItineraryTravelersTrip"
          }
        },
        "required": [
          "companyName",
          "countSegments",
          "createdBy",
          "itinerary",
          "lastModifiedBy",
          "mode",
          "status",
          "travelersTripId",
          "tripCost",
          "type",
          "tripItineraryId",
          "createdAt",
          "updatedAt",
          "policies",
          "travelersTrip"
        ],
        "additionalProperties": false
      },
      "TripItineraryListResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "approved": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "companyName": {
                  "type": "string"
                },
                "countSegments": {
                  "default": 0,
                  "type": "number"
                },
                "createdBy": {
                  "type": "string"
                },
                "itinerary": {
                  "type": "object",
                  "properties": {
                    "attachments": {
                      "anyOf": [
                        {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/Attachment"
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "caption": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "coverImageUrl": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string"
                    },
                    "notes": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "note": {
                            "type": "string"
                          },
                          "title": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "id",
                          "note",
                          "title"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "segments": {
                      "description": "Answered only when `fields` names it.",
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/ItinerarySegment"
                      }
                    }
                  },
                  "required": [
                    "name"
                  ],
                  "additionalProperties": false
                },
                "lastModifiedBy": {
                  "type": "string"
                },
                "mode": {
                  "default": "AUTO",
                  "$ref": "#/components/schemas/TripItineraryMode"
                },
                "status": {
                  "$ref": "#/components/schemas/TripItineraryStatus"
                },
                "travelersTripId": {
                  "type": "string"
                },
                "tripCost": {
                  "type": "number"
                },
                "type": {
                  "type": "string",
                  "const": "TripItinerary"
                },
                "tripItineraryId": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string"
                },
                "assignedAdvisorUserId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tripEndDate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tripStartDate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "tripTitle": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "companyName",
                "countSegments",
                "createdBy",
                "itinerary",
                "lastModifiedBy",
                "mode",
                "status",
                "travelersTripId",
                "tripCost",
                "type",
                "tripItineraryId",
                "createdAt",
                "updatedAt",
                "assignedAdvisorUserId",
                "tripEndDate",
                "tripStartDate",
                "tripTitle"
              ],
              "additionalProperties": false
            }
          },
          "nextToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Send it back as nextToken to read the next page; null on the last page."
          }
        },
        "required": [
          "items",
          "nextToken"
        ],
        "additionalProperties": false
      },
      "TripItineraryOffersCreateResponse": {
        "type": "object",
        "properties": {
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "segmentId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "OK",
              "UNAVAILABLE"
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "reason",
          "segmentId",
          "status",
          "title"
        ],
        "additionalProperties": false
      },
      "TripItineraryPublicApproveSegmentResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "TripItineraryPublicSelectOptionSegmentResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "success"
        ],
        "additionalProperties": false
      },
      "TripItinerarySegmentResponse": {
        "type": "object",
        "properties": {
          "addedSegmentIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The ids the itinerary now holds for the segments that were added."
          },
          "data": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "const": "delete"
                    },
                    "segment": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "operation",
                    "segment"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "const": "update"
                    },
                    "segment": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "flight"
                            },
                            "baggageCharges": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBaggageCharge"
                              }
                            },
                            "brandFeatures": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                              }
                            },
                            "cabin": {
                              "type": "string",
                              "enum": [
                                "BUSINESS",
                                "ECONOMY",
                                "FIRST",
                                "PREMIUM_ECONOMY"
                              ]
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "fareRules": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                              }
                            },
                            "flightIndex": {
                              "type": "string"
                            },
                            "flightType": {
                              "type": "string",
                              "enum": [
                                "one-way",
                                "round-trip",
                                "multi-city"
                              ]
                            },
                            "inbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItinerary"
                              }
                            },
                            "outbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItinerary"
                              }
                            },
                            "owner": {
                              "$ref": "#/components/schemas/FlightCarrierSnapshot"
                            },
                            "passengers": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightPassengerSnapshot"
                              }
                            },
                            "policies": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/QuotePolicy"
                              }
                            },
                            "priceSnapshot": {
                              "$ref": "#/components/schemas/BookingPriceSnapshot"
                            },
                            "rules": {
                              "$ref": "#/components/schemas/FlightRules"
                            },
                            "ticketingDeadline": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "lodging"
                            },
                            "bookingOccupancy": {
                              "type": "object",
                              "properties": {
                                "rooms": {
                                  "minItems": 1,
                                  "maxItems": 8,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "adults": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 8
                                      },
                                      "children": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "childrenAges": {
                                        "maxItems": 6,
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 17
                                        }
                                      }
                                    },
                                    "required": [
                                      "adults",
                                      "children",
                                      "childrenAges"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "rooms"
                              ],
                              "additionalProperties": false
                            },
                            "checkinDate": {
                              "type": "string"
                            },
                            "checkoutDate": {
                              "type": "string"
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "lodge": {
                              "type": "object",
                              "properties": {
                                "checkin": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkout": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "guests": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "name": {
                                  "type": "string"
                                },
                                "rooms": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Room"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "stars": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "car_rental"
                            },
                            "carType": {
                              "type": "string"
                            },
                            "dropoff": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "engine": {
                              "type": "string",
                              "enum": [
                                "ELECTRIC",
                                "HYBRID",
                                "GASOLINE",
                                "DIESEL"
                              ]
                            },
                            "insurance": {
                              "type": "string"
                            },
                            "model": {
                              "type": "string"
                            },
                            "pickup": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "transmission": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "AUTOMATIC"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "transportation"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "guests": {
                              "type": "number"
                            },
                            "transportationType": {
                              "type": "string",
                              "enum": [
                                "ground_transportation",
                                "train",
                                "bus",
                                "automobile"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "cruise"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "stop": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Location"
                              }
                            },
                            "suites": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Suite"
                              }
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "activity"
                            },
                            "additionalInfo": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bookingQuestions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "cancellationPolicy": {
                              "type": "object",
                              "properties": {
                                "cancelIfBadWeather": {
                                  "type": "boolean"
                                },
                                "freeDeadline": {
                                  "type": "string"
                                },
                                "isCancellable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "isCancellable"
                              ],
                              "additionalProperties": false
                            },
                            "dropoffInstructions": {
                              "type": "string"
                            },
                            "dropoffLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "dropoffTime": {
                              "type": "string"
                            },
                            "durationMinutes": {
                              "type": "number"
                            },
                            "durationText": {
                              "type": "string"
                            },
                            "exclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "freeCancellation": {
                              "type": "boolean"
                            },
                            "inclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "instantConfirmation": {
                              "type": "boolean"
                            },
                            "itinerarySteps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "admissionIncluded": {
                                    "type": "string",
                                    "enum": [
                                      "YES",
                                      "NO",
                                      "NOT_APPLICABLE"
                                    ]
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "durationMinutes": {
                                    "type": "number"
                                  },
                                  "durationText": {
                                    "type": "string"
                                  },
                                  "location": {
                                    "$ref": "#/components/schemas/Location"
                                  },
                                  "passByWithoutStopping": {
                                    "type": "boolean"
                                  },
                                  "title": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "title"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "languages": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "maxTravelersPerBooking": {
                              "type": "number"
                            },
                            "minTravelersPerBooking": {
                              "type": "number"
                            },
                            "mobileTicket": {
                              "type": "boolean"
                            },
                            "pickupInstructions": {
                              "type": "string"
                            },
                            "pickupLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "pickupTime": {
                              "type": "string"
                            },
                            "privateTour": {
                              "type": "boolean"
                            },
                            "provider": {
                              "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                              "type": "string"
                            },
                            "providerBookingRef": {
                              "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductCode": {
                              "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductUrl": {
                              "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "reviews": {
                              "type": "object",
                              "properties": {
                                "averageRating": {
                                  "type": "number"
                                },
                                "totalReviews": {
                                  "type": "number"
                                }
                              },
                              "additionalProperties": false
                            },
                            "skipTheLine": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "supplierName": {
                              "type": "string"
                            },
                            "supplierReference": {
                              "type": "string"
                            },
                            "timeZone": {
                              "type": "string"
                            },
                            "travelers": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "restaurant"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "custom"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "unset": {
                      "description": "Clear unknown end times without sending JSON null through the Gateway. Omitted fields otherwise stay unchanged.",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "endDateTime"
                        ]
                      }
                    }
                  },
                  "required": [
                    "operation",
                    "segment"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "const": "add"
                    },
                    "segment": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "flight"
                            },
                            "baggageCharges": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBaggageCharge"
                              }
                            },
                            "brandFeatures": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                              }
                            },
                            "cabin": {
                              "type": "string",
                              "enum": [
                                "BUSINESS",
                                "ECONOMY",
                                "FIRST",
                                "PREMIUM_ECONOMY"
                              ]
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "fareRules": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                              }
                            },
                            "flightIndex": {
                              "type": "string"
                            },
                            "flightType": {
                              "type": "string",
                              "enum": [
                                "one-way",
                                "round-trip",
                                "multi-city"
                              ]
                            },
                            "inbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItinerary"
                              }
                            },
                            "outbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItinerary"
                              }
                            },
                            "owner": {
                              "$ref": "#/components/schemas/FlightCarrierSnapshot"
                            },
                            "passengers": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightPassengerSnapshot"
                              }
                            },
                            "policies": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/QuotePolicy"
                              }
                            },
                            "priceSnapshot": {
                              "$ref": "#/components/schemas/BookingPriceSnapshot"
                            },
                            "rules": {
                              "$ref": "#/components/schemas/FlightRules"
                            },
                            "ticketingDeadline": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "flightType"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "lodging"
                            },
                            "bookingOccupancy": {
                              "type": "object",
                              "properties": {
                                "rooms": {
                                  "minItems": 1,
                                  "maxItems": 8,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "adults": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 8
                                      },
                                      "children": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "childrenAges": {
                                        "maxItems": 6,
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 17
                                        }
                                      }
                                    },
                                    "required": [
                                      "adults",
                                      "children",
                                      "childrenAges"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "rooms"
                              ],
                              "additionalProperties": false
                            },
                            "checkinDate": {
                              "type": "string"
                            },
                            "checkoutDate": {
                              "type": "string"
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "lodge": {
                              "type": "object",
                              "properties": {
                                "checkin": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkout": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "guests": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "name": {
                                  "type": "string"
                                },
                                "rooms": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Room"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "stars": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                }
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "type",
                            "checkinDate",
                            "checkoutDate",
                            "lodge"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "car_rental"
                            },
                            "carType": {
                              "type": "string"
                            },
                            "dropoff": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "engine": {
                              "type": "string",
                              "enum": [
                                "ELECTRIC",
                                "HYBRID",
                                "GASOLINE",
                                "DIESEL"
                              ]
                            },
                            "insurance": {
                              "type": "string"
                            },
                            "model": {
                              "type": "string"
                            },
                            "pickup": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "transmission": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "AUTOMATIC"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "dropoff",
                            "pickup"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "transportation"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "guests": {
                              "type": "number"
                            },
                            "transportationType": {
                              "type": "string",
                              "enum": [
                                "ground_transportation",
                                "train",
                                "bus",
                                "automobile"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "cruise"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "stop": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Location"
                              }
                            },
                            "suites": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Suite"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "departureLocation"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "activity"
                            },
                            "additionalInfo": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bookingQuestions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "cancellationPolicy": {
                              "type": "object",
                              "properties": {
                                "cancelIfBadWeather": {
                                  "type": "boolean"
                                },
                                "freeDeadline": {
                                  "type": "string"
                                },
                                "isCancellable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "isCancellable"
                              ],
                              "additionalProperties": false
                            },
                            "dropoffInstructions": {
                              "type": "string"
                            },
                            "dropoffLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "dropoffTime": {
                              "type": "string"
                            },
                            "durationMinutes": {
                              "type": "number"
                            },
                            "durationText": {
                              "type": "string"
                            },
                            "exclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "freeCancellation": {
                              "type": "boolean"
                            },
                            "inclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "instantConfirmation": {
                              "type": "boolean"
                            },
                            "itinerarySteps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "admissionIncluded": {
                                    "type": "string",
                                    "enum": [
                                      "YES",
                                      "NO",
                                      "NOT_APPLICABLE"
                                    ]
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "durationMinutes": {
                                    "type": "number"
                                  },
                                  "durationText": {
                                    "type": "string"
                                  },
                                  "location": {
                                    "$ref": "#/components/schemas/Location"
                                  },
                                  "passByWithoutStopping": {
                                    "type": "boolean"
                                  },
                                  "title": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "title"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "languages": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "maxTravelersPerBooking": {
                              "type": "number"
                            },
                            "minTravelersPerBooking": {
                              "type": "number"
                            },
                            "mobileTicket": {
                              "type": "boolean"
                            },
                            "pickupInstructions": {
                              "type": "string"
                            },
                            "pickupLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "pickupTime": {
                              "type": "string"
                            },
                            "privateTour": {
                              "type": "boolean"
                            },
                            "provider": {
                              "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                              "type": "string"
                            },
                            "providerBookingRef": {
                              "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductCode": {
                              "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductUrl": {
                              "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "reviews": {
                              "type": "object",
                              "properties": {
                                "averageRating": {
                                  "type": "number"
                                },
                                "totalReviews": {
                                  "type": "number"
                                }
                              },
                              "additionalProperties": false
                            },
                            "skipTheLine": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "supplierName": {
                              "type": "string"
                            },
                            "supplierReference": {
                              "type": "string"
                            },
                            "timeZone": {
                              "type": "string"
                            },
                            "travelers": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "restaurant"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "custom"
                            }
                          },
                          "required": [
                            "title",
                            "type"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    }
                  },
                  "required": [
                    "operation",
                    "segment"
                  ],
                  "additionalProperties": false
                }
              ]
            },
            "description": "The operations as the API read them, in the order they were sent."
          },
          "success": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "addedSegmentIds",
          "data",
          "success"
        ],
        "additionalProperties": false
      },
      "TripItinerarySendResponse": {
        "type": "object",
        "properties": {
          "approved": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string"
          },
          "countSegments": {
            "default": 0,
            "type": "number"
          },
          "createdBy": {
            "type": "string"
          },
          "itinerary": {
            "$ref": "#/components/schemas/Itinerary"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "mode": {
            "default": "AUTO",
            "$ref": "#/components/schemas/TripItineraryMode"
          },
          "status": {
            "$ref": "#/components/schemas/TripItineraryStatus"
          },
          "travelersTripId": {
            "type": "string"
          },
          "tripCost": {
            "type": "number"
          },
          "type": {
            "type": "string",
            "const": "TripItinerary"
          },
          "tripItineraryId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "delivery": {
            "type": "object",
            "properties": {
              "emailedTo": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "The addresses the itinerary was emailed to; empty when skipNotification was set."
              }
            },
            "required": [
              "emailedTo"
            ],
            "additionalProperties": false
          },
          "travelersTrip": {
            "$ref": "#/components/schemas/TravelersTrip"
          }
        },
        "required": [
          "companyName",
          "countSegments",
          "createdBy",
          "itinerary",
          "lastModifiedBy",
          "mode",
          "status",
          "travelersTripId",
          "tripCost",
          "type",
          "tripItineraryId",
          "createdAt",
          "updatedAt",
          "delivery",
          "travelersTrip"
        ],
        "additionalProperties": false
      },
      "TripItineraryUpdateResponse": {
        "type": "object",
        "properties": {
          "itinerary": {
            "type": "object",
            "properties": {
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "note",
                    "title"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "additionalProperties": false
          },
          "mode": {
            "description": "AUTO sums the segments into the trip cost; CUSTOM keeps tripCost as set. Omit to keep the current mode.",
            "$ref": "#/components/schemas/TripItineraryMode"
          },
          "status": {
            "$ref": "#/components/schemas/TripItineraryStatus"
          },
          "tripCost": {
            "description": "The trip cost in USD, kept while the mode is CUSTOM. Omit to keep the current cost; in AUTO the cost is always the sum of the segments.",
            "type": "number"
          }
        },
        "additionalProperties": false
      },
      "UserPlaceModel": {
        "type": "object",
        "properties": {
          "capturedAt": {
            "description": "When the photo was taken, from the upload's metadata; null when it carried none.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdBy": {
            "type": "string"
          },
          "description": {
            "description": "A brief description of the place or of the visit.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "errorCode": {
            "description": "Set when processing the location failed.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "errorMessage": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "fileName": {
            "description": "The name of the uploaded file.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "fullAddress": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hasError": {
            "type": "boolean",
            "description": "Whether processing the location of the photo failed."
          },
          "imageUri": {
            "type": "string",
            "description": "The photo: its storage key, which the gallery listing answers as an absolute URL."
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "locationCountry": {
            "description": "The photo's country, as the place lookup found it.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "address": {
                    "type": "string",
                    "description": "The short address; empty when the place has none."
                  },
                  "amenities": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "city": {
                    "type": "string"
                  },
                  "country": {
                    "type": "string",
                    "description": "The country's name; empty when the place has none."
                  },
                  "countryCode": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "fullAddress": {
                    "type": "string",
                    "description": "The full address; empty when the place has none."
                  },
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "name": {
                    "type": "string"
                  },
                  "photos": {
                    "description": "Up to four photos when they were asked for; empty otherwise.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "key": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        },
                        "source": {
                          "type": "string"
                        },
                        "url": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name",
                        "url"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "placeId": {
                    "type": "string"
                  },
                  "placeTypes": {
                    "description": "Every type the directory gives the place, as it spells them.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "primaryType": {
                    "description": "The place's most relevant type.",
                    "type": "string",
                    "enum": [
                      "lodging",
                      "restaurant",
                      "tourist_attraction",
                      "shopping_mall",
                      "airport",
                      "hospital",
                      "school",
                      "gas_station",
                      "bank",
                      "atm",
                      "pharmacy",
                      "store",
                      "museum",
                      "park",
                      "gym",
                      "movie_theater",
                      "night_club",
                      "bar",
                      "cafe",
                      "church",
                      "mosque",
                      "synagogue",
                      "hindu_temple",
                      "library",
                      "university",
                      "subway_station",
                      "train_station",
                      "bus_station",
                      "taxi_stand",
                      "car_rental",
                      "beauty_salon",
                      "spa",
                      "doctor",
                      "dentist",
                      "veterinary_care",
                      "zoo",
                      "amusement_park",
                      "casino",
                      "bowling_alley",
                      "stadium",
                      "post_office",
                      "police",
                      "fire_station",
                      "city_hall",
                      "courthouse",
                      "embassy",
                      "locality",
                      "administrative_area_level_1",
                      "administrative_area_level_2",
                      "country",
                      "city",
                      "region",
                      "state",
                      "neighborhood",
                      "sublocality",
                      "establishment",
                      "point_of_interest"
                    ]
                  },
                  "source": {
                    "description": "The directory the place comes from.",
                    "type": "string"
                  },
                  "state": {
                    "type": "string"
                  },
                  "zipCode": {
                    "type": "string"
                  }
                },
                "required": [
                  "address",
                  "country",
                  "fullAddress"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "zipCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "id": {
            "type": "string"
          },
          "userId": {
            "type": "string",
            "description": "The person whose gallery holds the photo."
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "UserPlace"
          }
        },
        "required": [
          "createdBy",
          "hasError",
          "imageUri",
          "lastModifiedBy",
          "id",
          "userId",
          "createdAt",
          "updatedAt",
          "type"
        ],
        "additionalProperties": false
      },
      "UserPlacesGetResponse": {
        "anyOf": [
          {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "albumId": {
                  "type": "string"
                },
                "cities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "count": {
                  "type": "number",
                  "description": "How many photos the album holds."
                },
                "country": {
                  "type": "string",
                  "description": "The album's title: the photos' country, or Unknown for photos without one."
                },
                "items": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/UserPlaceModel"
                  },
                  "description": "The album's photos, each without locationCountry and with imageUri as an absolute URL."
                },
                "lastVisitDate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "When the newest photo was taken, or uploaded when that is not known."
                },
                "location": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "address": {
                          "type": "string",
                          "description": "The short address; empty when the place has none."
                        },
                        "amenities": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "city": {
                          "type": "string"
                        },
                        "country": {
                          "type": "string",
                          "description": "The country's name; empty when the place has none."
                        },
                        "countryCode": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "fullAddress": {
                          "type": "string",
                          "description": "The full address; empty when the place has none."
                        },
                        "latitude": {
                          "type": "number"
                        },
                        "longitude": {
                          "type": "number"
                        },
                        "name": {
                          "type": "string"
                        },
                        "photos": {
                          "description": "Up to four photos when they were asked for; empty otherwise.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "name": {
                                "type": "string"
                              },
                              "source": {
                                "type": "string"
                              },
                              "url": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "name",
                              "url"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "placeId": {
                          "type": "string"
                        },
                        "placeTypes": {
                          "description": "Every type the directory gives the place, as it spells them.",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "primaryType": {
                          "description": "The place's most relevant type.",
                          "type": "string",
                          "enum": [
                            "lodging",
                            "restaurant",
                            "tourist_attraction",
                            "shopping_mall",
                            "airport",
                            "hospital",
                            "school",
                            "gas_station",
                            "bank",
                            "atm",
                            "pharmacy",
                            "store",
                            "museum",
                            "park",
                            "gym",
                            "movie_theater",
                            "night_club",
                            "bar",
                            "cafe",
                            "church",
                            "mosque",
                            "synagogue",
                            "hindu_temple",
                            "library",
                            "university",
                            "subway_station",
                            "train_station",
                            "bus_station",
                            "taxi_stand",
                            "car_rental",
                            "beauty_salon",
                            "spa",
                            "doctor",
                            "dentist",
                            "veterinary_care",
                            "zoo",
                            "amusement_park",
                            "casino",
                            "bowling_alley",
                            "stadium",
                            "post_office",
                            "police",
                            "fire_station",
                            "city_hall",
                            "courthouse",
                            "embassy",
                            "locality",
                            "administrative_area_level_1",
                            "administrative_area_level_2",
                            "country",
                            "city",
                            "region",
                            "state",
                            "neighborhood",
                            "sublocality",
                            "establishment",
                            "point_of_interest"
                          ]
                        },
                        "source": {
                          "description": "The directory the place comes from.",
                          "type": "string"
                        },
                        "state": {
                          "type": "string"
                        },
                        "zipCode": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "address",
                        "country",
                        "fullAddress"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "city": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "country": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "countryCode": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latitude": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "longitude": {
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "state": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "city",
                        "country",
                        "countryCode",
                        "latitude",
                        "longitude",
                        "state"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "description": "The newest photo's country as the place lookup found it, or else that photo's own city, state and country."
                }
              },
              "required": [
                "albumId",
                "cities",
                "count",
                "country",
                "items",
                "lastVisitDate",
                "location"
              ],
              "additionalProperties": false
            }
          },
          {
            "type": "object",
            "properties": {
              "count": {
                "type": "number",
                "description": "How many photos the list holds."
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/UserPlaceModel"
                },
                "description": "The photos, each with imageUri as an absolute URL."
              },
              "nextToken": {
                "anyOf": [
                  {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      }
                    ]
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Null when the list holds every photo. The list stops at the first 1,000, and this route reads no further page."
              }
            },
            "required": [
              "count",
              "items",
              "nextToken"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CarDiscoveryResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CarRentalOffer"
            }
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "page": {
            "type": "object",
            "properties": {
              "number": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "size": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "number",
              "size",
              "total",
              "hasMore"
            ],
            "additionalProperties": false
          },
          "filters": {
            "type": "object",
            "properties": {
              "applied": {
                "type": "object",
                "properties": {
                  "supplierCodes": {
                    "default": [],
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z0-9]{2}$"
                    }
                  },
                  "transmission": {
                    "default": [],
                    "maxItems": 2,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "AUTOMATIC",
                        "MANUAL"
                      ]
                    }
                  },
                  "extras": {
                    "default": [],
                    "maxItems": 10,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "pattern": "^[A-Z0-9]{3}$"
                    }
                  },
                  "minimumPriceMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maximumPriceMinor": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "minimumLuggage": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 20
                  },
                  "minimumCargo": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 20
                  },
                  "minimumSeats": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 20
                  }
                },
                "required": [
                  "supplierCodes",
                  "transmission",
                  "extras"
                ],
                "additionalProperties": false
              },
              "available": {
                "type": "object",
                "properties": {
                  "suppliers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "transmission": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "extras": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "code",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "price": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "currency": {
                            "$ref": "#/components/schemas/CurrencyCode"
                          },
                          "minimumMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "maximumMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "currency",
                          "minimumMinor",
                          "maximumMinor"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maximumLuggage": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maximumCargo": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maximumSeats": {
                    "anyOf": [
                      {
                        "type": "number",
                        "minimum": 0
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "suppliers",
                  "transmission",
                  "extras",
                  "price",
                  "maximumLuggage",
                  "maximumCargo",
                  "maximumSeats"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "applied",
              "available"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "items",
          "fetchedAt",
          "expiresAt",
          "page",
          "filters"
        ],
        "additionalProperties": false
      },
      "BookingCarRentalsListEvent": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "results"
              },
              "data": {
                "$ref": "#/components/schemas/CarDiscoveryResponse"
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "data",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "complete"
              },
              "settled": {
                "type": "boolean",
                "const": true
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "settled",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CarDiscoveryDetails": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "OK",
              "PRICE_CHANGED",
              "UNAVAILABLE"
            ]
          },
          "offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CarRentalOffer"
              },
              {
                "type": "null"
              }
            ]
          },
          "previousPrice": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "breakdown": {
                    "type": "object",
                    "properties": {
                      "baseMinor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "discountMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "nicerAdjustmentMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "supplierFeesMinor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taxesMinor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "baseMinor",
                      "discountMinor",
                      "nicerAdjustmentMinor",
                      "supplierFeesMinor",
                      "taxesMinor"
                    ],
                    "additionalProperties": false
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "totalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "breakdown",
                  "currency",
                  "totalMinor"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "reasonCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "status",
          "offer",
          "previousPrice",
          "reasonCode"
        ],
        "additionalProperties": false
      },
      "BookingCarRentalsGetEvent": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "results"
              },
              "data": {
                "$ref": "#/components/schemas/CarDiscoveryDetails"
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "data",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "complete"
              },
              "settled": {
                "type": "boolean",
                "const": true
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "settled",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          }
        ]
      },
      "FlightDiscoveryResponse": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightOffer"
            }
          },
          "groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightDiscoveryGroup"
            }
          },
          "filters": {
            "type": "object",
            "properties": {
              "applied": {
                "type": "object",
                "properties": {
                  "airlineCodes": {
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/CarrierCode"
                    }
                  },
                  "checkedBaggageIncludedOnly": {
                    "type": "boolean"
                  },
                  "commissionableOnly": {
                    "type": "boolean"
                  },
                  "maximumDurationMinutes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maximumPriceMinor": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "minimumPriceMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "refundableOnly": {
                    "type": "boolean"
                  },
                  "sameCabinOnly": {
                    "type": "boolean"
                  },
                  "changeableOnly": {
                    "type": "boolean"
                  },
                  "maximumLayoverMinutes": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "connectionAirportCodes": {
                    "maxItems": 30,
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/AirportCode"
                    }
                  },
                  "excludeAirportChanges": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "available": {
                "type": "object",
                "properties": {
                  "airlines": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "$ref": "#/components/schemas/CarrierCode"
                        },
                        "logoAssetReference": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "code",
                        "logoAssetReference",
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "matrix": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FlightMatrixCell"
                    }
                  },
                  "changeableCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "checkedBaggageIncludedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "commission": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "commissionableCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "grossAmountRanges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "$ref": "#/components/schemas/CurrencyCode"
                                },
                                "maximumAmountMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "minimumAmountMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "maximumAmountMinor",
                                "minimumAmountMinor"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "commissionableCount",
                          "grossAmountRanges"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "connectionAirports": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "airport": {
                          "type": "object",
                          "properties": {
                            "city": {
                              "type": "string",
                              "minLength": 1
                            },
                            "countryCode": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/CountryCode"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "iataCode": {
                              "$ref": "#/components/schemas/AirportCode"
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1
                            },
                            "timeZone": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "city",
                            "countryCode",
                            "iataCode",
                            "name",
                            "timeZone"
                          ],
                          "additionalProperties": false
                        },
                        "flightCount": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "airport",
                        "flightCount"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "connectionCounts": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "durationMinutes": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "maximum": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minimum": {
                            "type": "integer",
                            "exclusiveMinimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "maximum",
                          "minimum"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "layoverMinutes": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "maximum": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minimum": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "maximum",
                          "minimum"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priceRanges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "currency": {
                          "$ref": "#/components/schemas/CurrencyCode"
                        },
                        "maximumAmountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "minimumAmountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "currency",
                        "maximumAmountMinor",
                        "minimumAmountMinor"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "refundableCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "airlines",
                  "checkedBaggageIncludedCount",
                  "commission",
                  "connectionCounts",
                  "durationMinutes",
                  "priceRanges",
                  "refundableCount"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "applied",
              "available"
            ],
            "additionalProperties": false
          },
          "page": {
            "type": "object",
            "properties": {
              "number": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "size": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "number",
              "size",
              "total",
              "hasMore"
            ],
            "additionalProperties": false
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "items",
          "filters",
          "page",
          "fetchedAt",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "BookingFlightsListEvent": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "results"
              },
              "data": {
                "$ref": "#/components/schemas/FlightDiscoveryResponse"
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "data",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "complete"
              },
              "settled": {
                "type": "boolean",
                "const": true
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "settled",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          }
        ]
      },
      "FlightDetailsResponse": {
        "type": "object",
        "properties": {
          "baggage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "passengerReference": {
                  "type": "string",
                  "minLength": 1
                },
                "pieces": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "segmentReference": {
                  "type": "string",
                  "minLength": 1
                },
                "size": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/BaggageSize"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "CARRY_ON",
                    "CHECKED"
                  ]
                },
                "weight": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/BaggageWeight"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "passengerReference",
                "pieces",
                "segmentReference",
                "type",
                "weight"
              ],
              "additionalProperties": false
            }
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "ancillaries": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              },
              "seats": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              }
            },
            "required": [
              "ancillaries",
              "seats"
            ],
            "additionalProperties": false
          },
          "fareOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightFareOption"
            }
          },
          "offer": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FlightOffer"
              },
              {
                "type": "null"
              }
            ]
          },
          "previousPrice": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "breakdown": {
                    "type": "object",
                    "properties": {
                      "baseMinor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "discountMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "nicerAdjustmentMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "supplierFeesMinor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "taxesMinor": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "baseMinor",
                      "discountMinor",
                      "nicerAdjustmentMinor",
                      "supplierFeesMinor",
                      "taxesMinor"
                    ],
                    "additionalProperties": false
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "totalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "breakdown",
                  "currency",
                  "totalMinor"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "reasonCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "rules": {
            "$ref": "#/components/schemas/FlightRules"
          },
          "selectedOfferReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "OK",
              "PRICE_CHANGED",
              "UNAVAILABLE"
            ]
          }
        },
        "required": [
          "baggage",
          "capabilities",
          "fareOptions",
          "offer",
          "previousPrice",
          "reasonCode",
          "rules",
          "selectedOfferReference",
          "status"
        ],
        "additionalProperties": false
      },
      "BookingFlightsGetEvent": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "results"
              },
              "data": {
                "$ref": "#/components/schemas/FlightDetailsResponse"
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "data",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "complete"
              },
              "settled": {
                "type": "boolean",
                "const": true
              },
              "sequence": {
                "type": "number"
              },
              "elapsedMs": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "settled",
              "sequence",
              "elapsedMs"
            ],
            "additionalProperties": false
          }
        ]
      },
      "HotelDiscoveryResponse": {
        "type": "object",
        "properties": {
          "page": {
            "type": "object",
            "properties": {
              "hasMore": {
                "type": "boolean"
              },
              "number": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "size": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "total": {
                "type": "object",
                "properties": {
                  "exact": {
                    "type": "boolean"
                  },
                  "value": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "exact",
                  "value"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "hasMore",
              "number",
              "size",
              "total"
            ],
            "additionalProperties": false
          },
          "pollAfterMs": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "progress": {
            "type": "object",
            "properties": {
              "failed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "live": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pending": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "failed",
              "live",
              "pending"
            ],
            "additionalProperties": false
          },
          "status": {
            "type": "string",
            "enum": [
              "COMPLETE",
              "FAILED",
              "PARTIAL",
              "PENDING"
            ]
          },
          "filters": {
            "type": "object",
            "properties": {
              "applied": {
                "type": "object",
                "properties": {
                  "amenities": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "breakfastIncludedOnly": {
                    "type": "boolean"
                  },
                  "chainNames": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "commissionableOnly": {
                    "type": "boolean"
                  },
                  "hotelReferences": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "maximumDistanceKm": {
                    "type": "number",
                    "exclusiveMinimum": 0,
                    "maximum": 500
                  },
                  "maximumPriceMinor": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "maximumStars": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 5
                  },
                  "minimumPriceMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "minimumStars": {
                    "type": "number",
                    "minimum": 0,
                    "maximum": 5
                  },
                  "requireRateCodeMatch": {
                    "type": "boolean"
                  },
                  "rateCodes": {
                    "maxItems": 20,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "refundableOnly": {
                    "type": "boolean"
                  }
                },
                "additionalProperties": false
              },
              "available": {
                "type": "object",
                "properties": {
                  "amenities": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "breakfastIncludedCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "chainNames": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "commission": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "commissionableCount": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "grossAmountRanges": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "$ref": "#/components/schemas/CurrencyCode"
                                },
                                "maximumAmountMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                "minimumAmountMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "maximumAmountMinor",
                                "minimumAmountMinor"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "commissionableCount",
                          "grossAmountRanges"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "priceRanges": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "currency": {
                          "$ref": "#/components/schemas/CurrencyCode"
                        },
                        "maximumAmountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "minimumAmountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "currency",
                        "maximumAmountMinor",
                        "minimumAmountMinor"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "rateCodes": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "ratings": {
                    "type": "array",
                    "items": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 5
                    }
                  },
                  "refundableCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "distanceKm": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "maximum": {
                            "type": "number",
                            "minimum": 0
                          },
                          "minimum": {
                            "type": "number",
                            "minimum": 0
                          }
                        },
                        "required": [
                          "maximum",
                          "minimum"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amenities",
                  "breakfastIncludedCount",
                  "chainNames",
                  "commission",
                  "priceRanges",
                  "rateCodes",
                  "ratings",
                  "refundableCount",
                  "distanceKm"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "applied",
              "available"
            ],
            "additionalProperties": false
          },
          "focus": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "type": {
                "type": "string",
                "enum": [
                  "HOTEL",
                  "POINT_OF_INTEREST"
                ]
              },
              "hotelReference": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "SEARCHING",
                  "AVAILABLE",
                  "UNAVAILABLE",
                  "INCOMPLETE"
                ]
              }
            },
            "required": [
              "name",
              "type",
              "hotelReference",
              "status"
            ],
            "additionalProperties": false
          },
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelSummary"
            }
          },
          "pins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "hotelReference": {
                  "type": "string",
                  "minLength": 1
                },
                "imageUrl": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uri"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "latitude": {
                  "type": "number",
                  "minimum": -90,
                  "maximum": 90
                },
                "longitude": {
                  "type": "number",
                  "minimum": -180,
                  "maximum": 180
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "displayPrice": {
                  "type": "object",
                  "properties": {
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "baseMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "nicerAdjustmentMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "supplierFeesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "taxesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "baseMinor",
                        "discountMinor",
                        "nicerAdjustmentMinor",
                        "supplierFeesMinor",
                        "taxesMinor"
                      ],
                      "additionalProperties": false
                    },
                    "currency": {
                      "$ref": "#/components/schemas/CurrencyCode"
                    },
                    "totalMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "averageNightlyMinor": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nightly": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "breakdown": {
                            "type": "object",
                            "properties": {
                              "baseMinor": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountMinor": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "nicerAdjustmentMinor": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "supplierFeesMinor": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "taxesMinor": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "baseMinor",
                              "discountMinor",
                              "nicerAdjustmentMinor",
                              "supplierFeesMinor",
                              "taxesMinor"
                            ],
                            "additionalProperties": false
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "totalMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "breakdown",
                          "date",
                          "totalMinor"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "breakdown",
                    "currency",
                    "totalMinor",
                    "averageNightlyMinor",
                    "nightly"
                  ],
                  "additionalProperties": false
                },
                "displayCommission": {
                  "type": "object",
                  "properties": {
                    "amountMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "currency": {
                      "$ref": "#/components/schemas/CurrencyCode"
                    }
                  },
                  "required": [
                    "amountMinor",
                    "currency"
                  ],
                  "additionalProperties": false
                },
                "price": {
                  "type": "object",
                  "properties": {
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "baseMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "nicerAdjustmentMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "supplierFeesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "taxesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "baseMinor",
                        "discountMinor",
                        "nicerAdjustmentMinor",
                        "supplierFeesMinor",
                        "taxesMinor"
                      ],
                      "additionalProperties": false
                    },
                    "currency": {
                      "$ref": "#/components/schemas/CurrencyCode"
                    },
                    "totalMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "averageNightlyMinor": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nightly": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "breakdown": {
                            "type": "object",
                            "properties": {
                              "baseMinor": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "discountMinor": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "nicerAdjustmentMinor": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "supplierFeesMinor": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "taxesMinor": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              }
                            },
                            "required": [
                              "baseMinor",
                              "discountMinor",
                              "nicerAdjustmentMinor",
                              "supplierFeesMinor",
                              "taxesMinor"
                            ],
                            "additionalProperties": false
                          },
                          "date": {
                            "type": "string",
                            "format": "date",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                          },
                          "totalMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "breakdown",
                          "date",
                          "totalMinor"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "breakdown",
                    "currency",
                    "totalMinor",
                    "averageNightlyMinor",
                    "nightly"
                  ],
                  "additionalProperties": false
                },
                "selected": {
                  "type": "boolean"
                },
                "starRating": {
                  "anyOf": [
                    {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 5
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "hotelReference",
                "imageUrl",
                "latitude",
                "longitude",
                "name",
                "price",
                "selected",
                "starRating"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "page",
          "pollAfterMs",
          "progress",
          "status",
          "filters",
          "items"
        ],
        "additionalProperties": false
      },
      "BookingHotelsListEvent": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "type": {
                "type": "string",
                "const": "snapshot"
              },
              "data": {
                "$ref": "#/components/schemas/HotelDiscoveryResponse"
              }
            },
            "required": [
              "sequence",
              "elapsedMs",
              "type",
              "data"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "type": {
                "type": "string",
                "const": "content"
              },
              "data": {
                "$ref": "#/components/schemas/HotelDetailsResponse"
              }
            },
            "required": [
              "sequence",
              "elapsedMs",
              "type",
              "data"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "type": {
                "type": "string",
                "const": "rates"
              },
              "data": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/HotelDetailsResponse"
                  },
                  {
                    "$ref": "#/components/schemas/HotelRatesResponse"
                  }
                ]
              }
            },
            "required": [
              "sequence",
              "elapsedMs",
              "type",
              "data"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "type": {
                "type": "string",
                "const": "complete"
              },
              "settled": {
                "type": "boolean"
              }
            },
            "required": [
              "sequence",
              "elapsedMs",
              "type",
              "settled"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "type": {
                "type": "string",
                "const": "heartbeat"
              }
            },
            "required": [
              "sequence",
              "elapsedMs",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "sequence": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "elapsedMs": {
                "type": "number",
                "minimum": 0
              },
              "type": {
                "type": "string",
                "const": "error"
              },
              "code": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "sequence",
              "elapsedMs",
              "type",
              "code"
            ],
            "additionalProperties": false
          }
        ]
      },
      "BookingHotelsGetResponse": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/HotelDetailsResponse"
          },
          {
            "$ref": "#/components/schemas/HotelRatesResponse"
          }
        ]
      },
      "ItinerarySegment": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ItineraryFlightSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryLodgingSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryCarRentalSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryTransportationSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryCruiseSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryActivitySegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryRestaurantSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryCustomSegment"
          }
        ]
      },
      "ItineraryFlightSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "flight"
          },
          "baggageCharges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageCharge"
            }
          },
          "brandFeatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
            }
          },
          "cabin": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "ECONOMY",
              "FIRST",
              "PREMIUM_ECONOMY"
            ]
          },
          "commercialSnapshot": {
            "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "fareRules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightFareRuleSnapshot"
            }
          },
          "flightIndex": {
            "type": "string"
          },
          "flightType": {
            "type": "string",
            "enum": [
              "one-way",
              "round-trip",
              "multi-city"
            ]
          },
          "inbound": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightItinerary"
            }
          },
          "outbound": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightItinerary"
            }
          },
          "owner": {
            "$ref": "#/components/schemas/FlightCarrierSnapshot"
          },
          "passengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightPassengerSnapshot"
            }
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuotePolicy"
            }
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "rules": {
            "$ref": "#/components/schemas/FlightRules"
          },
          "ticketingDeadline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "flightType"
        ],
        "additionalProperties": false
      },
      "Attachment": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "string"
              }
            ]
          },
          "url": {
            "type": "string"
          }
        }
      },
      "Location": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "distanceFromSearch": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string",
                "enum": [
                  "km",
                  "mi"
                ]
              },
              "value": {
                "type": "number"
              }
            },
            "required": [
              "unit",
              "value"
            ]
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fullAddress": {
            "type": "string"
          },
          "gate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "iataCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "internovaId": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ]
            }
          },
          "placeId": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeZone": {
            "type": "string"
          },
          "zipCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "FlightBaggageCharge": {
        "type": "object",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "firstPiece": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "lastPiece": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "passengerReference": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "$ref": "#/components/schemas/Money"
          },
          "segmentReferences": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "size": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaggageSize"
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "CARRY_ON",
              "CHECKED"
            ]
          },
          "weight": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaggageWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "description",
          "firstPiece",
          "lastPiece",
          "passengerReference",
          "price",
          "segmentReferences",
          "size",
          "type",
          "weight"
        ],
        "additionalProperties": false,
        "description": "The price of each bag beyond the allowance, for one passenger and the flights one payment covers."
      },
      "Money": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          }
        },
        "required": [
          "amountMinor",
          "currency"
        ],
        "additionalProperties": false
      },
      "CurrencyCode": {
        "type": "string",
        "pattern": "^[A-Z]{3}$"
      },
      "BaggageSize": {
        "type": "object",
        "properties": {
          "dimensions": {
            "anyOf": [
              {
                "minItems": 3,
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "number",
                  "exclusiveMinimum": 0
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "linear": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "unit": {
            "type": "string",
            "enum": [
              "CM",
              "IN"
            ]
          }
        },
        "required": [
          "dimensions",
          "linear",
          "unit"
        ],
        "additionalProperties": false,
        "description": "The most a bag may measure: the sum of its sides, each side, or both.",
        "examples": [
          {
            "dimensions": null,
            "linear": 158,
            "unit": "CM"
          },
          {
            "dimensions": [
              55,
              40,
              25
            ],
            "linear": null,
            "unit": "CM"
          }
        ]
      },
      "BaggageWeight": {
        "type": "object",
        "properties": {
          "unit": {
            "type": "string",
            "enum": [
              "KG",
              "LB"
            ]
          },
          "value": {
            "type": "number",
            "exclusiveMinimum": 0
          }
        },
        "required": [
          "unit",
          "value"
        ],
        "additionalProperties": false,
        "description": "A bag's weight limit. Beside a piece count it caps each piece; alone it is the total a passenger may carry.",
        "examples": [
          {
            "unit": "KG",
            "value": 23
          }
        ]
      },
      "FlightBrandFeatureSnapshot": {
        "type": "object",
        "properties": {
          "availability": {
            "type": "string",
            "enum": [
              "CHARGEABLE",
              "INCLUDED",
              "NOT_OFFERED"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "availability",
          "name"
        ],
        "additionalProperties": false
      },
      "BookingCommercialSnapshot": {
        "type": "object",
        "properties": {
          "calculationInputs": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "number"
                },
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "expectedAdvisorEarning": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "basis": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateBps": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "basis",
                  "rateBps"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedSupplierCommission": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "basis": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateBps": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "basis",
                  "rateBps"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedTravelerReward": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "basis": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "rateBps": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 10000
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amountMinor",
                  "currency",
                  "basis",
                  "rateBps"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "policyVersion": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "calculationInputs",
          "expectedAdvisorEarning",
          "expectedSupplierCommission",
          "expectedTravelerReward",
          "policyVersion"
        ],
        "additionalProperties": false
      },
      "FlightFareRuleSnapshot": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "ADVANCE_PURCHASE",
              "CANCELLATION",
              "CHANGE",
              "MINIMUM_STAY",
              "NO_SHOW",
              "OTHER"
            ]
          },
          "exactCopy": {
            "type": "string",
            "minLength": 1
          },
          "passengerReferences": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "category",
          "exactCopy",
          "passengerReferences"
        ],
        "additionalProperties": false
      },
      "FlightItinerary": {
        "type": "object",
        "properties": {
          "aircraft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "arrivingAt": {
            "default": null,
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "baggage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageSnapshot"
            }
          },
          "bookingClass": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "cabin": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "ECONOMY",
              "FIRST",
              "PREMIUM_ECONOMY"
            ]
          },
          "departingAt": {
            "type": "string"
          },
          "destination": {
            "$ref": "#/components/schemas/Location"
          },
          "distance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "explicitNoFlightNumber": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "fareBasisCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hiddenStops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightHiddenStopSnapshot"
            }
          },
          "legId": {
            "type": "string"
          },
          "marketingCarrier": {
            "type": "object",
            "properties": {
              "conditionsOfCarriageUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "iataCode": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoLockupUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoSymbolUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "iataCode",
              "name"
            ],
            "additionalProperties": false
          },
          "marketingCarrierFlightNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "operatingCarrier": {
            "type": "object",
            "properties": {
              "conditionsOfCarriageUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "iataCode": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoLockupUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoSymbolUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "iataCode",
              "name"
            ],
            "additionalProperties": false
          },
          "operatingCarrierFlightNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "$ref": "#/components/schemas/Location"
          },
          "providerSegmentReference": {
            "type": "string"
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSelectedSeat"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSelectedService"
            }
          }
        },
        "required": [
          "arrivingAt",
          "departingAt",
          "destination",
          "origin"
        ],
        "additionalProperties": false
      },
      "FlightBaggageSnapshot": {
        "type": "object",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "passengerReference": {
            "type": "string",
            "minLength": 1
          },
          "pieces": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "serviceId": {
            "type": "string",
            "minLength": 1
          },
          "size": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaggageSize"
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "AVAILABLE",
              "NOT_REQUESTED",
              "NOT_SUPPORTED"
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "CARRY_ON",
              "CHECKED"
            ]
          },
          "weight": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/BaggageWeight"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "passengerReference",
          "pieces",
          "serviceId",
          "status",
          "type",
          "weight"
        ],
        "additionalProperties": false
      },
      "FlightHiddenStopSnapshot": {
        "type": "object",
        "properties": {
          "airport": {
            "$ref": "#/components/schemas/FlightAirportSnapshot"
          },
          "arrivalAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "departureAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMinutes": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "airport",
          "arrivalAt",
          "departureAt",
          "durationMinutes"
        ],
        "additionalProperties": false
      },
      "FlightAirportSnapshot": {
        "type": "object",
        "properties": {
          "city": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "iataCode": {
            "$ref": "#/components/schemas/AirportCode"
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "timeZone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "city",
          "countryCode",
          "iataCode",
          "name",
          "timeZone"
        ],
        "additionalProperties": false
      },
      "CountryCode": {
        "type": "string",
        "pattern": "^[A-Z]{2}$"
      },
      "AirportCode": {
        "type": "string",
        "pattern": "^[A-Z]{3}$"
      },
      "FlightSelectedSeat": {
        "type": "object",
        "properties": {
          "passengerReference": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ]
          },
          "seatId": {
            "type": "string",
            "minLength": 1
          },
          "seatNumber": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "passengerReference",
          "price",
          "seatId",
          "seatNumber"
        ],
        "additionalProperties": false
      },
      "FlightSelectedService": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "passengerReferences": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ]
          },
          "serviceId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "CONFIRMED",
              "ON_REQUEST"
            ]
          }
        },
        "required": [
          "name",
          "passengerReferences",
          "price",
          "serviceId",
          "status"
        ],
        "additionalProperties": false
      },
      "FlightCarrierSnapshot": {
        "type": "object",
        "properties": {
          "code": {
            "$ref": "#/components/schemas/CarrierCode"
          },
          "logoAssetReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "code",
          "name"
        ],
        "additionalProperties": false
      },
      "CarrierCode": {
        "type": "string",
        "pattern": "^[A-Z0-9]{2,3}$"
      },
      "FlightPassengerSnapshot": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "totalMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "type": {
            "type": "string",
            "enum": [
              "ADULT",
              "CHILD",
              "INFANT"
            ]
          }
        },
        "required": [
          "count",
          "totalMinor",
          "type"
        ],
        "additionalProperties": false
      },
      "QuotePolicy": {
        "type": "object",
        "properties": {
          "allowed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "deadline": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "exactCopy": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "enum": [
              "CANCELLATION",
              "CHANGE",
              "DEPOSIT",
              "GUARANTEE",
              "NO_SHOW",
              "PAY_AT_PROPERTY"
            ]
          },
          "penalties": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Money"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "from": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "summary": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "amount",
                "from",
                "summary"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "allowed",
          "deadline",
          "exactCopy",
          "kind",
          "penalties"
        ],
        "additionalProperties": false
      },
      "BookingPriceSnapshot": {
        "type": "object",
        "properties": {
          "baseMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "collector": {
            "type": "string",
            "enum": [
              "MULTIPLE",
              "NICER",
              "PROPERTY",
              "PROVIDER",
              "UNKNOWN"
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "depositMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "discounts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceComponent"
            }
          },
          "dueAtPropertyMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "dueLaterMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "dueNowMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "fees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceComponent"
            }
          },
          "lineItems": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceComponent"
            }
          },
          "taxes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceComponent"
            }
          },
          "totalMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "baseMinor",
          "collector",
          "currency",
          "depositMinor",
          "discounts",
          "dueAtPropertyMinor",
          "dueLaterMinor",
          "dueNowMinor",
          "fees",
          "lineItems",
          "taxes",
          "totalMinor"
        ],
        "additionalProperties": false
      },
      "PriceComponent": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "code": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "amountMinor",
          "code",
          "label"
        ],
        "additionalProperties": false
      },
      "FlightRules": {
        "type": "object",
        "properties": {
          "afterDeparture": {
            "type": "object",
            "properties": {
              "cancellation": {
                "type": "object",
                "properties": {
                  "allowed": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "deadline": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "penalty": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Money"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "penaltyRange": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "currency": {
                            "$ref": "#/components/schemas/CurrencyCode"
                          },
                          "maximumAmountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minimumAmountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "currency",
                          "maximumAmountMinor",
                          "minimumAmountMinor"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "allowed",
                  "deadline",
                  "penalty",
                  "summary"
                ],
                "additionalProperties": false
              },
              "change": {
                "type": "object",
                "properties": {
                  "allowed": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "deadline": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "penalty": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Money"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "penaltyRange": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "currency": {
                            "$ref": "#/components/schemas/CurrencyCode"
                          },
                          "maximumAmountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          },
                          "minimumAmountMinor": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "currency",
                          "maximumAmountMinor",
                          "minimumAmountMinor"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "allowed",
                  "deadline",
                  "penalty",
                  "summary"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "cancellation",
              "change"
            ],
            "additionalProperties": false
          },
          "cancellation": {
            "type": "object",
            "properties": {
              "allowed": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "penalty": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Money"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "penaltyRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "$ref": "#/components/schemas/CurrencyCode"
                      },
                      "maximumAmountMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "minimumAmountMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "currency",
                      "maximumAmountMinor",
                      "minimumAmountMinor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "allowed",
              "deadline",
              "penalty",
              "summary"
            ],
            "additionalProperties": false
          },
          "change": {
            "type": "object",
            "properties": {
              "allowed": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "penalty": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Money"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "penaltyRange": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "$ref": "#/components/schemas/CurrencyCode"
                      },
                      "maximumAmountMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "minimumAmountMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "currency",
                      "maximumAmountMinor",
                      "minimumAmountMinor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "allowed",
              "deadline",
              "penalty",
              "summary"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "cancellation",
          "change"
        ],
        "additionalProperties": false,
        "description": "What changing or canceling costs before departure and, when filed, after it."
      },
      "ItineraryLodgingSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "lodging"
          },
          "bookingOccupancy": {
            "type": "object",
            "properties": {
              "rooms": {
                "minItems": 1,
                "maxItems": 8,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "adults": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8
                    },
                    "children": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 6
                    },
                    "childrenAges": {
                      "maxItems": 6,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 17
                      }
                    }
                  },
                  "required": [
                    "adults",
                    "children",
                    "childrenAges"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "rooms"
            ],
            "additionalProperties": false
          },
          "checkinDate": {
            "type": "string"
          },
          "checkoutDate": {
            "type": "string"
          },
          "commercialSnapshot": {
            "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "lodge": {
            "type": "object",
            "properties": {
              "checkin": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "checkout": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "guests": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "name": {
                "type": "string"
              },
              "rooms": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Room"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "stars": {
                "type": "number"
              },
              "status": {
                "type": "string",
                "enum": [
                  "proposed",
                  "hold",
                  "booked",
                  "cancelled"
                ]
              }
            },
            "required": [
              "name"
            ]
          }
        },
        "required": [
          "id",
          "type",
          "checkinDate",
          "checkoutDate",
          "lodge"
        ]
      },
      "Room": {
        "type": "object",
        "properties": {
          "adults": {
            "type": "number"
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "beds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "children": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "gdslocator": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "guests": {
            "type": "string"
          },
          "image": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "policies": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "breakfast": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "deadline": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "refund": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "ratePlanCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "travelers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ItineraryCarRentalSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "car_rental"
          },
          "carType": {
            "type": "string"
          },
          "dropoff": {
            "$ref": "#/components/schemas/Location"
          },
          "engine": {
            "type": "string",
            "enum": [
              "ELECTRIC",
              "HYBRID",
              "GASOLINE",
              "DIESEL"
            ]
          },
          "insurance": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "pickup": {
            "$ref": "#/components/schemas/Location"
          },
          "transmission": {
            "type": "string",
            "enum": [
              "MANUAL",
              "AUTOMATIC"
            ]
          }
        },
        "required": [
          "id",
          "type",
          "dropoff",
          "pickup"
        ]
      },
      "ItineraryTransportationSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "transportation"
          },
          "arrivalDateTime": {
            "type": "string"
          },
          "arrivalLocation": {
            "$ref": "#/components/schemas/Location"
          },
          "arrivalTimezone": {
            "type": "string"
          },
          "departureDateTime": {
            "type": "string"
          },
          "departureLocation": {
            "$ref": "#/components/schemas/Location"
          },
          "departureTimezone": {
            "type": "string"
          },
          "guests": {
            "type": "number"
          },
          "transportationType": {
            "type": "string",
            "enum": [
              "ground_transportation",
              "train",
              "bus",
              "automobile"
            ]
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "ItineraryCruiseSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "cruise"
          },
          "arrivalDateTime": {
            "type": "string"
          },
          "arrivalLocation": {
            "$ref": "#/components/schemas/Location"
          },
          "arrivalTimezone": {
            "type": "string"
          },
          "departureDateTime": {
            "type": "string"
          },
          "departureLocation": {
            "$ref": "#/components/schemas/Location"
          },
          "departureTimezone": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "hold",
              "booked",
              "cancelled"
            ]
          },
          "stop": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Location"
            }
          },
          "suites": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Suite"
            }
          }
        },
        "required": [
          "id",
          "type",
          "departureLocation"
        ]
      },
      "Suite": {
        "type": "object",
        "properties": {
          "adults": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "beds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "children": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "policies": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "breakfast": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "deadline": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "refund": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "travelers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ItineraryRestaurantSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "restaurant"
          },
          "status": {
            "type": "string",
            "enum": [
              "proposed",
              "hold",
              "booked",
              "cancelled"
            ]
          }
        },
        "required": [
          "id",
          "type"
        ]
      },
      "ItineraryCustomSegment": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "custom"
          }
        },
        "required": [
          "id",
          "title",
          "type"
        ]
      },
      "AgentAttachment": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "text/plain",
              "text/markdown",
              "text/csv",
              "text/html",
              "image/png",
              "image/jpeg"
            ]
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^agentAttachment\\/[^/]+\\/[^/]+\\/[^/]+$"
          }
        },
        "required": [
          "name",
          "mediaType",
          "key"
        ],
        "additionalProperties": false
      },
      "McpSurface": {
        "type": "string",
        "enum": [
          "ADVISOR",
          "INTERNAL"
        ],
        "description": "Which MCP server the connection opens. ADVISOR is mcp.<env>/mcp, acting as the person in the agencies they belong to and never with staff rights. INTERNAL is mcp.<env>/internal, for Nicer staff only, in every agency."
      },
      "McpConnection": {
        "type": "object",
        "properties": {
          "connectionId": {
            "type": "string",
            "minLength": 1,
            "description": "The connection's id: the hex of its tokens' bytes 16 to 24, 16 characters."
          },
          "clientName": {
            "type": "string",
            "minLength": 1,
            "description": "The AI client's name as the client states it in its metadata (client_name); Nicer does not verify it. Its client id when it states none."
          },
          "clientId": {
            "type": "string",
            "minLength": 1,
            "description": "The client's OAuth client_id: the HTTPS address of its client metadata document, or the id Nicer gave it when it registered."
          },
          "redirectHost": {
            "type": "string",
            "minLength": 1,
            "description": "Where the client receives its code, as a person reads it: the host of its redirect URI, such as an assistant's website or 127.0.0.1. Redirect URIs are HTTPS or loopback HTTP only."
          },
          "surface": {
            "$ref": "#/components/schemas/McpSurface"
          },
          "access": {
            "type": "string",
            "enum": [
              "READ",
              "WRITE",
              "MONEY"
            ],
            "description": "The most the connection may do, as the person picked it on the consent page. READ runs tools that change nothing; WRITE also runs tools that change records, make unpaid payment links and record the person's own bookkeeping; MONEY also runs tools that hold and book travel, cancel with refunds and change the agency's books. Most assistants ask you before each of these; Nicer does not ask again."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the connection was made: when the client traded the code the person approved."
          },
          "lastUsedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the connection last signed in to an MCP server; null if it never has."
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the connection ends unless the client refreshes it first: when its refresh token stops working. Each refresh moves it 30 days ahead, except that an INTERNAL connection ends 90 days after createdAt at most."
          }
        },
        "required": [
          "connectionId",
          "clientName",
          "clientId",
          "redirectHost",
          "surface",
          "access",
          "createdAt",
          "lastUsedAt",
          "expiresAt"
        ],
        "additionalProperties": false
      },
      "BackofficeAnalyticsValue": {
        "anyOf": [
          {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "number"
                },
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ]
            }
          }
        ],
        "description": "A profile property's value as the analytics tool holds it: text, a number, true or false, null, or a list of them."
      },
      "BackofficeOrder": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The advisor credited with the order: the one assigned to it, else the one who booked it or whose provider profile it came in on; null when no advisor is credited."
          },
          "bookingOrigin": {
            "type": "string",
            "enum": [
              "NICER",
              "EXTERNAL",
              "UNKNOWN"
            ],
            "description": "NICER when the booking was made through Nicer, EXTERNAL when it was made elsewhere and recorded, UNKNOWN when the provider did not say."
          },
          "committedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the order left DRAFT and became a booking; null before."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the order belongs to."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the order was created."
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The user id of who created the order, when one did."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The currency of every amount on the row; null when the order carries no amount."
          },
          "dueAtPropertyMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The part of the total paid at the property, in minor units; null for an order recorded from a provider."
          },
          "dueLaterMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The part of the total charged later, in minor units; null for an order recorded from a provider."
          },
          "dueNowMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The part of the total charged at checkout, in minor units; null for an order recorded from a provider."
          },
          "entryMethod": {
            "type": "string",
            "enum": [
              "CHECKOUT",
              "IMPORT",
              "MANUAL"
            ],
            "description": "CHECKOUT when Nicer sold the order, and every amount is present; IMPORT or MANUAL when it was recorded from a provider."
          },
          "expiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When an unpaid checkout lapses; null for an order recorded from a provider."
          },
          "fulfillmentState": {
            "description": "Where the order's documents (tickets, confirmations, policies, vouchers) stand.",
            "$ref": "#/components/schemas/FulfillmentState"
          },
          "hotel": {
            "description": "The property facts sold with the order. Present on lodging (HOTEL) orders only.",
            "$ref": "#/components/schemas/BackofficeOrderHotel"
          },
          "hotelReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "Nicer's reference for the property of a lodging order; null for other products.",
            "examples": [
              "htl_s_8k2f9"
            ]
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The itinerary item the order was booked from, if any."
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "description": "The order's id."
          },
          "payerEmail": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The payer's email, lower-cased, when the order has one."
          },
          "payerUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The payer's user id, when the payer has an account."
          },
          "paymentState": {
            "description": "Where the traveler's payment stands.",
            "$ref": "#/components/schemas/PaymentState"
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.",
            "examples": [
              "BOG → MDE · MDE → BOG",
              "Hotel Casa San Agustín"
            ]
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the order sells."
          },
          "providerKey": {
            "description": "The provider the order was booked with. Nicer staff only: left out for an agency admin.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The booking's locator at the provider (the Booking ID of a flight), once it exists."
          },
          "reservationState": {
            "description": "Where the reservation at the provider stands.",
            "$ref": "#/components/schemas/ReservationState"
          },
          "status": {
            "description": "The order's overall status.",
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "supplierConfirmation": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The supplier's own confirmation, as recorded from the provider; null when none was recorded."
          },
          "totalMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's total, in minor units; null when the order carries no amount."
          },
          "travelDates": {
            "type": "object",
            "properties": {
              "end": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "end",
              "start"
            ],
            "additionalProperties": false,
            "description": "The first and last travel moment: the recorded service's dates, else the hotel's check-in and check-out, else the first departure and last arrival of a flight. A day (YYYY-MM-DD) or an ISO 8601 date-time; null when unknown.",
            "examples": [
              {
                "end": "2026-12-15",
                "start": "2026-12-12"
              }
            ]
          },
          "travelerCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many participants of the order travel (role TRAVELER)."
          },
          "travelerNames": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "The names of the order's travelers (role TRAVELER), in the order's slot order. A traveler without a name is left out."
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip the order belongs to, if any."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the order last changed."
          }
        },
        "required": [
          "advisorUserId",
          "bookingOrigin",
          "committedAt",
          "companyName",
          "createdAt",
          "createdByUserId",
          "currency",
          "dueAtPropertyMinor",
          "dueLaterMinor",
          "dueNowMinor",
          "entryMethod",
          "expiresAt",
          "fulfillmentState",
          "hotelReference",
          "itineraryItemId",
          "orderId",
          "payerEmail",
          "payerUserId",
          "paymentState",
          "productName",
          "productType",
          "providerLocator",
          "reservationState",
          "status",
          "supplierConfirmation",
          "totalMinor",
          "travelDates",
          "travelerCount",
          "travelerNames",
          "travelersTripId",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "An order as the back office lists it: what it sells, to whom, for how much, and where its reservation, payment and documents stand."
      },
      "FulfillmentState": {
        "type": "string",
        "enum": [
          "NOT_STARTED",
          "PENDING_ISSUANCE",
          "PARTIALLY_ISSUED",
          "ISSUED",
          "FAILED",
          "UNKNOWN"
        ]
      },
      "BackofficeOrderHotel": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The property's address, as sold."
          },
          "chainName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The hotel chain, when the property belongs to one."
          },
          "checkIn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The check-in day.",
            "examples": [
              "2026-12-12"
            ]
          },
          "checkOut": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The check-out day.",
            "examples": [
              "2026-12-15"
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The property's city."
          },
          "countryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The property's country, ISO 3166-1 alpha-2."
          },
          "imageUrl": {
            "anyOf": [
              {
                "type": "string",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ],
            "description": "The property's first photo."
          },
          "starRating": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              {
                "type": "null"
              }
            ],
            "description": "The property's star rating, 0 to 5."
          }
        },
        "required": [
          "address",
          "chainName",
          "checkIn",
          "checkOut",
          "city",
          "countryCode",
          "imageUrl",
          "starRating"
        ],
        "additionalProperties": false,
        "description": "The property facts frozen when a lodging order was sold through Nicer's checkout. Each is null when the checkout snapshot does not hold it, as for an order recorded from a provider."
      },
      "PaymentState": {
        "type": "string",
        "enum": [
          "NOT_STARTED",
          "AWAITING_METHOD",
          "REQUIRES_ACTION",
          "PROCESSING",
          "AUTHORIZED",
          "SUCCEEDED",
          "DECLINED",
          "CANCELLED",
          "PARTIALLY_REFUNDED",
          "REFUNDED",
          "UNKNOWN"
        ]
      },
      "ProviderKey": {
        "type": "string"
      },
      "ReservationState": {
        "type": "string",
        "enum": [
          "NOT_STARTED",
          "HOLDING",
          "HELD",
          "CONFIRMED",
          "CANCELLATION_PROCESSING",
          "CANCELLED",
          "EXPIRED",
          "UNKNOWN"
        ]
      },
      "OrderLifecycleStatus": {
        "type": "string",
        "enum": [
          "DRAFT",
          "AWAITING_PAYMENT",
          "HOLDING",
          "HELD",
          "PAYMENT_PROCESSING",
          "TICKETING",
          "BOOKED",
          "CANCELLATION_PROCESSING",
          "CANCELLED",
          "EXPIRED",
          "NEEDS_ATTENTION",
          "FAILED"
        ]
      },
      "BackofficeOutbox": {
        "type": "object",
        "properties": {
          "failing": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many of them failed their latest attempt to publish."
          },
          "maxAttempts": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The most publish attempts any of them has had; null when none waits."
          },
          "oldestAvailableAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the oldest of them became due to publish; null when none waits."
          },
          "pending": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many events wait to be published."
          }
        },
        "required": [
          "failing",
          "maxAttempts",
          "oldestAvailableAt",
          "pending"
        ],
        "additionalProperties": false,
        "description": "The events Commerce wrote with a change and has not yet published to the other domains."
      },
      "BackofficeHealthPayment": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The attempts' total, in minor units."
          },
          "attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many attempts."
          },
          "currency": {
            "description": "The attempts' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The UTC day the attempts were made on.",
            "examples": [
              "2026-11-10"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "REQUIRES_ACTION",
              "AUTHORIZED",
              "PROCESSING",
              "SUCCEEDED",
              "DECLINED",
              "UNKNOWN",
              "CANCELLED"
            ],
            "description": "The attempts' status. SUCCEEDED is money captured; AUTHORIZED is not money yet."
          }
        },
        "required": [
          "amountMinor",
          "attempts",
          "currency",
          "day",
          "status"
        ],
        "additionalProperties": false,
        "description": "One UTC day, status and currency of Nicer's own charges (NICER_CHARGE payment attempts) in the last 7 days. Card guarantees and payments to providers are not counted."
      },
      "BackofficeProviderOutcome": {
        "type": "object",
        "properties": {
          "avgSeconds": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "The average seconds a call took, over the calls that both started and finished; null when none did."
          },
          "kind": {
            "type": "string",
            "enum": [
              "REVALIDATE",
              "INITIATE",
              "HOLD",
              "RESERVE",
              "CONFIRM",
              "FULFILL",
              "BOOK",
              "TICKET",
              "RETRIEVE",
              "RECONCILE",
              "CANCEL",
              "VOID",
              "REFUND"
            ],
            "description": "What the calls asked the provider to do."
          },
          "operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many calls."
          },
          "providerKey": {
            "description": "The provider called.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "RUNNING",
              "SUCCEEDED",
              "DECLINED",
              "FAILED",
              "UNKNOWN",
              "CANCELLED"
            ],
            "description": "How the calls ended."
          }
        },
        "required": [
          "avgSeconds",
          "kind",
          "operations",
          "providerKey",
          "status"
        ],
        "additionalProperties": false,
        "description": "One provider, operation and outcome of the calls Commerce made to providers in the last 7 days."
      },
      "BackofficeOrderStatusTotal": {
        "type": "object",
        "properties": {
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' currency; null for the orders that carry no amount."
          },
          "orders": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders."
          },
          "status": {
            "description": "Where the orders stand now.",
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "totalMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' totals added up, in minor units; null when none carries an amount."
          }
        },
        "required": [
          "currency",
          "orders",
          "status",
          "totalMinor"
        ],
        "additionalProperties": false,
        "description": "Every order, of any date, in one status and currency: how many and their total."
      },
      "BackofficeDuplicateBooking": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 2,
            "maximum": 9007199254740991,
            "description": "How many orders hold the product."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the order belongs to."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' currency; null when they carry no amount."
          },
          "orderIds": {
            "minItems": 2,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "description": "The orders that hold the product, oldest first."
          },
          "payerEmail": {
            "type": "string",
            "minLength": 1,
            "description": "The payer's email, lower-cased: the same on every order. Personal data."
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.",
            "examples": [
              "BOG → MDE · MDE → BOG",
              "Hotel Casa San Agustín"
            ]
          },
          "providerProductId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The provider's id for the product the orders hold; null when it gave none."
          },
          "totalMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' totals added up, in minor units; null when none carries an amount."
          }
        },
        "required": [
          "bookings",
          "companyName",
          "currency",
          "orderIds",
          "payerEmail",
          "productName",
          "providerProductId",
          "totalMinor"
        ],
        "additionalProperties": false,
        "description": "A likely double booking: one payer holding the same product, with the same provider and accepted terms, on more than one BOOKED or HELD order."
      },
      "BackofficeStaleReservation": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the order belongs to."
          },
          "failures": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "How many reads of the reservation have failed in a row, counting back from the latest."
          },
          "lastObservedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the reservation monitor last tried to read the reservation, and failed."
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "description": "The order's id."
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.",
            "examples": [
              "BOG → MDE · MDE → BOG",
              "Hotel Casa San Agustín"
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The booking's locator at the provider (the Booking ID of a flight), once it exists."
          },
          "status": {
            "type": "string",
            "enum": [
              "BOOKED",
              "HELD"
            ],
            "description": "The order's status: BOOKED or HELD."
          }
        },
        "required": [
          "companyName",
          "failures",
          "lastObservedAt",
          "orderId",
          "productName",
          "providerLocator",
          "status"
        ],
        "additionalProperties": false,
        "description": "A BOOKED or HELD order whose latest read of the reservation at the provider failed: the provider stopped confirming it."
      },
      "BackofficeUncollectedCommission": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency whose booking earns the commission."
          },
          "currency": {
            "description": "The commission's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "dueOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The day the commission is due.",
            "examples": [
              "2026-12-31"
            ]
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The commission expected, in minor units."
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "description": "The order the commission is earned on."
          },
          "paymentStatus": {
            "type": "string",
            "enum": [
              "UPCOMING",
              "DUE",
              "OVERDUE"
            ],
            "description": "Where the item's money stands: UPCOMING before travel ends, DUE or OVERDUE after. Nothing arrived yet: any payment makes an item PAID and takes it off this queue."
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.",
            "examples": [
              "BOG → MDE · MDE → BOG",
              "Hotel Casa San Agustín"
            ]
          },
          "providerKey": {
            "description": "The provider the order was booked with.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The booking's locator as the commission item records it; null when it records none."
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission received so far, net of reversals, in minor units; below zero after a clawback."
          },
          "varianceMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Received minus expected, in minor units: negative while money is still owed."
          }
        },
        "required": [
          "companyName",
          "currency",
          "dueOn",
          "expectedMinor",
          "orderId",
          "paymentStatus",
          "productName",
          "providerKey",
          "providerLocator",
          "receivedMinor",
          "varianceMinor"
        ],
        "additionalProperties": false,
        "description": "A commission item still UPCOMING, DUE or OVERDUE: money a supplier owes on a booking, to reconcile against its statement."
      },
      "BackofficeUnmatchedPayment": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The amount captured, in minor units."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the order belongs to."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the charge was made."
          },
          "currency": {
            "description": "The charge's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "description": "The order the charge was made for."
          },
          "orderStatus": {
            "type": "string",
            "enum": [
              "DRAFT",
              "EXPIRED",
              "FAILED",
              "NEEDS_ATTENTION"
            ],
            "description": "The order's status: one that never became a booking (FAILED, NEEDS_ATTENTION, EXPIRED or DRAFT)."
          },
          "paymentAttemptId": {
            "type": "string",
            "minLength": 1,
            "description": "The payment attempt that captured the money."
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.",
            "examples": [
              "BOG → MDE · MDE → BOG",
              "Hotel Casa San Agustín"
            ]
          }
        },
        "required": [
          "amountMinor",
          "companyName",
          "createdAt",
          "currency",
          "orderId",
          "orderStatus",
          "paymentAttemptId",
          "productName"
        ],
        "additionalProperties": false,
        "description": "A Nicer charge (NICER_CHARGE payment attempt) that SUCCEEDED on an order that FAILED, NEEDS_ATTENTION, EXPIRED or is still a DRAFT: money captured for a trip that never happened."
      },
      "BackofficeUnticketedOrder": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The advisor credited with the order: the one assigned to it, else the one who booked it or whose provider profile it came in on; null when no advisor is credited."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the order belongs to."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the order was created."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The currency of every amount on the row; null when the order carries no amount."
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "description": "The order's id."
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's label: the route for a flight (origin → destination, each pair once, joined by ' · '), else the product or property name as recorded or sold.",
            "examples": [
              "BOG → MDE · MDE → BOG",
              "Hotel Casa San Agustín"
            ]
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the order sells."
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The booking's locator at the provider (the Booking ID of a flight), once it exists."
          },
          "totalMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The order's total, in minor units; null when the order carries no amount."
          }
        },
        "required": [
          "advisorUserId",
          "companyName",
          "createdAt",
          "currency",
          "orderId",
          "productName",
          "productType",
          "providerLocator",
          "totalMinor"
        ],
        "additionalProperties": false,
        "description": "A flight Nicer sold through checkout that is BOOKED with no ticket ISSUED: the money is in, the document is not."
      },
      "BackofficeOrderDocument": {
        "type": "object",
        "properties": {
          "documentReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the issued document itself is kept (a policy's PDF), when the provider handed one back."
          },
          "externalReference": {
            "type": "string",
            "minLength": 1,
            "description": "The document's number: the ticket number, the hotel confirmation, the policy number or the voucher reference."
          },
          "issuedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the document was issued; null until then."
          },
          "kind": {
            "type": "string",
            "enum": [
              "TICKET",
              "HOTEL_CONFIRMATION",
              "POLICY",
              "VOUCHER"
            ],
            "description": "What the document is."
          },
          "participantId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The participant the document belongs to, for a ticket."
          },
          "status": {
            "$ref": "#/components/schemas/FulfillmentDocumentStatus"
          }
        },
        "required": [
          "documentReference",
          "externalReference",
          "issuedAt",
          "kind",
          "participantId",
          "status"
        ],
        "additionalProperties": false,
        "description": "A ticket, hotel confirmation, policy or voucher issued for the order: the numbers an operator is asked for on the phone."
      },
      "FulfillmentDocumentStatus": {
        "type": "string",
        "enum": [
          "ISSUED",
          "PARTIALLY_VOIDED",
          "VOIDED",
          "REFUNDED"
        ],
        "description": "Where an issued document stands: ISSUED, PARTIALLY_VOIDED, VOIDED or REFUNDED."
      },
      "ExchangeRateSnapshot": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "const": "CurrencyBeacon"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "rates": {
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            },
            "additionalProperties": {
              "type": "number",
              "exclusiveMinimum": 0
            }
          }
        },
        "required": [
          "source",
          "updatedAt",
          "rates"
        ],
        "additionalProperties": false
      },
      "BackofficeFlightLeg": {
        "type": "object",
        "properties": {
          "aircraftCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "arrivalAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "arrivalTerminal": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "currentVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "departureAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "departureTerminal": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "destinationAirport": {
            "$ref": "#/components/schemas/AirportCode"
          },
          "legId": {
            "type": "string",
            "minLength": 1
          },
          "marketingCarrierCode": {
            "$ref": "#/components/schemas/CarrierCode"
          },
          "marketingFlightNumber": {
            "type": "string",
            "minLength": 1
          },
          "operatingCarrierCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CarrierCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "operatingFlightNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "originAirport": {
            "$ref": "#/components/schemas/AirportCode"
          },
          "sequence": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "type": "string",
            "minLength": 1
          },
          "bookingClass": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The leg's booking class, when the provider reported it."
          },
          "cabin": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The leg's cabin, when the provider reported it."
          }
        },
        "required": [
          "aircraftCode",
          "arrivalAt",
          "arrivalTerminal",
          "companyName",
          "currentVersion",
          "departureAt",
          "departureTerminal",
          "destinationAirport",
          "legId",
          "marketingCarrierCode",
          "marketingFlightNumber",
          "operatingCarrierCode",
          "operatingFlightNumber",
          "orderId",
          "originAirport",
          "sequence",
          "status",
          "bookingClass",
          "cabin"
        ],
        "additionalProperties": false,
        "description": "A flight leg as the provider holds it now: rewritten on every successful reservation read, so it is live, not as sold."
      },
      "BackofficeOrderParticipant": {
        "type": "object",
        "properties": {
          "displayName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's name as the order shows it."
          },
          "email": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's email, lower-cased, when the order has one."
          },
          "nationalityCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's nationality, ISO 3166-1 alpha-2, when it was collected."
          },
          "participantId": {
            "type": "string",
            "minLength": 1,
            "description": "The participant's id on the order; a document's participantId points at it."
          },
          "role": {
            "type": "string",
            "enum": [
              "DRIVER",
              "GUEST",
              "INSURED",
              "PAYER",
              "TRAVELER"
            ],
            "description": "How the person takes part."
          },
          "sequence": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The participant's slot on the order, from 0."
          },
          "userId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's user id, when they have an account."
          }
        },
        "required": [
          "displayName",
          "email",
          "nationalityCountryCode",
          "participantId",
          "role",
          "sequence",
          "userId"
        ],
        "additionalProperties": false,
        "description": "A person on an order: name, email, nationality and role. Documents, birth dates and addresses are never part of it."
      },
      "ReservationTimestamp": {
        "anyOf": [
          {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
          },
          {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "time": {
                "type": "string",
                "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?$"
              },
              "timeZone": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              }
            },
            "required": [
              "date"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ReservationAddress": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "cityCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "countryCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "postalCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "stateProvince": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "street": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "lines": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          }
        },
        "additionalProperties": false
      },
      "ReservationAssociation": {
        "type": "object",
        "properties": {
          "travelerReferences": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "segmentReferences": {
            "default": [],
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "serviceReferences": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "unresolvedTravelerIndices": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "unresolvedSegmentIndices": {
            "default": [],
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          }
        },
        "required": [
          "travelerReferences",
          "segmentReferences",
          "serviceReferences",
          "unresolvedTravelerIndices",
          "unresolvedSegmentIndices"
        ],
        "additionalProperties": false
      },
      "LoyaltyProgram": {
        "type": "object",
        "properties": {
          "number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "receiverCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "supplierCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "tier": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "number"
        ],
        "additionalProperties": false,
        "description": "A loyalty membership: the program type, the supplier's code, the member number and the tier.",
        "examples": [
          {
            "number": "987654321",
            "supplierCode": "MC",
            "tier": "Gold",
            "type": "HOTEL"
          }
        ]
      },
      "RecordedProduct": {
        "type": "object",
        "properties": {
          "detail": {
            "type": "object",
            "properties": {
              "car": {
                "type": "object",
                "properties": {
                  "distanceAllowance": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "dropOff": {
                    "type": "object",
                    "properties": {
                      "address": {
                        "$ref": "#/components/schemas/ReservationAddress"
                      },
                      "at": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "locationCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "phones": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "faxes": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "emergencyPhones": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "guaranteeType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "pickUp": {
                    "type": "object",
                    "properties": {
                      "address": {
                        "$ref": "#/components/schemas/ReservationAddress"
                      },
                      "at": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "locationCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "phones": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "faxes": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "emergencyPhones": {
                        "maxItems": 8,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      }
                    },
                    "additionalProperties": false
                  },
                  "rateCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "supplierCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "rentalDays": {
                    "type": "number",
                    "minimum": 0
                  },
                  "refundable": {
                    "type": "boolean"
                  },
                  "vehicleCategory": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "vehicleModel": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "vehicleType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "vehicleTypeCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "vehicles": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "additionalProperties": false
              },
              "commission": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "totalMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "currency",
                      "totalMinor"
                    ],
                    "additionalProperties": false
                  },
                  "unconvertedAmount": {
                    "description": "The supplier stated an amount without a usable currency.",
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "percentage": {
                    "type": "string",
                    "pattern": "^\\d+(?:\\.\\d+)?$"
                  },
                  "text": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "additionalProperties": false
              },
              "fare": {
                "type": "object",
                "properties": {
                  "calculationLine": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "changeable": {
                    "type": "boolean"
                  },
                  "fareBasis": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "negotiated": {
                    "type": "boolean"
                  },
                  "refundable": {
                    "type": "boolean"
                  },
                  "taxes": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency",
                            "totalMinor"
                          ],
                          "additionalProperties": false
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "required": [
                        "amount",
                        "code"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "tickets": {
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "issuedOn": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "issuingOfficeId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        }
                      },
                      "required": [
                        "number"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "tourCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "additionalProperties": false
              },
              "hotel": {
                "type": "object",
                "properties": {
                  "address": {
                    "$ref": "#/components/schemas/ReservationAddress"
                  },
                  "cancellationPolicy": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "chainCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "chainName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "checkInTime": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "checkOutTime": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "faxes": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "guaranteeType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "guaranteeTypeCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "guests": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nightlyRate": {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "type": "string",
                        "pattern": "^[A-Z]{3}$"
                      },
                      "totalMinor": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "currency",
                      "totalMinor"
                    ],
                    "additionalProperties": false
                  },
                  "nights": {
                    "maxItems": 60,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency",
                            "totalMinor"
                          ],
                          "additionalProperties": false
                        },
                        "nights": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "percentage": {
                          "type": "string",
                          "pattern": "^\\d+(?:\\.\\d+)?$"
                        },
                        "from": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        },
                        "to": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "paymentPolicy": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "phones": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "emergencyPhones": {
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "productCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "corporateRateCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "propertyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "rateCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "rateDescription": {
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 2000
                    }
                  },
                  "refundPenalties": {
                    "maxItems": 12,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "amount": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency",
                            "totalMinor"
                          ],
                          "additionalProperties": false
                        },
                        "nights": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "percentage": {
                          "type": "string",
                          "pattern": "^\\d+(?:\\.\\d+)?$"
                        },
                        "from": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        },
                        "to": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 40
                        }
                      },
                      "additionalProperties": false
                    }
                  },
                  "refundable": {
                    "type": "boolean"
                  },
                  "roomDescription": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "roomType": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "roomTypeCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "clientRateCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "rooms": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "providerPropertyId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "specialInstructions": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  "sourceTypeCode": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "sourceTypeName": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "additionalProperties": false
              },
              "money": {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "feesMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "subtotalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "taxesMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "totalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "currency"
                ],
                "additionalProperties": false
              },
              "references": {
                "type": "object",
                "properties": {
                  "agencyIataNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "agencyProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "corporateProfileId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "providerSegmentIds": {
                    "maxItems": 40,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "kind": {
            "$ref": "#/components/schemas/ProductKind"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "start": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "end": {
            "anyOf": [
              {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierConfirmation": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "name",
          "start",
          "end",
          "supplierConfirmation",
          "supplierName"
        ],
        "additionalProperties": false
      },
      "ProductKind": {
        "type": "string",
        "enum": [
          "CAR_RENTAL",
          "FLIGHT",
          "HOTEL",
          "INSURANCE"
        ]
      },
      "BackofficeTimelineEntry": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The amount involved, in minor units, for PAYMENT, EARNING and EXTERNAL_PAYMENT entries; null for the others."
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When it happened: at the processor for a PAYMENT_EVENT, at issue for a FULFILLMENT, when Nicer recorded it for the others."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency whose books the entry is in."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The currency of amountMinor; null when there is no amount."
          },
          "detail": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A second line for the entry, by kind; null when none."
          },
          "kind": {
            "$ref": "#/components/schemas/BackofficeTimelineKind"
          },
          "orderId": {
            "type": "string",
            "minLength": 1,
            "description": "The order the entry belongs to."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "description": "What happened, in a few words.",
            "examples": [
              "NICER_CHARGE SUCCEEDED",
              "TICKET ISSUED"
            ]
          }
        },
        "required": [
          "amountMinor",
          "occurredAt",
          "companyName",
          "currency",
          "detail",
          "kind",
          "orderId",
          "title"
        ],
        "additionalProperties": false,
        "description": "One fact in an order's story: an action, a payment, a provider call, a document, a reservation read, an earning or an external payment."
      },
      "BackofficeTimelineKind": {
        "type": "string",
        "enum": [
          "ACTION",
          "PAYMENT",
          "PAYMENT_EVENT",
          "PROVIDER",
          "FULFILLMENT",
          "PROVIDER_RECORD",
          "OBSERVATION",
          "EARNING",
          "EXTERNAL_PAYMENT"
        ],
        "description": "What happened: ACTION (an order action was accepted; the title is its type), PAYMENT (a payment attempt; the title is its purpose and status, the detail the decline reason), PAYMENT_EVENT (an event from the payment processor; Nicer staff only), PROVIDER (a call to the provider; Nicer staff only), FULFILLMENT (a document was issued; the detail is its number), PROVIDER_RECORD (the provider's data was recorded), OBSERVATION (the reservation monitor read the booking; the detail is its error code), EARNING (an earning was booked; the title is its entry type, kind and beneficiary kind, the detail its status) or EXTERNAL_PAYMENT (a payment recorded outside Nicer; the title is its entry type and method, the detail its note)."
      },
      "BackofficePersonBalance": {
        "type": "object",
        "properties": {
          "availableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the account may pay out now, in minor units; zero when the bucket is overdrawn."
          },
          "beneficiaryKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "TRAVELER"
            ],
            "description": "The account's kind: ADVISOR for what the person earns as an advisor, TRAVELER for their traveler rewards."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency whose ledger holds the account."
          },
          "currency": {
            "description": "The account's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "pendingMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the account has earned but may not pay out yet, in minor units; zero when the bucket is overdrawn."
          },
          "receivableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the person owes back on the account, in minor units, an overdrawn bucket's shortfall included."
          }
        },
        "required": [
          "availableMinor",
          "beneficiaryKind",
          "companyName",
          "currency",
          "pendingMinor",
          "receivableMinor"
        ],
        "additionalProperties": false,
        "description": "One of a person's ledger accounts, as an advisor or as a traveler, in one agency and currency: available, pending and what they owe back; an overdrawn bucket reads zero and its shortfall is owed back."
      },
      "BackofficeProviderCommission": {
        "type": "object",
        "properties": {
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many commission items."
          },
          "currency": {
            "description": "The commission's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission expected on the items, in minor units."
          },
          "providerKey": {
            "description": "The provider the orders were booked with.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission received on the items, net of reversals, in minor units."
          },
          "status": {
            "description": "Where the items' money stands. Every status is counted, closed ones included.",
            "$ref": "#/components/schemas/CommissionPaymentStatus"
          }
        },
        "required": [
          "count",
          "currency",
          "expectedMinor",
          "providerKey",
          "receivedMinor",
          "status"
        ],
        "additionalProperties": false,
        "description": "One provider, payment status and currency of the commission items on the orders created in the period: how many, expected and received."
      },
      "CommissionPaymentStatus": {
        "type": "string",
        "enum": [
          "UPCOMING",
          "DUE",
          "OVERDUE",
          "PAID",
          "CANCELLED",
          "NOT_COMMISSIONABLE"
        ]
      },
      "BackofficeProviderOperationTotal": {
        "type": "object",
        "properties": {
          "avgSeconds": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "description": "The average seconds a call took, over the calls that both started and finished; null when none did."
          },
          "failed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many ended FAILED or DECLINED."
          },
          "kind": {
            "type": "string",
            "enum": [
              "REVALIDATE",
              "INITIATE",
              "HOLD",
              "RESERVE",
              "CONFIRM",
              "FULFILL",
              "BOOK",
              "TICKET",
              "RETRIEVE",
              "RECONCILE",
              "CANCEL",
              "VOID",
              "REFUND"
            ],
            "description": "What the calls asked the provider to do."
          },
          "operations": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many calls. succeeded and failed do not add up to it: the rest are PENDING, RUNNING, UNKNOWN or CANCELLED."
          },
          "providerKey": {
            "description": "The provider called.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "succeeded": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many SUCCEEDED."
          }
        },
        "required": [
          "avgSeconds",
          "failed",
          "kind",
          "operations",
          "providerKey",
          "succeeded"
        ],
        "additionalProperties": false,
        "description": "One provider and operation of the calls Commerce made to providers in the period: how many, how many succeeded and failed, and how long they took."
      },
      "BackofficePeriod": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The period's first UTC day, included.",
            "examples": [
              "2026-08-12"
            ]
          },
          "to": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The period's last UTC day, included.",
            "examples": [
              "2026-11-10"
            ]
          }
        },
        "required": [
          "from",
          "to"
        ],
        "additionalProperties": false,
        "description": "The UTC days a report covers, both included, after the defaults were applied."
      },
      "BackofficeProviderSale": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many of the orders are BOOKED."
          },
          "cancelled": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many are CANCELLED."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' currency; null for the orders that carry no amount."
          },
          "failed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many are FAILED or NEEDS_ATTENTION."
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the orders sell."
          },
          "providerKey": {
            "description": "The provider the orders were booked with.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "soldMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders, in minor units; 0 when none is booked."
          }
        },
        "required": [
          "bookings",
          "cancelled",
          "currency",
          "failed",
          "productType",
          "providerKey",
          "soldMinor"
        ],
        "additionalProperties": false,
        "description": "One provider, product and currency of the orders created in the period, whatever their status (unpaid drafts and expired orders included): value sold, bookings, cancellations and failures."
      },
      "BackofficeCohort": {
        "type": "object",
        "properties": {
          "customers": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many customers made their first BOOKED order in the month."
          },
          "month": {
            "description": "The UTC month the customers' first BOOKED order was created in: the cohort.",
            "$ref": "#/components/schemas/BackofficeMonth"
          },
          "returningCustomers": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many of them have more than one BOOKED order."
          }
        },
        "required": [
          "customers",
          "month",
          "returningCustomers"
        ],
        "additionalProperties": false,
        "description": "The customers whose first BOOKED order was created in one UTC month, and how many of them booked again."
      },
      "BackofficeMonth": {
        "type": "string",
        "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$",
        "description": "A UTC calendar month, YYYY-MM.",
        "examples": [
          "2026-11"
        ]
      },
      "BackofficeRepeatCustomer": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "How many BOOKED orders the customer has in this currency."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency the customer booked with."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' currency; null for the orders that carry no amount."
          },
          "firstBookingAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the customer's first BOOKED order in this currency was created."
          },
          "lastBookingAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When their latest BOOKED order in this currency was created."
          },
          "lifetimeMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ],
            "description": "The BOOKED orders' totals added up, in minor units; null when none carries an amount."
          },
          "payerEmail": {
            "type": "string",
            "minLength": 1,
            "description": "The customer: the payer's email, lower-cased. Personal data."
          }
        },
        "required": [
          "bookings",
          "companyName",
          "currency",
          "firstBookingAt",
          "lastBookingAt",
          "lifetimeMinor",
          "payerEmail"
        ],
        "additionalProperties": false,
        "description": "One customer (a payer email at one agency) and currency: how many BOOKED orders, when the first and latest were created, and their lifetime value."
      },
      "BackofficeRewardBalance": {
        "type": "object",
        "properties": {
          "availableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The rewards available now, in minor units."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency whose ledger it is."
          },
          "currency": {
            "description": "The balance's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "pendingMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The rewards earned but not available yet, in minor units."
          },
          "receivableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the traveler owes back, in minor units, an overdrawn bucket included."
          },
          "travelerUserId": {
            "type": "string",
            "minLength": 1,
            "description": "The traveler, as the ledger's beneficiary."
          }
        },
        "required": [
          "availableMinor",
          "companyName",
          "currency",
          "pendingMinor",
          "receivableMinor",
          "travelerUserId"
        ],
        "additionalProperties": false,
        "description": "One traveler's reward balance in one agency and currency, now. An overdrawn bucket reads zero and its shortfall moves into receivable."
      },
      "BackofficeEarningTotal": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The earnings' total, in minor units."
          },
          "beneficiaryKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "COMPANY",
              "TRAVELER"
            ],
            "description": "Who earns: an advisor, the agency or a traveler."
          },
          "currency": {
            "description": "The earnings' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "earningKind": {
            "type": "string",
            "enum": [
              "ADJUSTMENT",
              "ADVISOR_COMMISSION",
              "AGENCY_COMMISSION",
              "HOST_SHARE",
              "PLANNING_FEE",
              "REFERRAL_COMMISSION",
              "TRAVELER_REWARD"
            ],
            "description": "What the earnings are for."
          },
          "entries": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many earnings."
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "AVAILABLE",
              "REVERSED"
            ],
            "description": "Whether the earnings are PENDING, AVAILABLE or REVERSED."
          }
        },
        "required": [
          "amountMinor",
          "beneficiaryKind",
          "currency",
          "earningKind",
          "entries",
          "status"
        ],
        "additionalProperties": false,
        "description": "One earning kind, beneficiary kind, status and currency of every earning ever booked, gross: only entries of type EARNING, so reversals and clawbacks are not subtracted."
      },
      "SalesAdvisorBalance": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "type": "string",
            "minLength": 1,
            "description": "The advisor, as the ledger's beneficiary."
          },
          "availableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the advisor may be paid now, in minor units."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency whose ledger it is."
          },
          "currency": {
            "description": "The balance's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "pendingMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the advisor has earned but may not be paid yet, in minor units."
          },
          "receivableMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "What the advisor owes back, in minor units, an overdrawn bucket included."
          }
        },
        "required": [
          "advisorUserId",
          "availableMinor",
          "companyName",
          "currency",
          "pendingMinor",
          "receivableMinor"
        ],
        "additionalProperties": false,
        "description": "What one advisor is owed now, whatever the period: the balance in the currency asked for. An overdrawn bucket reads zero and its shortfall moves into receivable. At most 500, the most owed first."
      },
      "SalesAdvisor": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "type": "string",
            "minLength": 1,
            "description": "The advisor credited with the orders."
          },
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders are BOOKED."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The advisor's agency."
          },
          "currency": {
            "description": "The orders' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$",
            "description": "The UTC month the orders were created in.",
            "examples": [
              "2026-11"
            ],
            "$ref": "#/components/schemas/BackofficeMonth"
          },
          "soldMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders, in minor units."
          }
        },
        "required": [
          "advisorUserId",
          "bookings",
          "companyName",
          "currency",
          "month",
          "soldMinor"
        ],
        "additionalProperties": false,
        "description": "One month and advisor of the period's BOOKED and CANCELLED orders credited to an advisor: value sold and bookings. Orders without an advisor are not counted."
      },
      "SalesAgency": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders are BOOKED."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "The agency."
          },
          "currency": {
            "description": "The orders' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the orders sell."
          },
          "soldMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders, in minor units."
          }
        },
        "required": [
          "bookings",
          "companyName",
          "currency",
          "productType",
          "soldMinor"
        ],
        "additionalProperties": false,
        "description": "One agency and product of the period's BOOKED and CANCELLED orders: value sold and bookings. Nicer staff only."
      },
      "SalesBookingValue": {
        "type": "object",
        "properties": {
          "currency": {
            "description": "The order's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the order sells."
          },
          "totalMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The order's total, in minor units."
          }
        },
        "required": [
          "currency",
          "productType",
          "totalMinor"
        ],
        "additionalProperties": false,
        "description": "One BOOKED order's value, for the distribution chart. At most the 500 newest."
      },
      "SalesMonth": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders are BOOKED."
          },
          "cancelledMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the CANCELLED orders, in minor units."
          },
          "currency": {
            "description": "The orders' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$",
            "description": "The UTC month the orders were created in.",
            "examples": [
              "2026-11"
            ],
            "$ref": "#/components/schemas/BackofficeMonth"
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the orders sell."
          },
          "providerKey": {
            "description": "The provider the orders were booked with. Nicer staff only: left out for an agency admin, whose rows are not split by provider.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "soldMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders, in minor units."
          }
        },
        "required": [
          "bookings",
          "cancelledMinor",
          "currency",
          "month",
          "productType",
          "soldMinor"
        ],
        "additionalProperties": false,
        "description": "One month and product of the period's BOOKED and CANCELLED orders: value sold, value cancelled and bookings."
      },
      "SalesCommissionDetail": {
        "type": "object",
        "properties": {
          "currency": {
            "description": "The commission's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission expected on the items, in minor units."
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission received on the items, net of reversals, in minor units."
          },
          "status": {
            "description": "Where the items' money stands. Only open items are counted: never CANCELLED or NOT_COMMISSIONABLE, and no written-off item.",
            "$ref": "#/components/schemas/CommissionPaymentStatus"
          },
          "ageDays": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "Days since travel ended, the clock suppliers pay against; 0 before travel ends."
          },
          "hotelReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "Nicer's reference for the property; null for other products."
          },
          "productName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ],
            "description": "The product or property name, as recorded or sold."
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ],
            "description": "What the orders sell."
          }
        },
        "required": [
          "currency",
          "expectedMinor",
          "receivedMinor",
          "status",
          "ageDays",
          "hotelReference",
          "productName",
          "productType"
        ],
        "additionalProperties": false,
        "description": "One status, product, property and age of the open commission items on the period's orders, in the orders' own currency. At most 500, the longest since travel first."
      },
      "SalesCommission": {
        "type": "object",
        "properties": {
          "currency": {
            "description": "The commission's currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission expected on the items, in minor units."
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The commission received on the items, net of reversals, in minor units."
          },
          "status": {
            "description": "Where the items' money stands. Only open items are counted: never CANCELLED or NOT_COMMISSIONABLE, and no written-off item.",
            "$ref": "#/components/schemas/CommissionPaymentStatus"
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many commission items."
          },
          "providerKey": {
            "description": "The provider the orders were booked with. Nicer staff only: left out for an agency admin, whose rows are not split by provider.",
            "$ref": "#/components/schemas/ProviderKey"
          },
          "varianceMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "Received minus expected, in minor units: negative while money is still owed."
          }
        },
        "required": [
          "currency",
          "expectedMinor",
          "receivedMinor",
          "status",
          "count",
          "varianceMinor"
        ],
        "additionalProperties": false,
        "description": "One payment status of the open commission items on the period's orders: how many, expected, received and the difference."
      },
      "SalesCurrencyTotal": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders are BOOKED."
          },
          "checkoutMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders Nicer sold through checkout, in minor units."
          },
          "currency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The orders' currency; null for the orders that carry no amount."
          },
          "orders": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders were created in the period."
          },
          "recordedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders recorded from a provider (not sold through checkout), in minor units. Not money Nicer captured."
          },
          "unknownAmounts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders carry no amount."
          },
          "unpricedBookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many BOOKED orders carry no amount or no currency."
          }
        },
        "required": [
          "bookings",
          "checkoutMinor",
          "currency",
          "orders",
          "recordedMinor",
          "unknownAmounts",
          "unpricedBookings"
        ],
        "additionalProperties": false,
        "description": "One currency of the period's orders (or the orders with none): how many there are, how many are booked, and the booked value split into checkout and recorded."
      },
      "SalesDay": {
        "type": "object",
        "properties": {
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders are BOOKED."
          },
          "day": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The UTC day the orders were created on.",
            "examples": [
              "2026-11-10"
            ]
          },
          "soldMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The total of the BOOKED orders, in minor units."
          }
        },
        "required": [
          "bookings",
          "day",
          "soldMinor"
        ],
        "additionalProperties": false,
        "description": "One UTC day with BOOKED or CANCELLED orders: bookings and value sold that day."
      },
      "SalesEarning": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The earnings' total, in minor units."
          },
          "beneficiaryKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "COMPANY",
              "TRAVELER"
            ],
            "description": "Who earns: an advisor, the agency or a traveler. Nicer's own share is not an earning (it is booked in the ledger), so no row names NICER."
          },
          "currency": {
            "description": "The earnings' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "earningKind": {
            "type": "string",
            "enum": [
              "ADJUSTMENT",
              "ADVISOR_COMMISSION",
              "AGENCY_COMMISSION",
              "HOST_SHARE",
              "PLANNING_FEE",
              "REFERRAL_COMMISSION",
              "TRAVELER_REWARD"
            ],
            "description": "What the earning is for."
          },
          "entryType": {
            "type": "string",
            "enum": [
              "EARNING",
              "REVERSAL",
              "CLAWBACK"
            ],
            "description": "EARNING, or the REVERSAL or CLAWBACK that takes one back."
          },
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$",
            "description": "The UTC month the earning was booked in.",
            "examples": [
              "2026-11"
            ],
            "$ref": "#/components/schemas/BackofficeMonth"
          },
          "status": {
            "type": "string",
            "enum": [
              "PENDING",
              "AVAILABLE",
              "REVERSED"
            ],
            "description": "Whether the earning is PENDING, AVAILABLE or REVERSED."
          }
        },
        "required": [
          "amountMinor",
          "beneficiaryKind",
          "currency",
          "earningKind",
          "entryType",
          "month",
          "status"
        ],
        "additionalProperties": false,
        "description": "One month, beneficiary kind, earning kind, entry type and status of the earnings booked on the period's orders."
      },
      "SalesFunnel": {
        "type": "object",
        "properties": {
          "booked": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many of them are BOOKED."
          },
          "fulfilled": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many of the BOOKED ones have at least one issued document."
          },
          "orders": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many orders were started through checkout in the period, unpaid drafts included."
          }
        },
        "required": [
          "booked",
          "fulfilled",
          "orders"
        ],
        "additionalProperties": false,
        "description": "The checkout funnel of the period: orders placed through checkout, booked, and booked with a document issued."
      },
      "SalesLeadTime": {
        "type": "object",
        "properties": {
          "bucket": {
            "$ref": "#/components/schemas/LeadTimeBucket"
          },
          "legs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many legs."
          }
        },
        "required": [
          "bucket",
          "legs"
        ],
        "additionalProperties": false,
        "description": "One lead-time bucket of the flight legs of the period's BOOKED checkout orders. Legs rewritten after their departure are not counted."
      },
      "LeadTimeBucket": {
        "type": "string",
        "enum": [
          "0_7",
          "8_30",
          "31_90",
          "91_180",
          "180_PLUS"
        ],
        "description": "Days between the order and the departure: 0_7, 8_30, 31_90, 91_180 or 180_PLUS (more than 180)."
      },
      "SalesPayment": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991,
            "description": "The attempts' total, in minor units."
          },
          "attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many attempts."
          },
          "currency": {
            "description": "The attempts' currency.",
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "month": {
            "type": "string",
            "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$",
            "description": "The UTC month the attempts were made in.",
            "examples": [
              "2026-11"
            ],
            "$ref": "#/components/schemas/BackofficeMonth"
          },
          "status": {
            "type": "string",
            "enum": [
              "REQUIRES_ACTION",
              "AUTHORIZED",
              "PROCESSING",
              "SUCCEEDED",
              "DECLINED",
              "UNKNOWN",
              "CANCELLED"
            ],
            "description": "The attempts' status. SUCCEEDED is money captured; AUTHORIZED is not money yet."
          }
        },
        "required": [
          "amountMinor",
          "attempts",
          "currency",
          "month",
          "status"
        ],
        "additionalProperties": false,
        "description": "One month and status of Nicer's own charges (NICER_CHARGE payment attempts) on the period's orders. Card guarantees and payments to providers are not counted."
      },
      "SalesRoute": {
        "type": "object",
        "properties": {
          "destinationAirport": {
            "description": "Where the legs land.",
            "$ref": "#/components/schemas/AirportCode"
          },
          "leadDays": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "The average days between the order and the departure, over the legs of orders sold through checkout; null when there are none."
          },
          "legs": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "How many legs."
          },
          "marketingCarrierCode": {
            "description": "The airline that sells the legs.",
            "$ref": "#/components/schemas/CarrierCode"
          },
          "originAirport": {
            "description": "Where the legs leave from.",
            "$ref": "#/components/schemas/AirportCode"
          }
        },
        "required": [
          "destinationAirport",
          "leadDays",
          "legs",
          "marketingCarrierCode",
          "originAirport"
        ],
        "additionalProperties": false,
        "description": "One origin, destination and selling airline of the flight legs of the period's BOOKED orders, as the provider holds them now. At most 500, the most flown first."
      },
      "BackofficeTripMember": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "description": "When the person was added to the trip, ISO 8601.",
            "examples": [
              "2026-11-02T15:04:05.000Z"
            ]
          },
          "createdBy": {
            "type": "string",
            "description": "Who added the person to the trip: a user id, or SYSTEM."
          },
          "displayName": {
            "description": "The person's name as the trip shows it, when one is stored.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "isArchived": {
            "description": "Whether the person archived the trip in their own list.",
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string",
            "description": "Who last changed the edge: a user id, or SYSTEM."
          },
          "lastReadAt": {
            "description": "When the person last read the trip's chat, ISO 8601; null or absent if never.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "relationship": {
            "$ref": "#/components/schemas/TravelersTripRelationship"
          },
          "travelersTripId": {
            "type": "string",
            "description": "The trip's id."
          },
          "type": {
            "type": "string",
            "const": "TravelersTripUser"
          },
          "updatedAt": {
            "type": "string",
            "description": "When the edge last changed, ISO 8601.",
            "examples": [
              "2026-11-03T09:12:44.000Z"
            ]
          },
          "userId": {
            "type": "string",
            "description": "The person's user id."
          }
        },
        "required": [
          "createdAt",
          "createdBy",
          "lastModifiedBy",
          "travelersTripId",
          "type",
          "updatedAt",
          "userId"
        ],
        "additionalProperties": false,
        "description": "A person on a trip: their relationship to it (PRIMARY, TRAVELER, PAYER or BILLING_CONTACT), and whether they archived it or read its chat."
      },
      "TravelersTripRelationship": {
        "type": "string",
        "enum": [
          "BILLING_CONTACT",
          "PAYER",
          "PRIMARY",
          "TRAVELER"
        ],
        "description": "How a person takes part in a trip: PRIMARY (the lead traveler), TRAVELER, PAYER or BILLING_CONTACT."
      },
      "BackofficeTrip": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "description": "The user id of the advisor responsible for the trip; null or absent while none is assigned.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedChatId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedTripItineraryId": {
            "description": "The trip's itinerary, once its advisor started one; null or absent before.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedUserIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The user id of every person on the trip, in any relationship."
          },
          "availableDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false
              }
            ]
          },
          "budgetCurrency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "description": "The agency the trip belongs to."
          },
          "conciergeMessageSentAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdBy": {
            "type": "string",
            "description": "The user id of who created the trip."
          },
          "createdReason": {
            "description": "How the trip came to be: created by the traveler, by an advisor, by a matching advisor or by a booking.",
            "type": "string",
            "enum": [
              "CREATED_BY_TRAVELER",
              "CREATED_BY_ADVISOR",
              "CREATED_BY_MATCHING_ADVISOR",
              "CREATED_BY_BOOKING"
            ]
          },
          "deleted": {
            "description": "True once the trip was deleted. Deleted trips are listed too.",
            "type": "boolean"
          },
          "deletedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deletedBy": {
            "type": "string"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Destination"
            },
            "description": "Where the trip goes, in order, each place with its first and last day (YYYY-MM-DD)."
          },
          "hasActivity": {
            "description": "True once the traveler approved a segment or an order was placed on the trip.",
            "type": "boolean"
          },
          "hasFlexibleDates": {
            "type": "boolean"
          },
          "isAllPricesHidden": {
            "default": false,
            "type": "boolean"
          },
          "isItineraryVisible": {
            "default": true,
            "type": "boolean"
          },
          "isSummaryHidden": {
            "default": false,
            "type": "boolean"
          },
          "lastMessageTimestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "primaryTravelerUserId": {
            "type": "string",
            "description": "The user id of the trip's lead traveler."
          },
          "specialRequests": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggestionsEnabled": {
            "type": "boolean"
          },
          "travelers": {
            "description": "How many adults and children travel.",
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "tripEndDate": {
            "type": "string",
            "description": "The trip's last day.",
            "examples": [
              "2026-12-20"
            ]
          },
          "tripStartDate": {
            "type": "string",
            "description": "The trip's first day.",
            "examples": [
              "2026-12-12"
            ]
          },
          "tripTitle": {
            "type": "string",
            "description": "The trip's name."
          },
          "amount": {
            "type": "number"
          },
          "budget": {
            "description": "The kind of budget the traveler asked for: goodValue or luxury.",
            "anyOf": [
              {
                "type": "string",
                "const": "goodValue"
              },
              {
                "type": "string",
                "const": "luxury"
              }
            ]
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string",
                "const": "holidays"
              },
              {
                "type": "string",
                "const": "business"
              },
              {
                "type": "string",
                "const": "honeymoon"
              },
              {
                "type": "string",
                "const": "familyFriends"
              }
            ]
          },
          "who": {
            "anyOf": [
              {
                "type": "string",
                "const": "solo"
              },
              {
                "type": "string",
                "const": "withKids"
              },
              {
                "type": "string",
                "const": "partner"
              },
              {
                "type": "string",
                "const": "group"
              }
            ]
          },
          "travelersTripId": {
            "type": "string",
            "description": "The trip's id."
          },
          "createdAt": {
            "type": "string",
            "description": "When the trip was created, ISO 8601.",
            "examples": [
              "2026-11-02T15:04:05.000Z"
            ]
          },
          "updatedAt": {
            "type": "string",
            "description": "When the trip last changed, ISO 8601.",
            "examples": [
              "2026-11-03T09:12:44.000Z"
            ]
          },
          "type": {
            "type": "string",
            "const": "TravelersTrip"
          }
        },
        "required": [
          "associatedUserIds",
          "companyName",
          "createdBy",
          "destinations",
          "hasFlexibleDates",
          "isAllPricesHidden",
          "isItineraryVisible",
          "isSummaryHidden",
          "lastModifiedBy",
          "primaryTravelerUserId",
          "tripEndDate",
          "tripStartDate",
          "tripTitle",
          "travelersTripId",
          "createdAt",
          "updatedAt",
          "type"
        ],
        "additionalProperties": false,
        "description": "The whole trip record, as travelers-trip stores it: the list fields plus its chat, visibility, flexible dates, budget and special requests."
      },
      "Destination": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "distanceFromSearch": {
            "type": "object",
            "properties": {
              "unit": {
                "type": "string",
                "enum": [
                  "km",
                  "mi"
                ]
              },
              "value": {
                "type": "number"
              }
            },
            "required": [
              "unit",
              "value"
            ],
            "additionalProperties": false
          },
          "features": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fullAddress": {
            "type": "string"
          },
          "gate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "iataCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "internovaId": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "name": {
            "type": "string"
          },
          "photos": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              },
              "required": [
                "name"
              ],
              "additionalProperties": false
            }
          },
          "placeId": {
            "type": "string"
          },
          "region": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "terminal": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "timeZone": {
            "type": "string"
          },
          "zipCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          },
          "headerImageUrl": {
            "type": "string"
          },
          "startDateTime": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
          }
        },
        "required": [
          "endDateTime",
          "startDateTime"
        ],
        "additionalProperties": false
      },
      "BackofficeTripListItem": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "description": "The user id of the advisor responsible for the trip; null or absent while none is assigned.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedTripItineraryId": {
            "description": "The trip's itinerary, once its advisor started one; null or absent before.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedUserIds": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "The user id of every person on the trip, in any relationship."
          },
          "budget": {
            "description": "The kind of budget the traveler asked for: goodValue or luxury.",
            "anyOf": [
              {
                "type": "string",
                "const": "goodValue"
              },
              {
                "type": "string",
                "const": "luxury"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "description": "The agency the trip belongs to."
          },
          "createdAt": {
            "type": "string",
            "description": "When the trip was created, ISO 8601.",
            "examples": [
              "2026-11-02T15:04:05.000Z"
            ]
          },
          "createdBy": {
            "type": "string",
            "description": "The user id of who created the trip."
          },
          "createdReason": {
            "description": "How the trip came to be: created by the traveler, by an advisor, by a matching advisor or by a booking.",
            "type": "string",
            "enum": [
              "CREATED_BY_TRAVELER",
              "CREATED_BY_ADVISOR",
              "CREATED_BY_MATCHING_ADVISOR",
              "CREATED_BY_BOOKING"
            ]
          },
          "deleted": {
            "description": "True once the trip was deleted. Deleted trips are listed too.",
            "type": "boolean"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Destination"
            },
            "description": "Where the trip goes, in order, each place with its first and last day (YYYY-MM-DD)."
          },
          "hasActivity": {
            "description": "True once the traveler approved a segment or an order was placed on the trip.",
            "type": "boolean"
          },
          "primaryTravelerUserId": {
            "type": "string",
            "description": "The user id of the trip's lead traveler."
          },
          "travelers": {
            "description": "How many adults and children travel.",
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "travelersTripId": {
            "type": "string",
            "description": "The trip's id."
          },
          "tripEndDate": {
            "type": "string",
            "description": "The trip's last day.",
            "examples": [
              "2026-12-20"
            ]
          },
          "tripStartDate": {
            "type": "string",
            "description": "The trip's first day.",
            "examples": [
              "2026-12-12"
            ]
          },
          "tripTitle": {
            "type": "string",
            "description": "The trip's name."
          },
          "updatedAt": {
            "type": "string",
            "description": "When the trip last changed, ISO 8601.",
            "examples": [
              "2026-11-03T09:12:44.000Z"
            ]
          },
          "isArchived": {
            "description": "Whether the person named by userId archived the trip in their own list. Present only on a list read with userId.",
            "type": "boolean"
          }
        },
        "required": [
          "associatedUserIds",
          "companyName",
          "createdAt",
          "createdBy",
          "destinations",
          "primaryTravelerUserId",
          "travelersTripId",
          "tripEndDate",
          "tripStartDate",
          "tripTitle",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "A trip as the back-office list shows it: title, dates, destinations, the people on it and how it was created."
      },
      "BackofficeUser": {
        "type": "object",
        "properties": {
          "avatar": {
            "description": "The URL of the person's photo, when they uploaded one: the stored media key behind Nicer's media host, as Identity's own user reads answer it. Personal data.",
            "type": "string",
            "format": "uri"
          },
          "companyName": {
            "description": "The agency the account belongs to: the one the person signed up in, or nicer for an account that signed up with none. It does not list the other agencies the person works with or travels with.",
            "examples": [
              "nicer"
            ],
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "deleted": {
            "description": "True once the account was deleted; absent or false otherwise. Deleted accounts are listed too.",
            "type": "boolean"
          },
          "email": {
            "description": "The person's email, when the account has one; null or absent otherwise. Personal data.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "familyName": {
            "type": "string",
            "description": "The person's family name, as they gave it; may be empty. Personal data."
          },
          "fullName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's whole name, when stored. Personal data."
          },
          "givenName": {
            "type": "string",
            "description": "The person's given name, as they gave it; may be empty. Personal data."
          },
          "phoneNumber": {
            "description": "The person's phone number, when the account has one; null or absent otherwise. Personal data.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "description": "The person's platform role: traveler, advisor, admin (an agency admin) or superadmin (Nicer staff).",
            "$ref": "#/components/schemas/AuthScope"
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "description": "The person's user id."
          }
        },
        "required": [
          "familyName",
          "fullName",
          "givenName",
          "role",
          "userId"
        ],
        "additionalProperties": false,
        "description": "A person's account as the back-office users list shows it: name, contact, photo, agency and role. Every field but role, userId, companyName and deleted is personal data."
      },
      "AuthScope": {
        "type": "string",
        "enum": [
          "advisor",
          "traveler",
          "admin",
          "superadmin"
        ]
      },
      "BookingQuoteResponse": {
        "type": "object",
        "properties": {
          "bookingSelectionId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "commercialSnapshot": {
            "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs. Present only for the agency's advisors and admins and for Nicer staff; absent for travelers and anonymous callers.",
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "participantRequirements": {
            "$ref": "#/components/schemas/ParticipantRequirements"
          },
          "paymentTerms": {
            "$ref": "#/components/schemas/PaymentTerms"
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "productSnapshot": {
            "$ref": "#/components/schemas/BookingProductSnapshot"
          },
          "productType": {
            "$ref": "#/components/schemas/ProductKind"
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerProductId": {
            "type": "string",
            "minLength": 1
          },
          "quoteId": {
            "type": "string",
            "minLength": 1
          },
          "searchId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "CONSUMED",
              "EXPIRED",
              "INVALIDATED"
            ]
          },
          "termsDigest": {
            "$ref": "#/components/schemas/TermsDigest"
          },
          "travelReferenceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "bookingSelectionId",
          "createdAt",
          "expiresAt",
          "itineraryItemId",
          "offerReference",
          "participantRequirements",
          "paymentTerms",
          "priceSnapshot",
          "productSnapshot",
          "productType",
          "providerKey",
          "providerProductId",
          "quoteId",
          "searchId",
          "status",
          "termsDigest",
          "travelReferenceId",
          "travelersTripId"
        ],
        "additionalProperties": false
      },
      "ParticipantRequirements": {
        "type": "object",
        "properties": {
          "slots": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParticipantSlotRequirement"
            }
          }
        },
        "required": [
          "slots"
        ],
        "additionalProperties": false
      },
      "ParticipantSlotRequirement": {
        "type": "object",
        "properties": {
          "hotelBookingRequirements": {
            "$ref": "#/components/schemas/HotelBookingRequirements"
          },
          "ageBands": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "ADULT",
                    "CHILD",
                    "INFANT"
                  ]
                }
              },
              "required": [
                "count",
                "type"
              ],
              "additionalProperties": false
            }
          },
          "documentTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DRIVER_LICENSE",
                "KNOWN_TRAVELER_NUMBER",
                "NATIONAL_ID",
                "PASSPORT",
                "REDRESS_NUMBER",
                "RESIDENCE_PERMIT",
                "VISA"
              ]
            }
          },
          "maximum": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "minimum": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "optionalDocumentTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DRIVER_LICENSE",
                "KNOWN_TRAVELER_NUMBER",
                "NATIONAL_ID",
                "PASSPORT",
                "REDRESS_NUMBER",
                "RESIDENCE_PERMIT",
                "VISA"
              ]
            }
          },
          "requiredFields": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ParticipantField"
            }
          },
          "role": {
            "type": "string",
            "enum": [
              "DRIVER",
              "GUEST",
              "INSURED",
              "PAYER",
              "TRAVELER"
            ]
          }
        },
        "required": [
          "documentTypes",
          "maximum",
          "minimum",
          "requiredFields",
          "role"
        ],
        "additionalProperties": false
      },
      "HotelBookingRequirements": {
        "type": "object",
        "properties": {
          "membership": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "chainCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[A-Z0-9]{2}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "programName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "chainCode",
                  "programName"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "acceptedCardCodes": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "string",
                  "pattern": "^[A-Z0-9]{2}$"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "guaranteeType": {
            "type": "string",
            "enum": [
              "GUAR",
              "DEP",
              "LATE",
              "NONE",
              "UNKNOWN"
            ]
          },
          "loyaltyProgram": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "chainCode": {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{2}$"
                  },
                  "programName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "chainCode",
                  "programName"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "unsupportedReason": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "MEMBERSHIP_CHAIN_UNKNOWN"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "membership",
          "acceptedCardCodes",
          "guaranteeType",
          "unsupportedReason"
        ],
        "additionalProperties": false
      },
      "ParticipantField": {
        "type": "string",
        "enum": [
          "ADDRESS",
          "BIRTH_DATE",
          "CONTACT_EMAIL",
          "CONTACT_PHONE",
          "DOCUMENTS",
          "NAME",
          "NATIONALITY",
          "SEX"
        ]
      },
      "PaymentTerms": {
        "type": "object",
        "properties": {
          "acceptedCopy": {
            "type": "string",
            "minLength": 1
          },
          "amountDueAtProperty": {
            "$ref": "#/components/schemas/Money"
          },
          "amountDueLater": {
            "$ref": "#/components/schemas/Money"
          },
          "amountDueNow": {
            "$ref": "#/components/schemas/Money"
          },
          "attemptPurpose": {
            "type": "string",
            "enum": [
              "NICER_CHARGE",
              "PROVIDER_GUARANTEE",
              "PROVIDER_PAYMENT"
            ]
          },
          "cancellationPolicy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/QuotePolicy"
              },
              {
                "type": "null"
              }
            ]
          },
          "collectionMode": {
            "type": "string",
            "enum": [
              "GUARANTEE_ONLY",
              "NICER_COLLECTS",
              "PAY_AT_PROVIDER",
              "PROVIDER_COLLECTS"
            ]
          },
          "guaranteeRequired": {
            "type": "boolean"
          },
          "holdAllowed": {
            "type": "boolean",
            "description": "Whether this checkout may request a hold. Flights require a confirmed airline deadline at least 12 hours away; eligibility is checked again when checkout is submitted."
          },
          "holdExpiresAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The confirmed supplier deadline, when known. For a requested flight hold, the customer's payment deadline is half the remaining airline window and is recorded on the submitted order."
          },
          "kind": {
            "type": "string",
            "enum": [
              "DEPOSIT",
              "GUARANTEE",
              "HOLD",
              "PAY_AT_PROPERTY",
              "PAY_LATER",
              "PAY_NOW"
            ]
          },
          "paymentRoute": {
            "type": "string",
            "enum": [
              "NONE",
              "PROVIDER_CARD",
              "STRIPE"
            ]
          }
        },
        "required": [
          "acceptedCopy",
          "amountDueAtProperty",
          "amountDueLater",
          "amountDueNow",
          "attemptPurpose",
          "cancellationPolicy",
          "collectionMode",
          "guaranteeRequired",
          "holdAllowed",
          "holdExpiresAt",
          "kind",
          "paymentRoute"
        ],
        "additionalProperties": false
      },
      "BookingProductSnapshot": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/HotelProductSnapshot"
          },
          {
            "$ref": "#/components/schemas/FlightProductSnapshot"
          },
          {
            "$ref": "#/components/schemas/CarRentalProductSnapshot"
          },
          {
            "$ref": "#/components/schemas/InsuranceProductSnapshot"
          }
        ]
      },
      "HotelProductSnapshot": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "chainName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "checkIn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "checkOut": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "hotelReference": {
            "type": "string",
            "minLength": 1
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuoteImage"
            }
          },
          "kind": {
            "type": "string",
            "const": "HOTEL"
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuotePolicy"
            }
          },
          "productId": {
            "type": "string",
            "minLength": 1
          },
          "rooms": {
            "minItems": 1,
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bookingRequirements": {
                  "$ref": "#/components/schemas/HotelBookingRequirements"
                },
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "bedTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "board": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "category": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "images": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/QuoteImage"
                  }
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "occupancy": {
                  "type": "object",
                  "properties": {
                    "adults": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8
                    },
                    "childrenAges": {
                      "maxItems": 6,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 17
                      }
                    }
                  },
                  "required": [
                    "adults",
                    "childrenAges"
                  ],
                  "additionalProperties": false
                },
                "ratePlanClientId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ratePlanCode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ratePlanName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "rateId": {
                  "type": "string",
                  "minLength": 1
                },
                "refundable": {
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "roomId": {
                  "type": "string",
                  "minLength": 1
                },
                "roomNumber": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 8
                }
              },
              "required": [
                "amenities",
                "bedTypes",
                "board",
                "description",
                "images",
                "name",
                "occupancy",
                "ratePlanName",
                "rateId",
                "refundable",
                "roomId",
                "roomNumber"
              ],
              "additionalProperties": false
            }
          },
          "starRating": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "amenities",
          "chainName",
          "checkIn",
          "checkOut",
          "city",
          "countryCode",
          "description",
          "hotelReference",
          "images",
          "kind",
          "latitude",
          "longitude",
          "name",
          "policies",
          "productId",
          "rooms",
          "starRating"
        ],
        "additionalProperties": false
      },
      "QuoteImage": {
        "type": "object",
        "properties": {
          "alt": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "alt",
          "url"
        ],
        "additionalProperties": false
      },
      "FlightProductSnapshot": {
        "type": "object",
        "properties": {
          "baggageCharges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageCharge"
            }
          },
          "brandFeatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
            }
          },
          "capabilities": {
            "type": "object",
            "properties": {
              "ancillaries": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              },
              "seats": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              }
            },
            "required": [
              "ancillaries",
              "seats"
            ],
            "additionalProperties": false
          },
          "kind": {
            "type": "string",
            "const": "FLIGHT"
          },
          "passengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightPassengerSnapshot"
            }
          },
          "fareRules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightFareRuleSnapshot"
            }
          },
          "owner": {
            "$ref": "#/components/schemas/FlightCarrierSnapshot"
          },
          "validatingCarriers": {
            "description": "Every airline that may issue this fare's ticket, the default (`owner`) first. Present only when there is more than one; checkout takes the chosen code as `validatingCarrier`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightCarrierSnapshot"
            }
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuotePolicy"
            }
          },
          "productId": {
            "type": "string",
            "minLength": 1
          },
          "rules": {
            "$ref": "#/components/schemas/FlightRules"
          },
          "slices": {
            "minItems": 1,
            "maxItems": 6,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSliceSnapshot"
            }
          },
          "ticketingDeadline": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "capabilities",
          "kind",
          "fareRules",
          "owner",
          "policies",
          "productId",
          "slices",
          "ticketingDeadline"
        ],
        "additionalProperties": false
      },
      "FlightSliceSnapshot": {
        "type": "object",
        "properties": {
          "durationMinutes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "legs": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightLegSnapshot"
            }
          },
          "sliceId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "durationMinutes",
          "legs",
          "sliceId"
        ],
        "additionalProperties": false
      },
      "FlightLegSnapshot": {
        "type": "object",
        "properties": {
          "aircraft": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "arrival": {
            "$ref": "#/components/schemas/FlightEndpointSnapshot"
          },
          "baggage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageSnapshot"
            }
          },
          "bookingClass": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "brand": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "code",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "cabin": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "ECONOMY",
              "FIRST",
              "PREMIUM_ECONOMY"
            ]
          },
          "departure": {
            "$ref": "#/components/schemas/FlightEndpointSnapshot"
          },
          "durationMinutes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "fareBasisCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "hiddenStops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightHiddenStopSnapshot"
            }
          },
          "legId": {
            "type": "string",
            "minLength": 1
          },
          "marketingCarrier": {
            "$ref": "#/components/schemas/FlightCarrierSnapshot"
          },
          "marketingFlightNumber": {
            "type": "string",
            "minLength": 1
          },
          "operatingCarrier": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FlightCarrierSnapshot"
              },
              {
                "type": "null"
              }
            ]
          },
          "operatingFlightNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "providerSegmentReference": {
            "type": "string",
            "minLength": 1
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSelectedSeat"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSelectedService"
            }
          }
        },
        "required": [
          "aircraft",
          "arrival",
          "baggage",
          "bookingClass",
          "cabin",
          "departure",
          "durationMinutes",
          "fareBasisCode",
          "hiddenStops",
          "legId",
          "marketingCarrier",
          "marketingFlightNumber",
          "operatingCarrier",
          "operatingFlightNumber",
          "providerSegmentReference",
          "seats",
          "services"
        ],
        "additionalProperties": false
      },
      "FlightEndpointSnapshot": {
        "type": "object",
        "properties": {
          "airport": {
            "$ref": "#/components/schemas/FlightAirportSnapshot"
          },
          "at": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "localDateTime": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "terminal": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "utcOffset": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "airport",
          "at",
          "localDateTime",
          "terminal",
          "utcOffset"
        ],
        "additionalProperties": false
      },
      "CarRentalProductSnapshot": {
        "type": "object",
        "properties": {
          "paymentPolicy": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "PAY_AT_LOCATION",
                  "PREPAID",
                  "UNKNOWN"
                ]
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timing": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "PICKUP",
                      "RETURN"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "summary",
              "timing"
            ],
            "additionalProperties": false
          },
          "category": {
            "type": "string",
            "minLength": 1
          },
          "charges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amountMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "chargeType": {
                  "type": "string",
                  "minLength": 1
                },
                "extraMileageCharge": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mileageAllowance": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unitOfMeasure": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "amountMinor",
                "currency",
                "chargeType",
                "extraMileageCharge",
                "mileageAllowance",
                "unitOfMeasure"
              ],
              "additionalProperties": false
            }
          },
          "dropOffAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "dropOffLocation": {
            "$ref": "#/components/schemas/CarRentalLocationSnapshot"
          },
          "images": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuoteImage"
            }
          },
          "inclusions": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "kind": {
            "type": "string",
            "const": "CAR_RENTAL"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "pickUpAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "pickUpLocation": {
            "$ref": "#/components/schemas/CarRentalLocationSnapshot"
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuotePolicy"
            }
          },
          "productId": {
            "type": "string",
            "minLength": 1
          },
          "selectedExtras": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "price": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Money"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "serviceId": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "name",
                "price",
                "serviceId"
              ],
              "additionalProperties": false
            }
          },
          "specifications": {
            "type": "object",
            "properties": {
              "bodyType": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "doors": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "driveWheelConfiguration": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fuelType": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "largeBags": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "seatBelts": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "smallBags": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "transmission": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "vehicleType": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "bodyType",
              "doors",
              "driveWheelConfiguration",
              "fuelType",
              "largeBags",
              "seatBelts",
              "smallBags",
              "transmission",
              "vehicleType"
            ],
            "additionalProperties": false
          },
          "supplierName": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "category",
          "dropOffAt",
          "dropOffLocation",
          "images",
          "inclusions",
          "kind",
          "name",
          "pickUpAt",
          "pickUpLocation",
          "policies",
          "productId",
          "selectedExtras",
          "supplierName"
        ],
        "additionalProperties": false
      },
      "CarRentalLocationSnapshot": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "airportCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AirportCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "localDateTime": {
            "type": "string",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "timeZone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "utcOffset": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "airportCode",
          "latitude",
          "longitude",
          "name"
        ],
        "additionalProperties": false
      },
      "InsuranceProductSnapshot": {
        "type": "object",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "effectiveDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "exclusions": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "expirationDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "insuredItems": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "$ref": "#/components/schemas/Money"
                },
                "reference": {
                  "type": "string",
                  "minLength": 1
                },
                "title": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "amount",
                "reference",
                "title"
              ],
              "additionalProperties": false
            }
          },
          "kind": {
            "type": "string",
            "const": "INSURANCE"
          },
          "planName": {
            "type": "string",
            "minLength": 1
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuotePolicy"
            }
          },
          "productId": {
            "type": "string",
            "minLength": 1
          },
          "selectedCoverages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "coverageId": {
                  "type": "string",
                  "minLength": 1
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "price": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/Money"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "coverageId",
                "description",
                "name",
                "price"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "description",
          "effectiveDate",
          "exclusions",
          "expirationDate",
          "insuredItems",
          "kind",
          "planName",
          "policies",
          "productId",
          "selectedCoverages"
        ],
        "additionalProperties": false
      },
      "TermsDigest": {
        "type": "string",
        "pattern": "^sha256:[a-f0-9]{64}$"
      },
      "SabreConnectionSummary": {
        "type": "object",
        "properties": {
          "agents": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "unclaimed": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "enabled",
              "unclaimed"
            ],
            "additionalProperties": false
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "configVersion": {
            "type": "string",
            "minLength": 1
          },
          "defaultAgentDkNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "enabled": {
            "type": "boolean"
          },
          "executionMode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SabreExecutionMode"
              },
              {
                "type": "null"
              }
            ]
          },
          "homePcc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastTest": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SabreConnectionTest"
              },
              {
                "type": "null"
              }
            ]
          },
          "products": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProductKind"
            }
          },
          "providerConfigId": {
            "type": "string",
            "minLength": 1
          },
          "secretName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sessionPcc": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "sharedWith": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "ticketsFromQueue": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "agents",
          "companyName",
          "configVersion",
          "defaultAgentDkNumber",
          "enabled",
          "executionMode",
          "homePcc",
          "lastTest",
          "products",
          "providerConfigId",
          "secretName",
          "sessionPcc",
          "sharedWith",
          "ticketsFromQueue",
          "updatedAt"
        ],
        "additionalProperties": false,
        "description": "One agency's Sabre connection as Nicer staff see it: its office, where and with which credential Nicer signs in, the agencies sharing that credential, its products, live or mock, its agents and its last sign-in test. Never the credential itself.",
        "examples": [
          {
            "agents": {
              "enabled": 4,
              "unclaimed": 1
            },
            "companyName": "sunrise-travel",
            "configVersion": "3f2a9c1e-5b7d-4e8a-9c0f-1d2e3f4a5b6c",
            "defaultAgentDkNumber": "7TZ123",
            "enabled": true,
            "executionMode": "LIVE",
            "homePcc": "N1CR",
            "lastTest": {
              "errorCode": null,
              "success": true,
              "testedAt": "2026-11-10T15:04:05.000Z"
            },
            "products": [
              "CAR_RENTAL",
              "FLIGHT",
              "HOTEL"
            ],
            "providerConfigId": "default",
            "secretName": "prod-commerce-provider-sabre-nicer-epr",
            "sessionPcc": "A1B2",
            "sharedWith": [
              "harbor-voyages"
            ],
            "ticketsFromQueue": false,
            "updatedAt": "2026-11-09T18:30:00.000Z"
          }
        ]
      },
      "SabreExecutionMode": {
        "type": "string",
        "enum": [
          "LIVE",
          "MOCK"
        ]
      },
      "SabreConnectionTest": {
        "type": "object",
        "properties": {
          "errorCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "success": {
            "type": "boolean"
          },
          "testedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "errorCode",
          "success",
          "testedAt"
        ],
        "additionalProperties": false,
        "description": "The last time someone tested the connection's sign-in from the settings, and whether it worked. Searches do not update it.",
        "examples": [
          {
            "errorCode": null,
            "success": true,
            "testedAt": "2026-11-10T15:04:05.000Z"
          }
        ]
      },
      "SabreDkNumber": {
        "type": "string",
        "pattern": "^[A-Z0-9]{1,10}$",
        "description": "The customer number (DK) Sabre stamps on a booking to say which agent of the agency made it: 1 to 10 letters and digits, stored upper-case.",
        "examples": [
          "7TZ123"
        ]
      },
      "SabreBookingIdentity": {
        "type": "string",
        "enum": [
          "OWN_AGENT",
          "AGENCY_AGENT",
          "NO_AGENT"
        ],
        "description": "Whose DK the caller's Sabre searches and bookings carry: `OWN_AGENT` their own; `AGENCY_AGENT` the agency's default agent, because they have none; `NO_AGENT` neither exists, so Sabre returns nothing for them until they activate one.",
        "examples": [
          "OWN_AGENT"
        ]
      },
      "BookingSelectionPreviewResponse": {
        "type": "object",
        "properties": {
          "commercialSnapshot": {
            "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs. Present only for the agency's advisors and admins and for Nicer staff; absent for travelers.",
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "paymentTerms": {
            "$ref": "#/components/schemas/PaymentTerms"
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "productSnapshot": {
            "$ref": "#/components/schemas/BookingProductSnapshot"
          }
        },
        "required": [
          "paymentTerms",
          "priceSnapshot",
          "productSnapshot"
        ],
        "additionalProperties": false
      },
      "AgencyAddress": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1
          },
          "street": {
            "type": "string",
            "minLength": 1
          },
          "city": {
            "type": "string",
            "minLength": 1
          },
          "stateProvince": {
            "type": "string",
            "minLength": 1
          },
          "postalCode": {
            "type": "string",
            "minLength": 1
          },
          "countryCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          }
        },
        "required": [
          "name",
          "street",
          "city",
          "postalCode",
          "countryCode"
        ],
        "additionalProperties": false
      },
      "SabreProfileReference": {
        "type": "object",
        "properties": {
          "domainId": {
            "type": "string",
            "pattern": "^[A-Z0-9]{3,4}$"
          },
          "profileName": {
            "type": "string",
            "minLength": 1
          },
          "profileTypeCode": {
            "type": "string",
            "enum": [
              "CRP",
              "AGY",
              "AGT",
              "OPX"
            ]
          }
        },
        "required": [
          "domainId",
          "profileName",
          "profileTypeCode"
        ],
        "additionalProperties": false
      },
      "HotelIataOverride": {
        "type": "object",
        "properties": {
          "iataNumber": {
            "type": "string",
            "pattern": "^\\d{8}$"
          },
          "rateCodes": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "pattern": "^[A-Z0-9]{2,10}$"
            }
          }
        },
        "required": [
          "iataNumber",
          "rateCodes"
        ],
        "additionalProperties": false
      },
      "SabreTicketingPrinter": {
        "type": "object",
        "properties": {
          "hardcopyLniata": {
            "type": "string",
            "pattern": "^[A-Z0-9]{6}$"
          },
          "ticketStockCode": {
            "type": "string",
            "pattern": "^[A-Z]{2}$"
          },
          "ticketLniata": {
            "type": "string",
            "pattern": "^[A-Z0-9]{6}$"
          }
        },
        "required": [
          "hardcopyLniata",
          "ticketStockCode"
        ],
        "additionalProperties": false
      },
      "SabreTicketingQueue": {
        "type": "object",
        "properties": {
          "number": {
            "type": "integer",
            "minimum": 0,
            "maximum": 999
          },
          "pcc": {
            "type": "string",
            "pattern": "^[A-Z0-9]{3,4}$"
          },
          "prefatoryInstructionCode": {
            "default": 11,
            "type": "integer",
            "minimum": 0,
            "maximum": 254
          }
        },
        "required": [
          "number",
          "prefatoryInstructionCode"
        ],
        "additionalProperties": false
      },
      "InsuranceQuote": {
        "type": "object",
        "properties": {
          "availableOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InsuranceCoverageOption"
            }
          },
          "description": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "planId": {
            "type": "string",
            "minLength": 1
          },
          "planName": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "insuredTripCostMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "insuredTripCostMinor"
            ],
            "additionalProperties": false
          },
          "productKind": {
            "type": "string",
            "const": "INSURANCE"
          },
          "providerKey": {
            "type": "string"
          },
          "quoteId": {
            "type": "string",
            "minLength": 1
          },
          "selectedOptions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InsuranceCoverageOption"
            }
          },
          "travelerPricing": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "coverageAmountMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "policyCostMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "travelerId": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "coverageAmountMinor",
                "policyCostMinor",
                "travelerId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "availableOptions",
          "description",
          "expiresAt",
          "planId",
          "planName",
          "price",
          "productKind",
          "providerKey",
          "quoteId",
          "selectedOptions",
          "travelerPricing"
        ],
        "additionalProperties": false
      },
      "InsuranceCoverageOption": {
        "type": "object",
        "properties": {
          "coverageCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "coverageName": {
            "type": "string",
            "maxLength": 300
          },
          "description": {
            "type": "string",
            "maxLength": 2000
          },
          "effectiveDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "expirationDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "isSelected": {
            "type": "boolean"
          },
          "price": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "coverageCode",
          "isSelected",
          "price"
        ],
        "additionalProperties": false
      },
      "ChatListItem": {
        "type": "object",
        "properties": {
          "chat": {
            "type": "object",
            "properties": {
              "chatId": {
                "type": "string"
              },
              "chatTitle": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "companyName": {
                "type": "string"
              },
              "createdAt": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "trip",
                  "direct"
                ]
              },
              "lastMessageTimestamp": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "participantUserIds": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "suggestionsEnabled": {
                "type": "boolean"
              },
              "travelersTripId": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "The trip this chat belongs to, when it is a trip chat."
              },
              "type": {
                "type": "string",
                "const": "Chat"
              },
              "updatedAt": {
                "description": "The time of the last message; absent before the first one.",
                "type": "string"
              }
            },
            "required": [
              "chatId",
              "chatTitle",
              "companyName",
              "kind",
              "lastMessageTimestamp",
              "participantUserIds",
              "suggestionsEnabled",
              "travelersTripId",
              "type"
            ],
            "additionalProperties": false
          },
          "chatUpdatedAt": {
            "type": "string",
            "description": "The time of the last message, or of the last write to the chat."
          },
          "hasOpenOrder": {
            "type": "boolean"
          },
          "isArchived": {
            "type": "boolean"
          },
          "seen": {
            "type": "boolean",
            "description": "Nothing has arrived since the caller last opened the chat."
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's title, or the direct chat's."
          },
          "travelersTrip": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "associatedChatId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "associatedTripItineraryId": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "associatedUserIds": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "companyName": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string"
                  },
                  "destinations": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Destination"
                    }
                  },
                  "lastMessageTimestamp": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "primaryTravelerUserId": {
                    "type": "string"
                  },
                  "suggestionsEnabled": {
                    "type": "boolean"
                  },
                  "travelersTripId": {
                    "type": "string"
                  },
                  "tripEndDate": {
                    "type": "string"
                  },
                  "tripStartDate": {
                    "type": "string"
                  },
                  "tripTitle": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "const": "TravelersTrip"
                  },
                  "updatedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "associatedUserIds",
                  "companyName",
                  "createdAt",
                  "destinations",
                  "primaryTravelerUserId",
                  "travelersTripId",
                  "tripEndDate",
                  "tripStartDate",
                  "tripTitle",
                  "type",
                  "updatedAt"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip, null for a direct chat. Its destinations carry no photos unless `fields` asks for `travelersTrip.destinations.photos`."
          },
          "unreadCount": {
            "type": "number"
          },
          "users": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "avatar": {
                  "type": "string"
                },
                "deleted": {
                  "type": "boolean"
                },
                "familyName": {
                  "type": "string"
                },
                "fullName": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "givenName": {
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "const": "User"
                },
                "userId": {
                  "type": "string"
                }
              },
              "required": [
                "familyName",
                "fullName",
                "givenName",
                "type",
                "userId"
              ],
              "additionalProperties": false
            },
            "description": "The chat's participants."
          }
        },
        "required": [
          "chat",
          "chatUpdatedAt",
          "hasOpenOrder",
          "isArchived",
          "seen",
          "title",
          "travelersTrip",
          "unreadCount",
          "users"
        ],
        "additionalProperties": false
      },
      "AuditEvent": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "actingCompanyName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "actorKind": {
            "type": "string",
            "enum": [
              "USER",
              "STAFF",
              "SYSTEM",
              "MIGRATION"
            ]
          },
          "actorRole": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "actorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "auditEventId": {
            "type": "string",
            "minLength": 1
          },
          "changes": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "context": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              {
                "type": "null"
              }
            ]
          },
          "correlationId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "handlerName": {
            "type": "string",
            "minLength": 1
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "API",
              "CRON",
              "QUEUE",
              "EVENT",
              "WORKFLOW",
              "MIGRATION"
            ]
          },
          "subjectId": {
            "type": "string",
            "minLength": 1
          },
          "subjectKind": {
            "type": "string",
            "enum": [
              "AGENCY_IDENTIFIER",
              "ALLOCATION",
              "AUDIT_TRAIL",
              "COMMISSION_FILE",
              "COMMISSION_INVOICE",
              "COMMISSION_ITEM",
              "COMMISSION_SETTINGS",
              "COMPANY",
              "EXPORT",
              "EXTERNAL_BOOKING",
              "HOST_RELATIONSHIP",
              "ORDER",
              "PAYEE",
              "PAYOUT",
              "PAYOUT_RUN",
              "REMITTANCE",
              "REMITTANCE_LINE",
              "SPLIT_PLAN",
              "STATEMENT",
              "SUPPLIER"
            ]
          }
        },
        "required": [
          "action",
          "actingCompanyName",
          "actorKind",
          "actorRole",
          "actorUserId",
          "auditEventId",
          "changes",
          "companyName",
          "context",
          "correlationId",
          "handlerName",
          "occurredAt",
          "reason",
          "requestId",
          "source",
          "subjectId",
          "subjectKind"
        ],
        "additionalProperties": false
      },
      "ExportColumn": {
        "type": "string",
        "pattern": "^[A-Z][A-Z0-9_]{0,63}$"
      },
      "ExportFormat": {
        "type": "string",
        "enum": [
          "CSV",
          "XLSX",
          "PDF"
        ]
      },
      "CommissionExportStatus": {
        "type": "string",
        "enum": [
          "QUEUED",
          "RUNNING",
          "READY",
          "FAILED",
          "EXPIRED"
        ]
      },
      "ExportSubject": {
        "type": "string",
        "enum": [
          "COMMISSION_ITEMS",
          "PAYMENTS",
          "REMITTANCES",
          "STATEMENTS",
          "SUPPLIERS",
          "PAYEES",
          "PAYOUTS",
          "COMMISSION_INVOICES",
          "EARNINGS",
          "AGENCY"
        ]
      },
      "CommissionFileStatus": {
        "type": "string",
        "enum": [
          "AWAITING_UPLOAD",
          "UPLOADED",
          "PARSING",
          "READY",
          "COMMITTING",
          "COMMITTED",
          "UNDONE",
          "DISCARDED",
          "FAILED"
        ]
      },
      "ImportAdvisor": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "pattern": "^[^\\s@A-Z]+@[^\\s@A-Z]+$"
          },
          "userId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "email",
          "userId"
        ],
        "additionalProperties": false
      },
      "BookingImportMapping": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/BookingImportField"
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "defaults": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/BookingImportField"
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "dateFormat": {
            "type": "string",
            "enum": [
              "ISO",
              "US",
              "EU"
            ]
          },
          "decimalSeparator": {
            "type": "string",
            "enum": [
              ".",
              ","
            ]
          },
          "headerRow": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "sheet": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "columns",
          "defaults",
          "dateFormat",
          "decimalSeparator",
          "headerRow",
          "sheet"
        ],
        "additionalProperties": false
      },
      "BookingImportField": {
        "type": "string",
        "enum": [
          "bookedOn",
          "category",
          "clientName",
          "commission",
          "confirmationNumber",
          "currency",
          "dueOn",
          "externalReference",
          "gross",
          "identifierNumber",
          "kind",
          "note",
          "paymentTermDays",
          "providerLocator",
          "quantity",
          "rate",
          "supplierName",
          "tags",
          "travelEnd",
          "travelStart",
          "advisorEmail"
        ]
      },
      "UploadLink": {
        "type": "object",
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "headers": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "method": {
            "type": "string",
            "const": "PUT"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        },
        "required": [
          "expiresAt",
          "headers",
          "method",
          "url"
        ],
        "additionalProperties": false
      },
      "ImportRow": {
        "type": "object",
        "properties": {
          "cells": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "commissionItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "enum": [
                    "REQUIRED",
                    "INVALID_DATE",
                    "INVALID_AMOUNT",
                    "INVALID_RATE",
                    "INVALID_VALUE",
                    "TRAVEL_END_BEFORE_START",
                    "NO_COMMISSION",
                    "UNKNOWN_IDENTIFIER",
                    "UNKNOWN_ADVISOR"
                  ]
                },
                "field": {
                  "$ref": "#/components/schemas/BookingImportField"
                }
              },
              "required": [
                "code",
                "field"
              ],
              "additionalProperties": false
            }
          },
          "externalBookingId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "rowNumber": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "$ref": "#/components/schemas/ImportRowStatus"
          },
          "values": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ImportRowValues"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "cells",
          "commissionItemId",
          "errors",
          "externalBookingId",
          "rowNumber",
          "status",
          "values"
        ],
        "additionalProperties": false
      },
      "ImportRowStatus": {
        "type": "string",
        "enum": [
          "VALID",
          "INVALID",
          "DUPLICATE",
          "COMMITTED",
          "SKIPPED"
        ]
      },
      "ImportRowValues": {
        "type": "object",
        "properties": {
          "bookedOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "category": {
            "$ref": "#/components/schemas/CommissionCategory"
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "commissionMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "dueOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "externalReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "grossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "identifierNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/CommissionItemKind"
          },
          "note": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentTermDays": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "rateBps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "type": "string",
            "minLength": 1
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "advisorEmail": {
            "type": "string",
            "maxLength": 254,
            "pattern": "^[^\\s@A-Z]+@[^\\s@A-Z]+$"
          }
        },
        "required": [
          "bookedOn",
          "category",
          "clientName",
          "commissionMinor",
          "confirmationNumber",
          "currency",
          "dueOn",
          "externalReference",
          "grossMinor",
          "identifierNumber",
          "kind",
          "note",
          "paymentTermDays",
          "providerLocator",
          "quantity",
          "rateBps",
          "supplierName",
          "tags",
          "travelEnd",
          "travelStart"
        ],
        "additionalProperties": false
      },
      "CommissionCategory": {
        "type": "string",
        "enum": [
          "HOTEL",
          "CRUISE",
          "TOUR",
          "DMC",
          "FLIGHT",
          "CAR_RENTAL",
          "RAIL",
          "INSURANCE",
          "TRANSFER",
          "CONCIERGE",
          "FEE",
          "OTHER"
        ]
      },
      "CommissionItemKind": {
        "type": "string",
        "enum": [
          "SUPPLIER_COMMISSION",
          "CLIENT_NET_MARKUP",
          "CLIENT_FEE"
        ]
      },
      "CommissionInvoiceLine": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "itemCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          }
        },
        "required": [
          "amountMinor",
          "clientName",
          "commissionItemId",
          "confirmationNumber",
          "itemCompanyName",
          "number",
          "travelEnd",
          "travelStart"
        ],
        "additionalProperties": false
      },
      "CommissionOverviewConfiguration": {
        "type": "object",
        "properties": {
          "hostRelationships": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HostRelationship"
            }
          },
          "identifiers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AgencyIdentifier"
            }
          },
          "payees": {
            "type": "object",
            "properties": {
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "withPayoutMethod": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "count",
              "withPayoutMethod"
            ],
            "additionalProperties": false
          },
          "settings": {
            "$ref": "#/components/schemas/CommissionSettings"
          },
          "splitPlanAssignments": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitPlanAssignment"
            }
          }
        },
        "required": [
          "hostRelationships",
          "identifiers",
          "payees",
          "settings",
          "splitPlanAssignments"
        ],
        "additionalProperties": false
      },
      "HostRelationship": {
        "type": "object",
        "properties": {
          "claimWindowDays": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 3650
              },
              {
                "type": "null"
              }
            ]
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "effectiveTo": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "hostCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "identifierId": {
            "type": "string",
            "minLength": 1
          },
          "memberCompanyName": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "claimWindowDays",
          "effectiveFrom",
          "effectiveTo",
          "hostCompanyName",
          "identifierId",
          "memberCompanyName"
        ],
        "additionalProperties": false
      },
      "AgencyIdentifier": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "identifierId": {
            "type": "string",
            "minLength": 1
          },
          "isDefault": {
            "type": "boolean"
          },
          "kind": {
            "type": "string",
            "enum": [
              "IATA",
              "ARC",
              "CLIA",
              "TIDS",
              "TRUE",
              "INTERNAL"
            ]
          },
          "label": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "paymentInstructions": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PaymentInstructions"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "companyName",
          "identifierId",
          "isDefault",
          "kind",
          "label",
          "number",
          "paymentInstructions"
        ],
        "additionalProperties": false
      },
      "PaymentInstructions": {
        "type": "object",
        "properties": {
          "checkPayableTo": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "mailingAddress": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 1000
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "checkPayableTo",
          "mailingAddress",
          "notes"
        ],
        "additionalProperties": false
      },
      "CommissionSettings": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "defaultPaymentTermDays": {
            "type": "integer",
            "minimum": 0,
            "maximum": 730
          },
          "gdsImportCommissionEnabled": {
            "type": "boolean"
          },
          "paidToleranceMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "payouts": {
            "$ref": "#/components/schemas/PayoutSettings"
          },
          "trackingEnabled": {
            "type": "boolean"
          },
          "unclaimedArchiveDays": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1,
                "maximum": 3650
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "companyName",
          "defaultPaymentTermDays",
          "gdsImportCommissionEnabled",
          "paidToleranceMinor",
          "payouts",
          "trackingEnabled",
          "unclaimedArchiveDays",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false
      },
      "PayoutSettings": {
        "type": "object",
        "properties": {
          "stripeConnectEnabled": {
            "type": "boolean"
          }
        },
        "required": [
          "stripeConnectEnabled"
        ],
        "additionalProperties": false
      },
      "SplitPlanAssignment": {
        "type": "object",
        "properties": {
          "assigneeId": {
            "type": "string",
            "minLength": 1
          },
          "assigneeKind": {
            "type": "string",
            "enum": [
              "COMPANY",
              "ADVISOR",
              "MEMBER"
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "effectiveFrom": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "effectiveTo": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "splitPlanId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "assigneeId",
          "assigneeKind",
          "companyName",
          "effectiveFrom",
          "effectiveTo",
          "splitPlanId"
        ],
        "additionalProperties": false
      },
      "CommissionOverviewFiles": {
        "type": "object",
        "properties": {
          "failed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "inProgress": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "BOOKINGS",
                    "REMITTANCES"
                  ]
                }
              },
              "required": [
                "count",
                "kind"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "failed",
          "inProgress"
        ],
        "additionalProperties": false
      },
      "CommissionOverviewMoneyReceived": {
        "type": "object",
        "properties": {
          "allocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "openLines": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "count": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "amountMinor",
              "count"
            ],
            "additionalProperties": false
          },
          "pendingClaims": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "remittances": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "unallocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "allocatedMinor",
          "currency",
          "grossMinor",
          "openLines",
          "pendingClaims",
          "remittances",
          "unallocatedMinor"
        ],
        "additionalProperties": false
      },
      "CommissionOverviewPayees": {
        "type": "object",
        "properties": {
          "approvedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "availableMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "onStatementsMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "owedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "pendingMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "topOwed": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "owedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "payeeId": {
                  "type": "string",
                  "minLength": 1
                },
                "payeeKind": {
                  "type": "string",
                  "enum": [
                    "ADVISOR",
                    "COMPANY"
                  ]
                }
              },
              "required": [
                "owedMinor",
                "payeeId",
                "payeeKind"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "approvedMinor",
          "availableMinor",
          "currency",
          "onStatementsMinor",
          "owedMinor",
          "pendingMinor",
          "topOwed"
        ],
        "additionalProperties": false
      },
      "CommissionOverviewPayouts": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "status": {
            "$ref": "#/components/schemas/PayoutStatus"
          }
        },
        "required": [
          "amountMinor",
          "count",
          "currency",
          "status"
        ],
        "additionalProperties": false
      },
      "PayoutStatus": {
        "type": "string",
        "enum": [
          "PENDING",
          "PAID",
          "FAILED",
          "CANCELLED"
        ]
      },
      "AgingBucket": {
        "type": "string",
        "enum": [
          "NOT_TRAVELED",
          "0_30",
          "31_60",
          "61_90",
          "91_180",
          "180_PLUS"
        ]
      },
      "CommissionOverviewReceivables": {
        "type": "object",
        "properties": {
          "agingBuckets": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agingBucket": {
                  "$ref": "#/components/schemas/AgingBucket"
                },
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "agingBucket",
                "balanceMinor",
                "count"
              ],
              "additionalProperties": false
            }
          },
          "balanceMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "overdueCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "overdueMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "topSuppliers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "name": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "supplierId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "balanceMinor",
                "count",
                "name",
                "supplierId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "agingBuckets",
          "balanceMinor",
          "count",
          "currency",
          "overdueCount",
          "overdueMinor",
          "topSuppliers"
        ],
        "additionalProperties": false
      },
      "CommissionOverviewStatements": {
        "type": "object",
        "properties": {
          "byStatus": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "status": {
                  "$ref": "#/components/schemas/StatementStatus"
                },
                "totalMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "count",
                "currency",
                "status",
                "totalMinor"
              ],
              "additionalProperties": false
            }
          },
          "nextCycleOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "byStatus",
          "nextCycleOn"
        ],
        "additionalProperties": false
      },
      "StatementStatus": {
        "type": "string",
        "enum": [
          "OPEN",
          "PENDING_APPROVAL",
          "APPROVED",
          "PAID",
          "VOID"
        ]
      },
      "CommissionReportPeriod": {
        "type": "object",
        "properties": {
          "asOf": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "basis": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "TRAVEL_END",
                  "BOOKED",
                  "TRAVEL_START"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "from": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "to": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "asOf",
          "basis",
          "from",
          "to"
        ],
        "additionalProperties": false
      },
      "ProductionBySupplierRow": {
        "type": "object",
        "properties": {
          "commissionableMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "closedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reportingCommissionableMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingExpectedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingGrossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingReceivedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupplierKind"
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "verified": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "commissionableMinor",
          "count",
          "closedCount",
          "currency",
          "expectedMinor",
          "grossMinor",
          "receivedMinor",
          "reportingCommissionableMinor",
          "reportingExpectedMinor",
          "reportingGrossMinor",
          "reportingReceivedMinor",
          "city",
          "countryCode",
          "kind",
          "supplierId",
          "supplierName",
          "verified"
        ],
        "additionalProperties": false
      },
      "SupplierKind": {
        "type": "string",
        "enum": [
          "PROPERTY",
          "CRUISE_LINE",
          "TOUR_OPERATOR",
          "DMC",
          "AIRLINE",
          "CAR_RENTAL",
          "RAIL",
          "INSURANCE",
          "TRANSFER",
          "OTHER"
        ]
      },
      "ProductionTotal": {
        "type": "object",
        "properties": {
          "commissionableMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "closedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "commissionableMinor",
          "count",
          "closedCount",
          "currency",
          "expectedMinor",
          "grossMinor",
          "receivedMinor"
        ],
        "additionalProperties": false
      },
      "ProductionByAdvisorRow": {
        "type": "object",
        "properties": {
          "commissionableMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "closedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reportingCommissionableMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingExpectedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingGrossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingReceivedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "commissionableMinor",
          "count",
          "closedCount",
          "currency",
          "expectedMinor",
          "grossMinor",
          "receivedMinor",
          "reportingCommissionableMinor",
          "reportingExpectedMinor",
          "reportingGrossMinor",
          "reportingReceivedMinor",
          "advisorUserId"
        ],
        "additionalProperties": false
      },
      "ProductionByClientRow": {
        "type": "object",
        "properties": {
          "commissionableMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "closedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reportingCommissionableMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingExpectedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingGrossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingReceivedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "clientUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "commissionableMinor",
          "count",
          "closedCount",
          "currency",
          "expectedMinor",
          "grossMinor",
          "receivedMinor",
          "reportingCommissionableMinor",
          "reportingExpectedMinor",
          "reportingGrossMinor",
          "reportingReceivedMinor",
          "clientName",
          "clientUserId"
        ],
        "additionalProperties": false
      },
      "ProductionByDestinationRow": {
        "type": "object",
        "properties": {
          "commissionableMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "closedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reportingCommissionableMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingExpectedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingGrossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingReceivedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "commissionableMinor",
          "count",
          "closedCount",
          "currency",
          "expectedMinor",
          "grossMinor",
          "receivedMinor",
          "reportingCommissionableMinor",
          "reportingExpectedMinor",
          "reportingGrossMinor",
          "reportingReceivedMinor",
          "countryCode"
        ],
        "additionalProperties": false
      },
      "ReceivablesAgingRow": {
        "type": "object",
        "properties": {
          "balanceMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "byAgingBucket": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agingBucket": {
                  "$ref": "#/components/schemas/AgingBucket"
                },
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "agingBucket",
                "balanceMinor",
                "count"
              ],
              "additionalProperties": false
            }
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "overdueCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "overdueMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "reportingBalanceMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "reportingOverdueMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "balanceMinor",
          "byAgingBucket",
          "count",
          "currency",
          "overdueCount",
          "overdueMinor",
          "reportingBalanceMinor",
          "reportingOverdueMinor",
          "supplierId",
          "supplierName"
        ],
        "additionalProperties": false
      },
      "ReceivablesTotal": {
        "type": "object",
        "properties": {
          "balanceMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "byAgingBucket": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "agingBucket": {
                  "$ref": "#/components/schemas/AgingBucket"
                },
                "balanceMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "count": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "agingBucket",
                "balanceMinor",
                "count"
              ],
              "additionalProperties": false
            }
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "overdueCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "overdueMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "balanceMinor",
          "byAgingBucket",
          "count",
          "currency",
          "overdueCount",
          "overdueMinor"
        ],
        "additionalProperties": false
      },
      "ReconciliationExceptionRow": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "exception": {
            "$ref": "#/components/schemas/ReconciliationExceptionKind"
          },
          "occurredOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "reference": {
            "type": "string",
            "minLength": 1
          },
          "remittanceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "subjectId": {
            "type": "string",
            "minLength": 1
          },
          "subjectKind": {
            "type": "string",
            "enum": [
              "REMITTANCE_LINE",
              "COMMISSION_ITEM",
              "REMITTANCE_CLAIM"
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amountMinor",
          "currency",
          "exception",
          "occurredOn",
          "reference",
          "remittanceId",
          "subjectId",
          "subjectKind",
          "supplierName"
        ],
        "additionalProperties": false
      },
      "ReconciliationExceptionKind": {
        "type": "string",
        "enum": [
          "UNMATCHED_LINE",
          "PENDING_REVIEW_LINE",
          "OVERPAID_ITEM",
          "PENDING_CLAIM"
        ]
      },
      "ReconciliationExceptionTotal": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "exception": {
            "$ref": "#/components/schemas/ReconciliationExceptionKind"
          }
        },
        "required": [
          "amountMinor",
          "count",
          "currency",
          "exception"
        ],
        "additionalProperties": false
      },
      "SupplierDirectoryRow": {
        "type": "object",
        "properties": {
          "commissionableMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "count": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "closedCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "grossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupplierAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/SupplierKind"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "programs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "programId": {
                  "type": "string",
                  "minLength": 1
                },
                "validFrom": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "validTo": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "name",
                "programId",
                "validFrom",
                "validTo"
              ],
              "additionalProperties": false
            }
          },
          "supplierId": {
            "type": "string",
            "minLength": 1
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "commissionableMinor",
          "count",
          "closedCount",
          "currency",
          "expectedMinor",
          "grossMinor",
          "receivedMinor",
          "address",
          "kind",
          "name",
          "programs",
          "supplierId",
          "verified"
        ],
        "additionalProperties": false
      },
      "SupplierAddress": {
        "type": "object",
        "properties": {
          "city": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "line1": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "line2": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "postalCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ]
          },
          "region": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "city",
          "countryCode",
          "line1",
          "line2",
          "postalCode",
          "region"
        ],
        "additionalProperties": false
      },
      "ExportPreset": {
        "type": "object",
        "properties": {
          "columns": {
            "minItems": 1,
            "maxItems": 60,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ExportColumn"
            }
          },
          "companyName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "format": {
            "$ref": "#/components/schemas/ExportFormat"
          },
          "groupBy": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ExportColumn"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "presetId": {
            "type": "string",
            "minLength": 1
          },
          "subject": {
            "$ref": "#/components/schemas/ExportListSubject"
          },
          "totalsOnly": {
            "type": "boolean"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "columns",
          "companyName",
          "createdAt",
          "format",
          "groupBy",
          "name",
          "presetId",
          "subject",
          "totalsOnly",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "ExportListSubject": {
        "type": "string",
        "enum": [
          "COMMISSION_ITEMS",
          "PAYMENTS",
          "REMITTANCES",
          "STATEMENTS",
          "SUPPLIERS",
          "PAYEES",
          "PAYOUTS",
          "COMMISSION_INVOICES",
          "EARNINGS"
        ]
      },
      "ImportPreset": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "presetId": {
                "type": "string",
                "minLength": 1
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "channel": {
                "type": "null"
              },
              "kind": {
                "type": "string",
                "const": "BOOKINGS"
              },
              "mapping": {
                "$ref": "#/components/schemas/BookingImportMapping"
              }
            },
            "required": [
              "companyName",
              "createdAt",
              "name",
              "presetId",
              "updatedAt",
              "channel",
              "kind",
              "mapping"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "companyName": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "presetId": {
                "type": "string",
                "minLength": 1
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "channel": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/CommissionChannel"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "REMITTANCES"
              },
              "mapping": {
                "$ref": "#/components/schemas/RemittanceImportMapping"
              }
            },
            "required": [
              "companyName",
              "createdAt",
              "name",
              "presetId",
              "updatedAt",
              "channel",
              "kind",
              "mapping"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommissionChannel": {
        "type": "string",
        "enum": [
          "ARC",
          "BSP",
          "CHECK",
          "ACH",
          "WIRE",
          "CARD",
          "STRIPE",
          "CASH",
          "HOST_STATEMENT",
          "OTHER"
        ]
      },
      "RemittanceImportMapping": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/RemittanceImportField"
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "defaults": {
            "type": "object",
            "propertyNames": {
              "$ref": "#/components/schemas/RemittanceImportField"
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "dateFormat": {
            "type": "string",
            "enum": [
              "ISO",
              "US",
              "EU"
            ]
          },
          "decimalSeparator": {
            "type": "string",
            "enum": [
              ".",
              ","
            ]
          },
          "headerRow": {
            "type": "integer",
            "minimum": 1,
            "maximum": 50
          },
          "sheet": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "columns",
          "defaults",
          "dateFormat",
          "decimalSeparator",
          "headerRow",
          "sheet"
        ],
        "additionalProperties": false
      },
      "RemittanceImportField": {
        "type": "string",
        "enum": [
          "amount",
          "bookingGross",
          "checkIn",
          "checkOut",
          "clientName",
          "confirmationNumber",
          "currency",
          "fee",
          "fxRate",
          "identifierNumber",
          "originalAmount",
          "originalCurrency",
          "payableOn",
          "payerName",
          "paymentReference",
          "rate",
          "receivedOn",
          "supplierName"
        ]
      },
      "SplitPlan": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "rules": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SplitPlanRule"
            }
          },
          "splitPlanId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "companyName",
          "createdAt",
          "createdByUserId",
          "name",
          "rules",
          "splitPlanId"
        ],
        "additionalProperties": false
      },
      "SplitPlanRule": {
        "type": "object",
        "properties": {
          "basis": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "GROSS",
                  "NET_OF_FEES",
                  "NET_OF_HOST"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "beneficiaryId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "beneficiaryKind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "HOST",
                  "AGENCY",
                  "ADVISOR",
                  "REFERRER"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "feeBearer": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "HOUSE",
                  "ADVISOR",
                  "PRO_RATA"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "SHARE",
              "MARKUP"
            ]
          },
          "priority": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "ruleId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "scopeKind": {
            "type": "string",
            "enum": [
              "ALL",
              "CATEGORY",
              "SUPPLIER",
              "ITEM_KIND",
              "IDENTIFIER"
            ]
          },
          "scopeValue": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "shareBps": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "basis",
          "beneficiaryId",
          "beneficiaryKind",
          "feeBearer",
          "kind",
          "priority",
          "ruleId",
          "scopeKind",
          "scopeValue",
          "shareBps"
        ],
        "additionalProperties": false
      },
      "CommissionItemSource": {
        "type": "string",
        "enum": [
          "CHECKOUT",
          "GDS_IMPORT",
          "MANUAL",
          "FILE_IMPORT"
        ]
      },
      "CommissionTag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64
      },
      "CommissionAttachment": {
        "type": "object",
        "properties": {
          "attachmentId": {
            "type": "string",
            "minLength": 1
          },
          "contentType": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "downloadUrl": {
            "type": "string",
            "format": "uri"
          },
          "fileName": {
            "type": "string",
            "minLength": 1
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "uploadedByUserId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "attachmentId",
          "contentType",
          "createdAt",
          "downloadUrl",
          "fileName",
          "label",
          "sizeBytes",
          "uploadedByUserId"
        ],
        "additionalProperties": false
      },
      "CommissionIdentifierRef": {
        "type": "object",
        "properties": {
          "identifierId": {
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "type": "string",
            "minLength": 1
          },
          "number": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "identifierId",
          "kind",
          "number"
        ],
        "additionalProperties": false
      },
      "CommissionNote": {
        "type": "object",
        "properties": {
          "authorUserId": {
            "type": "string",
            "minLength": 1
          },
          "bodyMarkdown": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "noteId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "authorUserId",
          "bodyMarkdown",
          "createdAt",
          "noteId"
        ],
        "additionalProperties": false
      },
      "CommissionItemRevision": {
        "type": "object",
        "properties": {
          "actorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "changedFields": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "array",
              "prefixItems": [
                {},
                {}
              ]
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "reason": {
            "type": "string",
            "minLength": 1
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "actorUserId",
          "changedFields",
          "createdAt",
          "reason",
          "version"
        ],
        "additionalProperties": false
      },
      "CommissionItemSummary": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "agingBucket": {
            "$ref": "#/components/schemas/AgingBucket"
          },
          "balanceMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "bookedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "category": {
            "$ref": "#/components/schemas/CommissionCategory"
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "collectedByNicer": {
            "type": "boolean"
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "daysPastDue": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "dueOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "externalBookingId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "grossMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "isCommissionable": {
            "type": "boolean"
          },
          "isFlagged": {
            "type": "boolean"
          },
          "isOverdue": {
            "type": "boolean"
          },
          "kind": {
            "$ref": "#/components/schemas/CommissionItemKind"
          },
          "lastReceivedOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "needsReview": {
            "type": "boolean"
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "orderId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentStatus": {
            "$ref": "#/components/schemas/CommissionPaymentStatus"
          },
          "percentPaid": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "receivingCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "$ref": "#/components/schemas/CommissionItemSource"
          },
          "supplier": {
            "type": "object",
            "properties": {
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "supplierId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "verified": {
                "type": "boolean"
              }
            },
            "required": [
              "name",
              "supplierId",
              "verified"
            ],
            "additionalProperties": false
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "advisorUserId",
          "agingBucket",
          "balanceMinor",
          "bookedOn",
          "category",
          "clientName",
          "collectedByNicer",
          "commissionItemId",
          "companyName",
          "confirmationNumber",
          "currency",
          "daysPastDue",
          "dueOn",
          "expectedMinor",
          "externalBookingId",
          "grossMinor",
          "isCommissionable",
          "isFlagged",
          "isOverdue",
          "kind",
          "lastReceivedOn",
          "needsReview",
          "number",
          "orderId",
          "paymentStatus",
          "percentPaid",
          "providerLocator",
          "receivedMinor",
          "receivingCompanyName",
          "source",
          "supplier",
          "tags",
          "travelEnd",
          "travelStart",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "CreateOrderResponse": {
        "type": "object",
        "properties": {
          "airPlanningFeeMinor": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 100000000,
            "description": "Air planning fee in USD cents for the whole reservation."
          },
          "providerObservation": {
            "type": "object",
            "properties": {
              "observedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "normalizationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "evidence": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "ticketed": {
                    "type": "boolean"
                  },
                  "cancelable": {
                    "type": "boolean"
                  },
                  "sourceDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "createdAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "retrievedAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "retentionEndsOn": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "creator": {
                    "type": "object",
                    "properties": {
                      "supplierCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "officeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "homeOfficeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "userCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "agencyIataNumber": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "additionalProperties": false
                  },
                  "updater": {
                    "type": "object",
                    "properties": {
                      "supplierCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "officeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "homeOfficeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "userCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "agencyIataNumber": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "additionalProperties": false
                  },
                  "updateCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "contacts": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "givenName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "middleName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "surname": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "emails": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 320
                          }
                        },
                        "phones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "faxes": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "emergencyPhones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "profiles": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "travelers": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "givenName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "middleName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "surname": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "emails": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 320
                          }
                        },
                        "phones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "faxes": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "emergencyPhones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "sourceReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "nameReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "passengerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "birthDate": {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                        },
                        "gender": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "guaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "unresolvedPaymentMethodIndices": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "loyaltyPrograms": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LoyaltyProgram"
                          }
                        },
                        "identityDocuments": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "issuedOn": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "expiresOn": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "issuingCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "citizenshipCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "residenceCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "hostCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "placeOfIssue": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "visaType": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "passportType": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "primaryHolder": {
                                "type": "boolean"
                              },
                              "givenName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "middleName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "surname": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "gender": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "destinationAddress": {
                                "$ref": "#/components/schemas/ReservationAddress"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fares": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "recordTypeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "recordTypeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "pricedTravelerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "requestedTravelerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "createdAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "purchaseDeadline": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "validPricing": {
                          "type": "boolean"
                        },
                        "negotiated": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "originalMoney": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "taxes": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "unconvertedAmount": {
                                "type": "string",
                                "maxLength": 80,
                                "pattern": "^-?\\d+(?:\\.\\d+)?$"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "calculationLine": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "tourCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "components": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "scope": {
                                "$ref": "#/components/schemas/ReservationAssociation"
                              },
                              "fareBasis": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "accountCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "programCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "programName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandAttributes": {
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000
                                }
                              },
                              "currentItinerary": {
                                "type": "boolean"
                              },
                              "baseAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "checkedBaggage": {
                                "type": "object",
                                "properties": {
                                  "maximumPieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "totalWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "pieces": {
                                    "maxItems": 100,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "pieces": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "maximumWeightKilograms": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumWeightPounds": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumSizeCentimeters": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumSizeInches": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "description": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2000
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "scope"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "bundledServices": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fareRules": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "passengerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cancelable": {
                          "type": "boolean"
                        },
                        "changeable": {
                          "type": "boolean"
                        },
                        "refundable": {
                          "type": "boolean"
                        },
                        "exchangePenalties": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "applicability": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "conditionsApply": {
                                "type": "boolean"
                              },
                              "hasNoShowCost": {
                                "type": "boolean"
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "noShowAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "refundPenalties": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "applicability": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "conditionsApply": {
                                "type": "boolean"
                              },
                              "hasNoShowCost": {
                                "type": "boolean"
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "noShowAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "documents": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "ELECTRONIC_TICKET",
                            "NON_ELECTRONIC_TICKET",
                            "ANCILLARY_DOCUMENT",
                            "OTHER"
                          ]
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "issuedAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "bundled": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "coupons": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "segmentReference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "number": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "status": {
                                "type": "object",
                                "properties": {
                                  "state": {
                                    "default": "UNKNOWN",
                                    "type": "string",
                                    "enum": [
                                      "CONFIRMED",
                                      "PENDING",
                                      "CANCELLED",
                                      "ISSUED",
                                      "VOIDED",
                                      "REFUNDED",
                                      "USED",
                                      "EXCHANGED",
                                      "OPEN",
                                      "UNKNOWN"
                                    ]
                                  },
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "kind",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "ancillaries": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "vendorCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "subcode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "categoryCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "categoryName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "applicability": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "documentReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "refundable": {
                          "type": "boolean"
                        },
                        "commissionable": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "taxes": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "unconvertedAmount": {
                                "type": "string",
                                "maxLength": 80,
                                "pattern": "^-?\\d+(?:\\.\\d+)?$"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "seats": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "characteristics": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "number"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "meals": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "segments": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "const": "FLIGHT"
                        },
                        "sourceType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "createdAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "supplierConfirmation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "past": {
                          "type": "boolean"
                        },
                        "departure": {
                          "type": "object",
                          "properties": {
                            "airportCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scheduledAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "updatedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "terminalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "terminalName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "gate": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "arrival": {
                          "type": "object",
                          "properties": {
                            "airportCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scheduledAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "updatedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "terminalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "terminalName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "gate": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "aircraftCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "aircraftName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingCarrierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingCarrierName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingFlightNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingCarrierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingCarrierName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingFlightNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cabinCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cabinName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "bookingClass": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "fareBasis": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "seats": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "distanceMiles": {
                          "type": "number",
                          "minimum": 0
                        },
                        "durationMinutes": {
                          "type": "number",
                          "minimum": 0
                        },
                        "hiddenStops": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "airportCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "arrivalAt": {
                                "$ref": "#/components/schemas/ReservationTimestamp"
                              },
                              "departureAt": {
                                "$ref": "#/components/schemas/ReservationTimestamp"
                              },
                              "durationMinutes": {
                                "type": "number",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "identityDocuments": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "status": {
                                "type": "object",
                                "properties": {
                                  "state": {
                                    "default": "UNKNOWN",
                                    "type": "string",
                                    "enum": [
                                      "CONFIRMED",
                                      "PENDING",
                                      "CANCELLED",
                                      "ISSUED",
                                      "VOIDED",
                                      "REFUNDED",
                                      "USED",
                                      "EXCHANGED",
                                      "OPEN",
                                      "UNKNOWN"
                                    ]
                                  },
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "reference"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "journeys": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "departureAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "segmentCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "durationMinutes": {
                          "type": "number",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "baggage": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "CHECKED",
                            "CABIN",
                            "OTHER"
                          ]
                        },
                        "allowance": {
                          "type": "object",
                          "properties": {
                            "maximumPieces": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalWeightKilograms": {
                              "type": "number",
                              "minimum": 0
                            },
                            "pieces": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "pieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "maximumWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumWeightPounds": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeCentimeters": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeInches": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "charges": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "pieces": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maximumWeightKilograms": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumWeightPounds": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumSizeCentimeters": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumSizeInches": {
                                "type": "number",
                                "minimum": 0
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "checkInOnly": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "specialRequests": {
                    "default": [],
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "messageOmitted": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "code"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "guarantees": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "CARD",
                            "CASH",
                            "CHECK",
                            "AGENCY",
                            "OTHER",
                            "UNKNOWN"
                          ]
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "useTypes": {
                          "maxItems": 30,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "tripTypes": {
                          "maxItems": 30,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "linkedGuaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expiresYearMonth": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9]{4}-(?<month>0[1-9]|1[0-2])$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "holderName": {
                              "description": "The name on the card. Only the order's payer and Nicer staff get it.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "last4": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9]{4}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "expiresYearMonth",
                            "last4"
                          ],
                          "additionalProperties": false
                        },
                        "holder": {
                          "description": "The card holder's name, address, emails and phones. Only the order's payer and Nicer staff get it.",
                          "type": "object",
                          "properties": {
                            "givenName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "middleName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "surname": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "address": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "emails": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 320
                              }
                            },
                            "phones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "faxes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "emergencyPhones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "approval": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "requestedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "expiresAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "history": {
                    "default": [],
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "SEGMENT",
                            "SERVICE",
                            "ACCOUNTING",
                            "CREATED",
                            "UPDATED",
                            "TICKETING",
                            "RETENTION",
                            "OTHER"
                          ]
                        },
                        "occurredAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "confirmation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "documentReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "fareApplicationType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "paymentType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "invoiceReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "guaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "cardLast4": {
                          "type": "string",
                          "pattern": "^[0-9]{4}$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "messageOmitted": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "unconvertedAmount": {
                          "type": "string",
                          "maxLength": 80,
                          "pattern": "^-?\\d+(?:\\.\\d+)?$"
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "taxAmount": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency",
                            "totalMinor"
                          ],
                          "additionalProperties": false
                        },
                        "unconvertedTaxAmount": {
                          "type": "string",
                          "maxLength": 80,
                          "pattern": "^-?\\d+(?:\\.\\d+)?$"
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "start": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "end": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "startAddress": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "endAddress": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "totals": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "FLIGHT",
                            "FLIGHT_CURRENT",
                            "HOTEL",
                            "CAR_RENTAL",
                            "ANCILLARY",
                            "RESERVATION"
                          ]
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "kind",
                        "scope",
                        "money"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "version",
                  "contacts",
                  "profiles",
                  "travelers",
                  "fares",
                  "fareRules",
                  "documents",
                  "ancillaries",
                  "seats",
                  "meals",
                  "segments",
                  "journeys",
                  "baggage",
                  "specialRequests",
                  "guarantees",
                  "history",
                  "totals"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "observedAt",
              "recordedAt",
              "normalizationVersion",
              "evidence"
            ],
            "additionalProperties": false
          },
          "canSaveCard": {
            "description": "True when the caller may authorize the card they pay with to the order's advisor: a traveler-side payer on an order that has an advisor.",
            "type": "boolean"
          },
          "saveCardConsentCopy": {
            "description": "The exact statement the payer accepts to authorize the card to the order's advisor, by name, and their agency. Present only when canSaveCard is true.",
            "type": "string",
            "minLength": 1
          },
          "viewerRole": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "GUEST",
              "PAYER",
              "STAFF",
              "TRAVELER"
            ]
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "SUBMIT_CHECKOUT",
                "CREATE_PAYMENT_LINK",
                "CONFIRM_NICER_PAYMENT",
                "PAY",
                "CANCEL",
                "REVOKE_PAYMENT_LINK",
                "RECORD_EXTERNAL_PAYMENT"
              ]
            }
          },
          "bookingSelectionId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "cancellation": {
            "type": "object",
            "properties": {
              "allowed": {
                "type": "boolean"
              },
              "estimatedPenalty": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Money"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "CANCEL_BOOKING",
                  "NONE",
                  "RELEASE_HOLD"
                ]
              },
              "policy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/QuotePolicy"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "allowed",
              "estimatedPenalty",
              "kind",
              "policy"
            ],
            "additionalProperties": false
          },
          "checkoutIntent": {
            "description": "The original checkout choice: HOLD reserves to pay later; BOOK requests immediate booking and ticketing. Null or absent means the choice was not recorded; never infer it from payment terms or reservation state.",
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "HOLD",
                  "BOOK"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "checkoutSessionExpiresAt": {
            "description": "Expiry of the caller's secure payment access, independent of the quote and airline hold deadlines.",
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "commercialSnapshot": {
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "committedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currentProductSnapshot": {
            "$ref": "#/components/schemas/OrderProductSnapshot"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "externalPayments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "$ref": "#/components/schemas/Money"
                },
                "externalPaymentId": {
                  "type": "string",
                  "minLength": 1
                },
                "paidAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "paymentMethod": {
                  "type": "string",
                  "minLength": 1
                },
                "providerReference": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "receiptAttached": {
                  "type": "boolean"
                },
                "recordedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "RECORDED",
                    "REVERSED"
                  ]
                }
              },
              "required": [
                "amount",
                "externalPaymentId",
                "paidAt",
                "paymentMethod",
                "providerReference",
                "receiptAttached",
                "recordedAt",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "flight": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "changes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "changeId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "currentValue": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "detectedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "SCHEDULE",
                            "TERMINAL",
                            "EQUIPMENT",
                            "MARKETING_CARRIER",
                            "OPERATING_CARRIER",
                            "FLIGHT_NUMBER",
                            "ROUTE",
                            "CABIN_OR_BOOKING_CLASS",
                            "STATUS_OR_CANCELLATION"
                          ]
                        },
                        "legId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "previousValue": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "version": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "changeId",
                        "currentValue",
                        "detectedAt",
                        "kind",
                        "legId",
                        "previousValue",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "legs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "aircraftCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "arrivalAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "arrivalTerminal": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "companyName": {
                          "type": "string",
                          "minLength": 1
                        },
                        "currentVersion": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "departureAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "departureTerminal": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "destinationAirport": {
                          "$ref": "#/components/schemas/AirportCode"
                        },
                        "legId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "marketingCarrierCode": {
                          "$ref": "#/components/schemas/CarrierCode"
                        },
                        "marketingFlightNumber": {
                          "type": "string",
                          "minLength": 1
                        },
                        "operatingCarrierCode": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/CarrierCode"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "operatingFlightNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "originAirport": {
                          "$ref": "#/components/schemas/AirportCode"
                        },
                        "sequence": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "aircraftCode",
                        "arrivalAt",
                        "arrivalTerminal",
                        "companyName",
                        "currentVersion",
                        "departureAt",
                        "departureTerminal",
                        "destinationAirport",
                        "legId",
                        "marketingCarrierCode",
                        "marketingFlightNumber",
                        "operatingCarrierCode",
                        "operatingFlightNumber",
                        "orderId",
                        "originAirport",
                        "sequence",
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "validatingCarrier": {
                    "description": "The alternate issuing airline the checkout chose for this flight's ticket. Absent means the provider issues it on its default.",
                    "$ref": "#/components/schemas/CarrierCode"
                  }
                },
                "required": [
                  "changes",
                  "legs"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "fulfillment": {
            "type": "object",
            "properties": {
              "agencyTicketing": {
                "type": "object",
                "properties": {
                  "queuedAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "queuedAt"
                ],
                "additionalProperties": false
              },
              "issuedDocuments": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrderFulfillment"
                }
              },
              "requiredDocuments": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "state": {
                "$ref": "#/components/schemas/FulfillmentState"
              }
            },
            "required": [
              "issuedDocuments",
              "items",
              "requiredDocuments",
              "state"
            ],
            "additionalProperties": false
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "notifyTravelers": {
            "description": "False when the checkout asked for this order's emails to reach its advisor alone, not its travelers or payer. Absent means they reach the travelers too.",
            "type": "boolean"
          },
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "orderVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "participantRequirements": {
            "$ref": "#/components/schemas/ParticipantRequirements"
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "completedFields": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ParticipantField"
                  }
                },
                "displayName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "emailMasked": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "hotelMembership": {
                  "description": "The hotel loyalty membership used for this guest, with a masked number.",
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HotelMembershipSummary"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "participantId": {
                  "type": "string",
                  "minLength": 1
                },
                "phone": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phoneMasked": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "DRIVER",
                    "GUEST",
                    "INSURED",
                    "PAYER",
                    "TRAVELER"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "COMPLETE",
                    "INCOMPLETE"
                  ]
                },
                "travelerId": {
                  "description": "The CRM traveler this participant was booked from, or null when the details were typed in or came from the provider.",
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "completedFields",
                "displayName",
                "emailMasked",
                "participantId",
                "phoneMasked",
                "role",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "payment": {
            "type": "object",
            "properties": {
              "latestAttempt": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PaymentAttempt"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "methods": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PaymentMethodSummary"
                },
                "description": "The saved cards the caller may pay this order with, each with its paymentMethodId; empty for a caller who may only pay with a new card."
              },
              "newAttemptAllowed": {
                "type": "boolean"
              },
              "presentation": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "NONE"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "STRIPE_PAYMENT_ELEMENT"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "PROVIDER_CARD_FORM"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "message": {
                        "type": "string",
                        "minLength": 1
                      },
                      "type": {
                        "type": "string",
                        "const": "WAITING_PROVIDER"
                      }
                    },
                    "required": [
                      "message",
                      "type"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "NICER_CHARGE",
                  "PROVIDER_GUARANTEE",
                  "PROVIDER_PAYMENT"
                ]
              }
            },
            "required": [
              "latestAttempt",
              "methods",
              "newAttemptAllowed",
              "presentation",
              "purpose"
            ],
            "additionalProperties": false
          },
          "paymentState": {
            "$ref": "#/components/schemas/PaymentState"
          },
          "paymentTerms": {
            "$ref": "#/components/schemas/PaymentTerms"
          },
          "pollAfterMs": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "productSnapshot": {
            "$ref": "#/components/schemas/OrderProductSnapshot"
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ]
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerProductId": {
            "type": "string",
            "minLength": 1
          },
          "quoteId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "reservation": {
            "type": "object",
            "properties": {
              "holdExpiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ticketingDeadlines": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReservationTimestamp"
                }
              },
              "observation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "isCancelable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isTicketed": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "observedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      "statuses": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "itemId": {
                              "type": "string",
                              "minLength": 1
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "FLIGHT",
                                "HOTEL",
                                "TICKET"
                              ]
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "code",
                            "itemId",
                            "kind",
                            "name"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "isCancelable",
                      "isTicketed",
                      "observedAt",
                      "statuses"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paymentDeadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "providerLocator": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "refusal": {
                "description": "Why the airline refused to make the flight's reservation, in the traveler's words; null unless it did. The order can't be paid: renew the checkout or search again.",
                "examples": [
                  {
                    "code": "SABRE_UNAVAILABLE",
                    "message": "This fare is no longer available. Please search again."
                  }
                ],
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "minLength": 1
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "$ref": "#/components/schemas/ReservationState"
              },
              "supplierConfirmations": {
                "description": "Each airline's own locator for this reservation, the code its website and desks look up. `providerLocator` is the GDS's. Absent until the airline has answered.",
                "examples": [
                  [
                    {
                      "marketingCarrierCode": "AA",
                      "supplierConfirmation": "XKTRPL"
                    }
                  ]
                ],
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "marketingCarrierCode": {
                      "$ref": "#/components/schemas/CarrierCode"
                    },
                    "supplierConfirmation": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "required": [
                    "marketingCarrierCode",
                    "supplierConfirmation"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "holdExpiresAt",
              "observation",
              "paymentDeadline",
              "providerLocator",
              "state"
            ],
            "additionalProperties": false
          },
          "reservationState": {
            "$ref": "#/components/schemas/ReservationState"
          },
          "specialRequest": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "termsDigest": {
            "$ref": "#/components/schemas/TermsDigest"
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "minLength": 1
                },
                "occurredAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "summary": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "code",
                "occurredAt",
                "summary"
              ],
              "additionalProperties": false
            }
          },
          "travelReferenceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "paymentLink": {
            "type": "object",
            "properties": {
              "expiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paymentUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "expiresAt",
              "paymentUrl"
            ],
            "additionalProperties": false
          },
          "tripItineraryId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "allowedActions",
          "bookingSelectionId",
          "cancellation",
          "commercialSnapshot",
          "committedAt",
          "companyName",
          "createdAt",
          "currentProductSnapshot",
          "expiresAt",
          "externalPayments",
          "flight",
          "fulfillment",
          "itineraryItemId",
          "message",
          "orderId",
          "orderVersion",
          "participantRequirements",
          "participants",
          "payment",
          "paymentState",
          "paymentTerms",
          "pollAfterMs",
          "priceSnapshot",
          "productSnapshot",
          "productType",
          "providerKey",
          "providerProductId",
          "quoteId",
          "reservation",
          "reservationState",
          "status",
          "termsDigest",
          "timeline",
          "travelReferenceId",
          "travelersTripId",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "OrderProductSnapshot": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/BookingProductSnapshot"
          },
          {
            "$ref": "#/components/schemas/DirectProductSnapshot"
          }
        ]
      },
      "DirectProductSnapshot": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "kind": {
            "type": "string",
            "enum": [
              "EXTRA_PAYMENT",
              "PLANNING_FEE"
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "productId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "description",
          "kind",
          "name",
          "productId"
        ],
        "additionalProperties": false
      },
      "OrderFulfillment": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "externalReference": {
                "type": "string",
                "minLength": 1
              },
              "fulfillmentId": {
                "type": "string",
                "minLength": 1
              },
              "issuedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "TICKET"
              },
              "passengerReference": {
                "type": "string",
                "minLength": 1
              },
              "ticketNumber": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "externalReference",
              "fulfillmentId",
              "issuedAt",
              "kind",
              "passengerReference",
              "ticketNumber"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "externalReference": {
                "type": "string",
                "minLength": 1
              },
              "fulfillmentId": {
                "type": "string",
                "minLength": 1
              },
              "issuedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "confirmationNumber": {
                "type": "string",
                "minLength": 1
              },
              "kind": {
                "type": "string",
                "const": "HOTEL_CONFIRMATION"
              }
            },
            "required": [
              "externalReference",
              "fulfillmentId",
              "issuedAt",
              "confirmationNumber",
              "kind"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "externalReference": {
                "type": "string",
                "minLength": 1
              },
              "fulfillmentId": {
                "type": "string",
                "minLength": 1
              },
              "issuedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "documentUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "POLICY"
              },
              "policyNumber": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "externalReference",
              "fulfillmentId",
              "issuedAt",
              "kind",
              "policyNumber"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "externalReference": {
                "type": "string",
                "minLength": 1
              },
              "fulfillmentId": {
                "type": "string",
                "minLength": 1
              },
              "issuedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "const": "VOUCHER"
              },
              "voucherReference": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "externalReference",
              "fulfillmentId",
              "issuedAt",
              "kind",
              "voucherReference"
            ],
            "additionalProperties": false
          }
        ]
      },
      "HotelMembershipSummary": {
        "type": "object",
        "properties": {
          "chainCode": {
            "type": "string",
            "pattern": "^[A-Z0-9]{2}$"
          },
          "programName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "maskedNumber": {
            "type": "string",
            "pattern": "^\\u2022\\u2022\\u2022\\u2022(?:[A-Za-z0-9-]{4})?$"
          }
        },
        "required": [
          "chainCode",
          "programName",
          "maskedNumber"
        ],
        "additionalProperties": false
      },
      "PaymentAttempt": {
        "type": "object",
        "properties": {
          "amount": {
            "$ref": "#/components/schemas/Money"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "nextAction": {
            "anyOf": [
              {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "clientSecret": {
                        "description": "Stripe's client secret, to finish the action (3-D Secure) in the browser. Only the payer gets it: the caller who submitted the payment, and on the order a caller on its pay flow (through the order's payment link or checkout session) or the signed-in user the order records as its payer.",
                        "type": "string",
                        "minLength": 1
                      },
                      "type": {
                        "type": "string",
                        "const": "CONFIRM_NICER_PAYMENT"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentAttemptId": {
            "type": "string",
            "minLength": 1
          },
          "purpose": {
            "type": "string",
            "enum": [
              "NICER_CHARGE",
              "PROVIDER_GUARANTEE",
              "PROVIDER_PAYMENT"
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "message": {
                    "type": "string",
                    "minLength": 1
                  },
                  "retryable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "code",
                  "message",
                  "retryable"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "REQUIRES_ACTION",
              "AUTHORIZED",
              "PROCESSING",
              "SUCCEEDED",
              "DECLINED",
              "UNKNOWN",
              "CANCELLED"
            ]
          },
          "usedMethod": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "brand": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "funding": {
                    "description": "Credit, debit or prepaid. Only the order's payer and Nicer staff get it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "last4": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "wallet": {
                    "description": "The wallet that paid (Apple Pay, Google Pay). Only the order's payer and Nicer staff get it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "brand",
                  "last4"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amount",
          "createdAt",
          "nextAction",
          "paymentAttemptId",
          "purpose",
          "reason",
          "status"
        ],
        "additionalProperties": false
      },
      "PaymentMethodSummary": {
        "type": "object",
        "properties": {
          "authorizations": {
            "default": [],
            "description": "The card's live TRIP and ADVISOR authorizations the caller may see: enough to pick the right client's card (when it was authorized, the trip it came from and its title, the recipient named, the CRM traveler it belongs to). Empty for a card that is only the caller's own.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "note": {
                  "description": "The advisor’s private note about this authorization, included on request when listing their own grants.",
                  "type": "string",
                  "maxLength": 100
                },
                "advisorName": {
                  "description": "The display name of the advisor the card is authorized to; null when it is unknown. Only the person who gave the authorization gets it: the advisor reading their own entry does not.",
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "advisorUserId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "ADVISOR: the advisor the card is authorized to. Null for TRIP."
                },
                "authorizedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "When consent was given; null when none was recorded."
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "TRIP",
                    "ADVISOR"
                  ],
                  "description": "TRIP: anyone working travelersTripId may use the card (an authorization given before advisor grants). ADVISOR: advisorUserId may use it for this client's purchases on any of their trips."
                },
                "recipientEmail": {
                  "description": "The recipient the advisor named on the link that collected the card; null when none was named or the card was authorized at payment. Only that advisor gets it.",
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "email",
                      "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "travelerId": {
                  "description": "ADVISOR: the CRM traveler whose card it is, the one the advisor sent the link to (named on the link, or the trip's traveler with the recipient's email). Absent or null when none was recorded: the link named or matched none, the card was authorized at payment, or before travelers were recorded. Only the advisor the card is authorized to gets it.",
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TravelerId"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "travelersTripId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "TRIP: the trip. ADVISOR: the trip the authorization came from (the trip the link was made from, or the paid order's trip); null when it came from none."
                },
                "tripTitle": {
                  "description": "The title of travelersTripId, so the advisor can tell which client's trip the card came from; null when the trip has no title or there is no trip. Only the advisor the card is authorized to gets it.",
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "advisorUserId",
                "authorizedAt",
                "kind",
                "travelersTripId"
              ],
              "additionalProperties": false
            }
          },
          "brand": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "expiry": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}-(?:0[1-9]|1[0-2])$"
              },
              {
                "type": "null"
              }
            ]
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "last4": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d{4}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentMethodId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "scopes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GrantScopeKind"
            }
          },
          "usable": {
            "type": "boolean"
          },
          "usableUntil": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "authorizations",
          "brand",
          "expiry",
          "label",
          "last4",
          "paymentMethodId",
          "scopes",
          "usable",
          "usableUntil"
        ],
        "additionalProperties": false
      },
      "TravelerId": {
        "type": "string",
        "minLength": 1,
        "maxLength": 64,
        "description": "The traveler's id in the CRM, e.g. TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T."
      },
      "GrantScopeKind": {
        "type": "string",
        "enum": [
          "USER",
          "TRIP",
          "ADVISOR"
        ]
      },
      "OrderOfferReview": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "PRICE_CHANGED"
          },
          "previousPrice": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "quote": {
            "$ref": "#/components/schemas/BookingQuote"
          },
          "termsChanged": {
            "type": "boolean"
          }
        },
        "required": [
          "status",
          "previousPrice",
          "quote",
          "termsChanged"
        ],
        "additionalProperties": false
      },
      "BookingQuote": {
        "type": "object",
        "properties": {
          "bookingSelectionId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "commercialSnapshot": {
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "participantRequirements": {
            "$ref": "#/components/schemas/ParticipantRequirements"
          },
          "paymentTerms": {
            "$ref": "#/components/schemas/PaymentTerms"
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "productSnapshot": {
            "$ref": "#/components/schemas/BookingProductSnapshot"
          },
          "productType": {
            "$ref": "#/components/schemas/ProductKind"
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerProductId": {
            "type": "string",
            "minLength": 1
          },
          "quoteId": {
            "type": "string",
            "minLength": 1
          },
          "searchId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ACTIVE",
              "CONSUMED",
              "EXPIRED",
              "INVALIDATED"
            ]
          },
          "termsDigest": {
            "$ref": "#/components/schemas/TermsDigest"
          },
          "travelReferenceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "bookingSelectionId",
          "commercialSnapshot",
          "createdAt",
          "expiresAt",
          "itineraryItemId",
          "offerReference",
          "participantRequirements",
          "paymentTerms",
          "priceSnapshot",
          "productSnapshot",
          "productType",
          "providerKey",
          "providerProductId",
          "quoteId",
          "searchId",
          "status",
          "termsDigest",
          "travelReferenceId",
          "travelersTripId"
        ],
        "additionalProperties": false
      },
      "Order": {
        "type": "object",
        "properties": {
          "airPlanningFeeMinor": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 100000000,
            "description": "Air planning fee in USD cents for the whole reservation."
          },
          "providerObservation": {
            "type": "object",
            "properties": {
              "observedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "normalizationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "evidence": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "ticketed": {
                    "type": "boolean"
                  },
                  "cancelable": {
                    "type": "boolean"
                  },
                  "sourceDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "createdAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "retrievedAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "retentionEndsOn": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "creator": {
                    "type": "object",
                    "properties": {
                      "supplierCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "officeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "homeOfficeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "userCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "agencyIataNumber": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "additionalProperties": false
                  },
                  "updater": {
                    "type": "object",
                    "properties": {
                      "supplierCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "officeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "homeOfficeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "userCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "agencyIataNumber": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "additionalProperties": false
                  },
                  "updateCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "contacts": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "givenName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "middleName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "surname": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "emails": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 320
                          }
                        },
                        "phones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "faxes": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "emergencyPhones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "profiles": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "travelers": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "givenName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "middleName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "surname": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "emails": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 320
                          }
                        },
                        "phones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "faxes": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "emergencyPhones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "sourceReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "nameReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "passengerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "birthDate": {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                        },
                        "gender": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "guaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "unresolvedPaymentMethodIndices": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "loyaltyPrograms": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LoyaltyProgram"
                          }
                        },
                        "identityDocuments": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "issuedOn": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "expiresOn": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "issuingCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "citizenshipCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "residenceCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "hostCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "placeOfIssue": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "visaType": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "passportType": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "primaryHolder": {
                                "type": "boolean"
                              },
                              "givenName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "middleName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "surname": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "gender": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "destinationAddress": {
                                "$ref": "#/components/schemas/ReservationAddress"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fares": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "recordTypeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "recordTypeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "pricedTravelerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "requestedTravelerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "createdAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "purchaseDeadline": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "validPricing": {
                          "type": "boolean"
                        },
                        "negotiated": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "originalMoney": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "taxes": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "unconvertedAmount": {
                                "type": "string",
                                "maxLength": 80,
                                "pattern": "^-?\\d+(?:\\.\\d+)?$"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "calculationLine": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "tourCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "components": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "scope": {
                                "$ref": "#/components/schemas/ReservationAssociation"
                              },
                              "fareBasis": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "accountCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "programCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "programName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandAttributes": {
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000
                                }
                              },
                              "currentItinerary": {
                                "type": "boolean"
                              },
                              "baseAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "checkedBaggage": {
                                "type": "object",
                                "properties": {
                                  "maximumPieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "totalWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "pieces": {
                                    "maxItems": 100,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "pieces": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "maximumWeightKilograms": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumWeightPounds": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumSizeCentimeters": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumSizeInches": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "description": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2000
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "scope"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "bundledServices": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fareRules": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "passengerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cancelable": {
                          "type": "boolean"
                        },
                        "changeable": {
                          "type": "boolean"
                        },
                        "refundable": {
                          "type": "boolean"
                        },
                        "exchangePenalties": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "applicability": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "conditionsApply": {
                                "type": "boolean"
                              },
                              "hasNoShowCost": {
                                "type": "boolean"
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "noShowAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "refundPenalties": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "applicability": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "conditionsApply": {
                                "type": "boolean"
                              },
                              "hasNoShowCost": {
                                "type": "boolean"
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "noShowAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "documents": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "ELECTRONIC_TICKET",
                            "NON_ELECTRONIC_TICKET",
                            "ANCILLARY_DOCUMENT",
                            "OTHER"
                          ]
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "issuedAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "bundled": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "coupons": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "segmentReference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "number": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "status": {
                                "type": "object",
                                "properties": {
                                  "state": {
                                    "default": "UNKNOWN",
                                    "type": "string",
                                    "enum": [
                                      "CONFIRMED",
                                      "PENDING",
                                      "CANCELLED",
                                      "ISSUED",
                                      "VOIDED",
                                      "REFUNDED",
                                      "USED",
                                      "EXCHANGED",
                                      "OPEN",
                                      "UNKNOWN"
                                    ]
                                  },
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "kind",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "ancillaries": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "vendorCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "subcode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "categoryCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "categoryName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "applicability": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "documentReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "refundable": {
                          "type": "boolean"
                        },
                        "commissionable": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "taxes": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "unconvertedAmount": {
                                "type": "string",
                                "maxLength": 80,
                                "pattern": "^-?\\d+(?:\\.\\d+)?$"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "seats": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "characteristics": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "number"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "meals": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "segments": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "const": "FLIGHT"
                        },
                        "sourceType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "createdAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "supplierConfirmation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "past": {
                          "type": "boolean"
                        },
                        "departure": {
                          "type": "object",
                          "properties": {
                            "airportCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scheduledAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "updatedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "terminalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "terminalName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "gate": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "arrival": {
                          "type": "object",
                          "properties": {
                            "airportCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scheduledAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "updatedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "terminalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "terminalName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "gate": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "aircraftCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "aircraftName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingCarrierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingCarrierName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingFlightNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingCarrierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingCarrierName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingFlightNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cabinCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cabinName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "bookingClass": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "fareBasis": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "seats": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "distanceMiles": {
                          "type": "number",
                          "minimum": 0
                        },
                        "durationMinutes": {
                          "type": "number",
                          "minimum": 0
                        },
                        "hiddenStops": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "airportCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "arrivalAt": {
                                "$ref": "#/components/schemas/ReservationTimestamp"
                              },
                              "departureAt": {
                                "$ref": "#/components/schemas/ReservationTimestamp"
                              },
                              "durationMinutes": {
                                "type": "number",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "identityDocuments": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "status": {
                                "type": "object",
                                "properties": {
                                  "state": {
                                    "default": "UNKNOWN",
                                    "type": "string",
                                    "enum": [
                                      "CONFIRMED",
                                      "PENDING",
                                      "CANCELLED",
                                      "ISSUED",
                                      "VOIDED",
                                      "REFUNDED",
                                      "USED",
                                      "EXCHANGED",
                                      "OPEN",
                                      "UNKNOWN"
                                    ]
                                  },
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "reference"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "journeys": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "departureAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "segmentCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "durationMinutes": {
                          "type": "number",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "baggage": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "CHECKED",
                            "CABIN",
                            "OTHER"
                          ]
                        },
                        "allowance": {
                          "type": "object",
                          "properties": {
                            "maximumPieces": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalWeightKilograms": {
                              "type": "number",
                              "minimum": 0
                            },
                            "pieces": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "pieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "maximumWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumWeightPounds": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeCentimeters": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeInches": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "charges": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "pieces": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maximumWeightKilograms": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumWeightPounds": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumSizeCentimeters": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumSizeInches": {
                                "type": "number",
                                "minimum": 0
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "checkInOnly": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "specialRequests": {
                    "default": [],
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "messageOmitted": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "code"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "guarantees": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "CARD",
                            "CASH",
                            "CHECK",
                            "AGENCY",
                            "OTHER",
                            "UNKNOWN"
                          ]
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "useTypes": {
                          "maxItems": 30,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "tripTypes": {
                          "maxItems": 30,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "linkedGuaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expiresYearMonth": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9]{4}-(?<month>0[1-9]|1[0-2])$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "holderName": {
                              "description": "The name on the card. Only the order's payer and Nicer staff get it.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "last4": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9]{4}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "expiresYearMonth",
                            "last4"
                          ],
                          "additionalProperties": false
                        },
                        "holder": {
                          "description": "The card holder's name, address, emails and phones. Only the order's payer and Nicer staff get it.",
                          "type": "object",
                          "properties": {
                            "givenName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "middleName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "surname": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "address": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "emails": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 320
                              }
                            },
                            "phones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "faxes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "emergencyPhones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "approval": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "requestedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "expiresAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "history": {
                    "default": [],
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "SEGMENT",
                            "SERVICE",
                            "ACCOUNTING",
                            "CREATED",
                            "UPDATED",
                            "TICKETING",
                            "RETENTION",
                            "OTHER"
                          ]
                        },
                        "occurredAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "confirmation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "documentReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "fareApplicationType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "paymentType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "invoiceReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "guaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "cardLast4": {
                          "type": "string",
                          "pattern": "^[0-9]{4}$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "messageOmitted": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "unconvertedAmount": {
                          "type": "string",
                          "maxLength": 80,
                          "pattern": "^-?\\d+(?:\\.\\d+)?$"
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "taxAmount": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency",
                            "totalMinor"
                          ],
                          "additionalProperties": false
                        },
                        "unconvertedTaxAmount": {
                          "type": "string",
                          "maxLength": 80,
                          "pattern": "^-?\\d+(?:\\.\\d+)?$"
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "start": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "end": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "startAddress": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "endAddress": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "totals": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "FLIGHT",
                            "FLIGHT_CURRENT",
                            "HOTEL",
                            "CAR_RENTAL",
                            "ANCILLARY",
                            "RESERVATION"
                          ]
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "kind",
                        "scope",
                        "money"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "version",
                  "contacts",
                  "profiles",
                  "travelers",
                  "fares",
                  "fareRules",
                  "documents",
                  "ancillaries",
                  "seats",
                  "meals",
                  "segments",
                  "journeys",
                  "baggage",
                  "specialRequests",
                  "guarantees",
                  "history",
                  "totals"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "observedAt",
              "recordedAt",
              "normalizationVersion",
              "evidence"
            ],
            "additionalProperties": false
          },
          "canSaveCard": {
            "description": "True when the caller may authorize the card they pay with to the order's advisor: a traveler-side payer on an order that has an advisor.",
            "type": "boolean"
          },
          "saveCardConsentCopy": {
            "description": "The exact statement the payer accepts to authorize the card to the order's advisor, by name, and their agency. Present only when canSaveCard is true.",
            "type": "string",
            "minLength": 1
          },
          "viewerRole": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "GUEST",
              "PAYER",
              "STAFF",
              "TRAVELER"
            ]
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "SUBMIT_CHECKOUT",
                "CREATE_PAYMENT_LINK",
                "CONFIRM_NICER_PAYMENT",
                "PAY",
                "CANCEL",
                "REVOKE_PAYMENT_LINK",
                "RECORD_EXTERNAL_PAYMENT"
              ]
            }
          },
          "bookingSelectionId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "cancellation": {
            "type": "object",
            "properties": {
              "allowed": {
                "type": "boolean"
              },
              "estimatedPenalty": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Money"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "CANCEL_BOOKING",
                  "NONE",
                  "RELEASE_HOLD"
                ]
              },
              "policy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/QuotePolicy"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "allowed",
              "estimatedPenalty",
              "kind",
              "policy"
            ],
            "additionalProperties": false
          },
          "checkoutIntent": {
            "description": "The original checkout choice: HOLD reserves to pay later; BOOK requests immediate booking and ticketing. Null or absent means the choice was not recorded; never infer it from payment terms or reservation state.",
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "HOLD",
                  "BOOK"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "checkoutSessionExpiresAt": {
            "description": "Expiry of the caller's secure payment access, independent of the quote and airline hold deadlines.",
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "commercialSnapshot": {
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "committedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currentProductSnapshot": {
            "$ref": "#/components/schemas/OrderProductSnapshot"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "externalPayments": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amount": {
                  "$ref": "#/components/schemas/Money"
                },
                "externalPaymentId": {
                  "type": "string",
                  "minLength": 1
                },
                "paidAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "paymentMethod": {
                  "type": "string",
                  "minLength": 1
                },
                "providerReference": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "receiptAttached": {
                  "type": "boolean"
                },
                "recordedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "RECORDED",
                    "REVERSED"
                  ]
                }
              },
              "required": [
                "amount",
                "externalPaymentId",
                "paidAt",
                "paymentMethod",
                "providerReference",
                "receiptAttached",
                "recordedAt",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "flight": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "changes": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "changeId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "currentValue": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "detectedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "SCHEDULE",
                            "TERMINAL",
                            "EQUIPMENT",
                            "MARKETING_CARRIER",
                            "OPERATING_CARRIER",
                            "FLIGHT_NUMBER",
                            "ROUTE",
                            "CABIN_OR_BOOKING_CLASS",
                            "STATUS_OR_CANCELLATION"
                          ]
                        },
                        "legId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "previousValue": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "version": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "changeId",
                        "currentValue",
                        "detectedAt",
                        "kind",
                        "legId",
                        "previousValue",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "legs": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "aircraftCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "arrivalAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "arrivalTerminal": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "companyName": {
                          "type": "string",
                          "minLength": 1
                        },
                        "currentVersion": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        "departureAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                        },
                        "departureTerminal": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "destinationAirport": {
                          "$ref": "#/components/schemas/AirportCode"
                        },
                        "legId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "marketingCarrierCode": {
                          "$ref": "#/components/schemas/CarrierCode"
                        },
                        "marketingFlightNumber": {
                          "type": "string",
                          "minLength": 1
                        },
                        "operatingCarrierCode": {
                          "anyOf": [
                            {
                              "$ref": "#/components/schemas/CarrierCode"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "operatingFlightNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "orderId": {
                          "type": "string",
                          "minLength": 1
                        },
                        "originAirport": {
                          "$ref": "#/components/schemas/AirportCode"
                        },
                        "sequence": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "status": {
                          "type": "string",
                          "minLength": 1
                        }
                      },
                      "required": [
                        "aircraftCode",
                        "arrivalAt",
                        "arrivalTerminal",
                        "companyName",
                        "currentVersion",
                        "departureAt",
                        "departureTerminal",
                        "destinationAirport",
                        "legId",
                        "marketingCarrierCode",
                        "marketingFlightNumber",
                        "operatingCarrierCode",
                        "operatingFlightNumber",
                        "orderId",
                        "originAirport",
                        "sequence",
                        "status"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "validatingCarrier": {
                    "description": "The alternate issuing airline the checkout chose for this flight's ticket. Absent means the provider issues it on its default.",
                    "$ref": "#/components/schemas/CarrierCode"
                  }
                },
                "required": [
                  "changes",
                  "legs"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "fulfillment": {
            "type": "object",
            "properties": {
              "agencyTicketing": {
                "type": "object",
                "properties": {
                  "queuedAt": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "queuedAt"
                ],
                "additionalProperties": false
              },
              "issuedDocuments": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "items": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/OrderFulfillment"
                }
              },
              "requiredDocuments": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "state": {
                "$ref": "#/components/schemas/FulfillmentState"
              }
            },
            "required": [
              "issuedDocuments",
              "items",
              "requiredDocuments",
              "state"
            ],
            "additionalProperties": false
          },
          "itineraryItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "notifyTravelers": {
            "description": "False when the checkout asked for this order's emails to reach its advisor alone, not its travelers or payer. Absent means they reach the travelers too.",
            "type": "boolean"
          },
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "orderVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "participantRequirements": {
            "$ref": "#/components/schemas/ParticipantRequirements"
          },
          "participants": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "completedFields": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ParticipantField"
                  }
                },
                "displayName": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "email": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "emailMasked": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "hotelMembership": {
                  "description": "The hotel loyalty membership used for this guest, with a masked number.",
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/HotelMembershipSummary"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "participantId": {
                  "type": "string",
                  "minLength": 1
                },
                "phone": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "phoneMasked": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "DRIVER",
                    "GUEST",
                    "INSURED",
                    "PAYER",
                    "TRAVELER"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "COMPLETE",
                    "INCOMPLETE"
                  ]
                },
                "travelerId": {
                  "description": "The CRM traveler this participant was booked from, or null when the details were typed in or came from the provider.",
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "completedFields",
                "displayName",
                "emailMasked",
                "participantId",
                "phoneMasked",
                "role",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "payment": {
            "type": "object",
            "properties": {
              "latestAttempt": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PaymentAttempt"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "methods": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/PaymentMethodSummary"
                },
                "description": "The saved cards the caller may pay this order with, each with its paymentMethodId; empty for a caller who may only pay with a new card."
              },
              "newAttemptAllowed": {
                "type": "boolean"
              },
              "presentation": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "NONE"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "STRIPE_PAYMENT_ELEMENT"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "const": "PROVIDER_CARD_FORM"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "message": {
                        "type": "string",
                        "minLength": 1
                      },
                      "type": {
                        "type": "string",
                        "const": "WAITING_PROVIDER"
                      }
                    },
                    "required": [
                      "message",
                      "type"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "NICER_CHARGE",
                  "PROVIDER_GUARANTEE",
                  "PROVIDER_PAYMENT"
                ]
              }
            },
            "required": [
              "latestAttempt",
              "methods",
              "newAttemptAllowed",
              "presentation",
              "purpose"
            ],
            "additionalProperties": false
          },
          "paymentState": {
            "$ref": "#/components/schemas/PaymentState"
          },
          "paymentTerms": {
            "$ref": "#/components/schemas/PaymentTerms"
          },
          "pollAfterMs": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "productSnapshot": {
            "$ref": "#/components/schemas/OrderProductSnapshot"
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ]
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerProductId": {
            "type": "string",
            "minLength": 1
          },
          "quoteId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "reservation": {
            "type": "object",
            "properties": {
              "holdExpiresAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "ticketingDeadlines": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ReservationTimestamp"
                }
              },
              "observation": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "isCancelable": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "isTicketed": {
                        "anyOf": [
                          {
                            "type": "boolean"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "observedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      "statuses": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "code": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "itemId": {
                              "type": "string",
                              "minLength": 1
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "FLIGHT",
                                "HOTEL",
                                "TICKET"
                              ]
                            },
                            "name": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "code",
                            "itemId",
                            "kind",
                            "name"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "isCancelable",
                      "isTicketed",
                      "observedAt",
                      "statuses"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "paymentDeadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "providerLocator": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "refusal": {
                "description": "Why the airline refused to make the flight's reservation, in the traveler's words; null unless it did. The order can't be paid: renew the checkout or search again.",
                "examples": [
                  {
                    "code": "SABRE_UNAVAILABLE",
                    "message": "This fare is no longer available. Please search again."
                  }
                ],
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "minLength": 1
                      },
                      "message": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "code",
                      "message"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "state": {
                "$ref": "#/components/schemas/ReservationState"
              },
              "supplierConfirmations": {
                "description": "Each airline's own locator for this reservation, the code its website and desks look up. `providerLocator` is the GDS's. Absent until the airline has answered.",
                "examples": [
                  [
                    {
                      "marketingCarrierCode": "AA",
                      "supplierConfirmation": "XKTRPL"
                    }
                  ]
                ],
                "minItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "marketingCarrierCode": {
                      "$ref": "#/components/schemas/CarrierCode"
                    },
                    "supplierConfirmation": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    }
                  },
                  "required": [
                    "marketingCarrierCode",
                    "supplierConfirmation"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "holdExpiresAt",
              "observation",
              "paymentDeadline",
              "providerLocator",
              "state"
            ],
            "additionalProperties": false
          },
          "reservationState": {
            "$ref": "#/components/schemas/ReservationState"
          },
          "specialRequest": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "termsDigest": {
            "$ref": "#/components/schemas/TermsDigest"
          },
          "timeline": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "minLength": 1
                },
                "occurredAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "summary": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "code",
                "occurredAt",
                "summary"
              ],
              "additionalProperties": false
            }
          },
          "travelReferenceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "allowedActions",
          "bookingSelectionId",
          "cancellation",
          "commercialSnapshot",
          "committedAt",
          "companyName",
          "createdAt",
          "currentProductSnapshot",
          "expiresAt",
          "externalPayments",
          "flight",
          "fulfillment",
          "itineraryItemId",
          "message",
          "orderId",
          "orderVersion",
          "participantRequirements",
          "participants",
          "payment",
          "paymentState",
          "paymentTerms",
          "pollAfterMs",
          "priceSnapshot",
          "productSnapshot",
          "productType",
          "providerKey",
          "providerProductId",
          "quoteId",
          "reservation",
          "reservationState",
          "status",
          "termsDigest",
          "timeline",
          "travelReferenceId",
          "travelersTripId",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "RecordedOrder": {
        "type": "object",
        "properties": {
          "entryMethod": {
            "type": "string",
            "enum": [
              "IMPORT",
              "MANUAL"
            ]
          },
          "bookingOrigin": {
            "type": "string",
            "enum": [
              "NICER",
              "EXTERNAL",
              "UNKNOWN"
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "orderVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "status": {
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "product": {
            "$ref": "#/components/schemas/RecordedProduct"
          },
          "amount": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "currency": {
                    "type": "string",
                    "pattern": "^[A-Z]{3}$"
                  },
                  "totalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "currency",
                  "totalMinor"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "providerObservation": {
            "type": "object",
            "properties": {
              "observedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "recordedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "normalizationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "evidence": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "number",
                    "const": 1
                  },
                  "ticketed": {
                    "type": "boolean"
                  },
                  "cancelable": {
                    "type": "boolean"
                  },
                  "sourceDigest": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  },
                  "createdAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "updatedAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "retrievedAt": {
                    "$ref": "#/components/schemas/ReservationTimestamp"
                  },
                  "retentionEndsOn": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "creator": {
                    "type": "object",
                    "properties": {
                      "supplierCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "officeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "homeOfficeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "userCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "agencyIataNumber": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "additionalProperties": false
                  },
                  "updater": {
                    "type": "object",
                    "properties": {
                      "supplierCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "officeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "homeOfficeId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "userCode": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      },
                      "agencyIataNumber": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 255
                      }
                    },
                    "additionalProperties": false
                  },
                  "updateCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "contacts": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "givenName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "middleName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "surname": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "emails": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 320
                          }
                        },
                        "phones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "faxes": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "emergencyPhones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "profiles": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "type": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "travelers": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "givenName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "middleName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "surname": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "displayName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "emails": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 320
                          }
                        },
                        "phones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "faxes": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "emergencyPhones": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "label": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "required": [
                              "number"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "sourceReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "nameReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "passengerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "birthDate": {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                        },
                        "gender": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "guaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "unresolvedPaymentMethodIndices": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "loyaltyPrograms": {
                          "maxItems": 50,
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/LoyaltyProgram"
                          }
                        },
                        "identityDocuments": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "number": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "issuedOn": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "expiresOn": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "issuingCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "citizenshipCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "residenceCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "hostCountryCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "placeOfIssue": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "visaType": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "passportType": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "primaryHolder": {
                                "type": "boolean"
                              },
                              "givenName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "middleName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "surname": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "birthDate": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "gender": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "destinationAddress": {
                                "$ref": "#/components/schemas/ReservationAddress"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fares": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "recordTypeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "recordTypeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "pricedTravelerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "requestedTravelerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "createdAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "purchaseDeadline": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "validPricing": {
                          "type": "boolean"
                        },
                        "negotiated": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "originalMoney": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "taxes": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "unconvertedAmount": {
                                "type": "string",
                                "maxLength": 80,
                                "pattern": "^-?\\d+(?:\\.\\d+)?$"
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "calculationLine": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "tourCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "components": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "scope": {
                                "$ref": "#/components/schemas/ReservationAssociation"
                              },
                              "fareBasis": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "accountCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "programCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "programName": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "brandAttributes": {
                                "maxItems": 100,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 2000
                                }
                              },
                              "currentItinerary": {
                                "type": "boolean"
                              },
                              "baseAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "checkedBaggage": {
                                "type": "object",
                                "properties": {
                                  "maximumPieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "totalWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "pieces": {
                                    "maxItems": 100,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "pieces": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 9007199254740991
                                        },
                                        "maximumWeightKilograms": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumWeightPounds": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumSizeCentimeters": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "maximumSizeInches": {
                                          "type": "number",
                                          "minimum": 0
                                        },
                                        "description": {
                                          "type": "string",
                                          "minLength": 1,
                                          "maxLength": 2000
                                        }
                                      },
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "scope"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "bundledServices": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "type": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "quantity": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "fareRules": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "passengerType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cancelable": {
                          "type": "boolean"
                        },
                        "changeable": {
                          "type": "boolean"
                        },
                        "refundable": {
                          "type": "boolean"
                        },
                        "exchangePenalties": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "applicability": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "conditionsApply": {
                                "type": "boolean"
                              },
                              "hasNoShowCost": {
                                "type": "boolean"
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "noShowAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "refundPenalties": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "applicability": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "conditionsApply": {
                                "type": "boolean"
                              },
                              "hasNoShowCost": {
                                "type": "boolean"
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "noShowAmount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "documents": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "ELECTRONIC_TICKET",
                            "NON_ELECTRONIC_TICKET",
                            "ANCILLARY_DOCUMENT",
                            "OTHER"
                          ]
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "issuedAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "bundled": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "coupons": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "segmentReference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "number": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "status": {
                                "type": "object",
                                "properties": {
                                  "state": {
                                    "default": "UNKNOWN",
                                    "type": "string",
                                    "enum": [
                                      "CONFIRMED",
                                      "PENDING",
                                      "CANCELLED",
                                      "ISSUED",
                                      "VOIDED",
                                      "REFUNDED",
                                      "USED",
                                      "EXCHANGED",
                                      "OPEN",
                                      "UNKNOWN"
                                    ]
                                  },
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "kind",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "ancillaries": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "vendorCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "subcode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "categoryCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "categoryName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "applicability": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "source": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "documentReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "refundable": {
                          "type": "boolean"
                        },
                        "commissionable": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "taxes": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "code": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "unconvertedAmount": {
                                "type": "string",
                                "maxLength": 80,
                                "pattern": "^-?\\d+(?:\\.\\d+)?$"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "seats": {
                    "default": [],
                    "maxItems": 1000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "number": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "characteristics": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "number"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "meals": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "segments": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "const": "FLIGHT"
                        },
                        "sourceType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "createdAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "supplierConfirmation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "past": {
                          "type": "boolean"
                        },
                        "departure": {
                          "type": "object",
                          "properties": {
                            "airportCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scheduledAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "updatedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "terminalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "terminalName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "gate": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "arrival": {
                          "type": "object",
                          "properties": {
                            "airportCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "scheduledAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "updatedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "terminalCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "terminalName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "gate": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "aircraftCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "aircraftName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingCarrierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingCarrierName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "marketingFlightNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingCarrierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingCarrierName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "operatingFlightNumber": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cabinCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "cabinName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "bookingClass": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "fareBasis": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "seats": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "distanceMiles": {
                          "type": "number",
                          "minimum": 0
                        },
                        "durationMinutes": {
                          "type": "number",
                          "minimum": 0
                        },
                        "hiddenStops": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "airportCode": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "arrivalAt": {
                                "$ref": "#/components/schemas/ReservationTimestamp"
                              },
                              "departureAt": {
                                "$ref": "#/components/schemas/ReservationTimestamp"
                              },
                              "durationMinutes": {
                                "type": "number",
                                "minimum": 0
                              }
                            },
                            "additionalProperties": false
                          }
                        },
                        "identityDocuments": {
                          "maxItems": 500,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "reference": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              },
                              "status": {
                                "type": "object",
                                "properties": {
                                  "state": {
                                    "default": "UNKNOWN",
                                    "type": "string",
                                    "enum": [
                                      "CONFIRMED",
                                      "PENDING",
                                      "CANCELLED",
                                      "ISSUED",
                                      "VOIDED",
                                      "REFUNDED",
                                      "USED",
                                      "EXCHANGED",
                                      "OPEN",
                                      "UNKNOWN"
                                    ]
                                  },
                                  "code": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "name": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "state"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "reference"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "journeys": {
                    "default": [],
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "departureAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "segmentCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "durationMinutes": {
                          "type": "number",
                          "minimum": 0
                        }
                      },
                      "required": [
                        "reference",
                        "scope"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "baggage": {
                    "default": [],
                    "maxItems": 500,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "CHECKED",
                            "CABIN",
                            "OTHER"
                          ]
                        },
                        "allowance": {
                          "type": "object",
                          "properties": {
                            "maximumPieces": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalWeightKilograms": {
                              "type": "number",
                              "minimum": 0
                            },
                            "pieces": {
                              "maxItems": 100,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "pieces": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "maximumWeightKilograms": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumWeightPounds": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeCentimeters": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "maximumSizeInches": {
                                    "type": "number",
                                    "minimum": 0
                                  },
                                  "description": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 2000
                                  }
                                },
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "charges": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "pieces": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              },
                              "maximumWeightKilograms": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumWeightPounds": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumSizeCentimeters": {
                                "type": "number",
                                "minimum": 0
                              },
                              "maximumSizeInches": {
                                "type": "number",
                                "minimum": 0
                              },
                              "description": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 2000
                              },
                              "amount": {
                                "type": "object",
                                "properties": {
                                  "currency": {
                                    "type": "string",
                                    "pattern": "^[A-Z]{3}$"
                                  },
                                  "totalMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  }
                                },
                                "required": [
                                  "currency",
                                  "totalMinor"
                                ],
                                "additionalProperties": false
                              },
                              "checkInOnly": {
                                "type": "boolean"
                              }
                            },
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "specialRequests": {
                    "default": [],
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "messageOmitted": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "code"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "guarantees": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "CARD",
                            "CASH",
                            "CHECK",
                            "AGENCY",
                            "OTHER",
                            "UNKNOWN"
                          ]
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeName": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "useTypes": {
                          "maxItems": 30,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "tripTypes": {
                          "maxItems": 30,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "linkedGuaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "card": {
                          "type": "object",
                          "properties": {
                            "brand": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "expiresYearMonth": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9]{4}-(?<month>0[1-9]|1[0-2])$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "holderName": {
                              "description": "The name on the card. Only the order's payer and Nicer staff get it.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 255
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "last4": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[0-9]{4}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "brand",
                            "expiresYearMonth",
                            "last4"
                          ],
                          "additionalProperties": false
                        },
                        "holder": {
                          "description": "The card holder's name, address, emails and phones. Only the order's payer and Nicer staff get it.",
                          "type": "object",
                          "properties": {
                            "givenName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "middleName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "surname": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "displayName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "address": {
                              "$ref": "#/components/schemas/ReservationAddress"
                            },
                            "emails": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 320
                              }
                            },
                            "phones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "faxes": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 255
                              }
                            },
                            "emergencyPhones": {
                              "maxItems": 50,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "number": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  },
                                  "label": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 255
                                  }
                                },
                                "required": [
                                  "number"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "additionalProperties": false
                        },
                        "approval": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "requestedAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            },
                            "expiresAt": {
                              "$ref": "#/components/schemas/ReservationTimestamp"
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "history": {
                    "default": [],
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "reference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "SEGMENT",
                            "SERVICE",
                            "ACCOUNTING",
                            "CREATED",
                            "UPDATED",
                            "TICKETING",
                            "RETENTION",
                            "OTHER"
                          ]
                        },
                        "occurredAt": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "status": {
                          "type": "object",
                          "properties": {
                            "state": {
                              "default": "UNKNOWN",
                              "type": "string",
                              "enum": [
                                "CONFIRMED",
                                "PENDING",
                                "CANCELLED",
                                "ISSUED",
                                "VOIDED",
                                "REFUNDED",
                                "USED",
                                "EXCHANGED",
                                "OPEN",
                                "UNKNOWN"
                              ]
                            },
                            "code": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "required": [
                            "state"
                          ],
                          "additionalProperties": false
                        },
                        "code": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "supplierCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "confirmation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "documentReference": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "typeCode": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "fareApplicationType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "paymentType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "invoiceReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "guaranteeReferences": {
                          "maxItems": 100,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 255
                          }
                        },
                        "cardLast4": {
                          "type": "string",
                          "pattern": "^[0-9]{4}$"
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 2000
                        },
                        "messageOmitted": {
                          "type": "boolean"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        },
                        "unconvertedAmount": {
                          "type": "string",
                          "maxLength": 80,
                          "pattern": "^-?\\d+(?:\\.\\d+)?$"
                        },
                        "commission": {
                          "type": "object",
                          "properties": {
                            "amount": {
                              "type": "object",
                              "properties": {
                                "currency": {
                                  "type": "string",
                                  "pattern": "^[A-Z]{3}$"
                                },
                                "totalMinor": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                }
                              },
                              "required": [
                                "currency",
                                "totalMinor"
                              ],
                              "additionalProperties": false
                            },
                            "unconvertedAmount": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "percentage": {
                              "type": "string",
                              "maxLength": 80,
                              "pattern": "^-?\\d+(?:\\.\\d+)?$"
                            },
                            "text": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        },
                        "taxAmount": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency",
                            "totalMinor"
                          ],
                          "additionalProperties": false
                        },
                        "unconvertedTaxAmount": {
                          "type": "string",
                          "maxLength": 80,
                          "pattern": "^-?\\d+(?:\\.\\d+)?$"
                        },
                        "quantity": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "origin": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "destination": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "start": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "end": {
                          "$ref": "#/components/schemas/ReservationTimestamp"
                        },
                        "address": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "startAddress": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "endAddress": {
                          "$ref": "#/components/schemas/ReservationAddress"
                        },
                        "issuer": {
                          "type": "object",
                          "properties": {
                            "supplierCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "officeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "homeOfficeId": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "userCode": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            },
                            "agencyIataNumber": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 255
                            }
                          },
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "reference",
                        "scope",
                        "kind"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "totals": {
                    "default": [],
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "FLIGHT",
                            "FLIGHT_CURRENT",
                            "HOTEL",
                            "CAR_RENTAL",
                            "ANCILLARY",
                            "RESERVATION"
                          ]
                        },
                        "scope": {
                          "$ref": "#/components/schemas/ReservationAssociation"
                        },
                        "money": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string",
                              "pattern": "^[A-Z]{3}$"
                            },
                            "feesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "subtotalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "taxesMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "totalMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "kind",
                        "scope",
                        "money"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "version",
                  "contacts",
                  "profiles",
                  "travelers",
                  "fares",
                  "fareRules",
                  "documents",
                  "ancillaries",
                  "seats",
                  "meals",
                  "segments",
                  "journeys",
                  "baggage",
                  "specialRequests",
                  "guarantees",
                  "history",
                  "totals"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "observedAt",
              "recordedAt",
              "normalizationVersion",
              "evidence"
            ],
            "additionalProperties": false
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "providerConfigId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignment": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "INHERIT"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "UNASSIGNED"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "ASSIGNED"
                  },
                  "advisorUserId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "mode",
                  "advisorUserId"
                ],
                "additionalProperties": false
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "not": {}
            }
          }
        },
        "required": [
          "entryMethod",
          "bookingOrigin",
          "companyName",
          "orderId",
          "orderVersion",
          "status",
          "product",
          "amount",
          "providerKey",
          "providerLocator",
          "providerConfigId",
          "advisorUserId",
          "assignment",
          "createdAt",
          "updatedAt",
          "travelersTripId",
          "allowedActions"
        ],
        "additionalProperties": false
      },
      "OrderListItem": {
        "type": "object",
        "properties": {
          "entryMethod": {
            "default": "CHECKOUT",
            "type": "string",
            "enum": [
              "CHECKOUT",
              "IMPORT",
              "MANUAL"
            ]
          },
          "bookingOrigin": {
            "default": "NICER",
            "type": "string",
            "enum": [
              "NICER",
              "EXTERNAL",
              "UNKNOWN"
            ]
          },
          "bookedByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "canCancel": {
            "type": "boolean"
          },
          "canCreatePaymentLink": {
            "type": "boolean"
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "committedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "orderId": {
            "type": "string",
            "minLength": 1
          },
          "paymentDeadline": {
            "description": "When a held order must be paid by. Null when the order is not held.",
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "price": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "totalMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "currency",
                  "totalMinor"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "productName": {
            "type": "string",
            "minLength": 1
          },
          "productType": {
            "type": "string",
            "enum": [
              "PLANNING_FEE",
              "EXTRA_PAYMENT",
              "HOTEL",
              "FLIGHT",
              "INSURANCE",
              "CAR_RENTAL"
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "$ref": "#/components/schemas/OrderLifecycleStatus"
          },
          "travelDates": {
            "type": "object",
            "properties": {
              "end": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "start": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "end",
              "start"
            ],
            "additionalProperties": false
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "entryMethod",
          "bookingOrigin",
          "bookedByUserId",
          "canCancel",
          "canCreatePaymentLink",
          "companyName",
          "committedAt",
          "createdAt",
          "orderId",
          "price",
          "productName",
          "productType",
          "providerLocator",
          "status",
          "travelDates",
          "travelersTripId"
        ],
        "additionalProperties": false
      },
      "PayeeSettings": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "cycleDays": {
            "minItems": 1,
            "maxItems": 4,
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 31
            }
          },
          "legalName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 140
              },
              {
                "type": "null"
              }
            ]
          },
          "minimumPayoutMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "nextCycleOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "payeeId": {
            "type": "string",
            "minLength": 1
          },
          "payeeKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "COMPANY"
            ]
          },
          "payoutMethod": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PayoutMethod"
              },
              {
                "type": "null"
              }
            ]
          },
          "payoutReady": {
            "type": "boolean"
          },
          "statementsEnabled": {
            "type": "boolean"
          },
          "statementsStartOn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "stripeAccountId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "stripeTransfersEnabled": {
            "type": "boolean"
          },
          "taxFormStatus": {
            "type": "string",
            "enum": [
              "MISSING",
              "W9_ON_FILE",
              "W8_ON_FILE"
            ]
          },
          "unassigned": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CurrencyTotal"
            }
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "version": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "companyName",
          "cycleDays",
          "legalName",
          "minimumPayoutMinor",
          "nextCycleOn",
          "payeeId",
          "payeeKind",
          "payoutMethod",
          "payoutReady",
          "statementsEnabled",
          "statementsStartOn",
          "stripeAccountId",
          "stripeTransfersEnabled",
          "taxFormStatus",
          "unassigned",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false
      },
      "PayoutMethod": {
        "type": "string",
        "enum": [
          "STRIPE_CONNECT",
          "CHECK",
          "MANUAL"
        ]
      },
      "CurrencyTotal": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          }
        },
        "required": [
          "amountMinor",
          "currency"
        ],
        "additionalProperties": false
      },
      "PayoutRunTotal": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "failedMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "paidMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "amountMinor",
          "currency",
          "failedMinor",
          "paidMinor"
        ],
        "additionalProperties": false
      },
      "Payout": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "attempts": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "failureReason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "method": {
            "$ref": "#/components/schemas/PayoutMethod"
          },
          "paidAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "payeeId": {
            "type": "string",
            "minLength": 1
          },
          "payeeKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "COMPANY"
            ]
          },
          "payoutId": {
            "type": "string",
            "minLength": 1
          },
          "payoutRunId": {
            "type": "string",
            "minLength": 1
          },
          "processorReference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "statementId": {
            "type": "string",
            "minLength": 1
          },
          "statementNumber": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "$ref": "#/components/schemas/PayoutStatus"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "amountMinor",
          "attempts",
          "companyName",
          "createdAt",
          "currency",
          "failureReason",
          "method",
          "paidAt",
          "payeeId",
          "payeeKind",
          "payoutId",
          "payoutRunId",
          "processorReference",
          "statementId",
          "statementNumber",
          "status",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "PayoutRun": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "completedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "type": "string",
            "minLength": 1
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "payoutCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "payoutRunId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "enum": [
              "SUBMITTED",
              "PARTIALLY_FAILED",
              "COMPLETED"
            ]
          },
          "submittedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "totals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PayoutRunTotal"
            }
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          }
        },
        "required": [
          "companyName",
          "completedAt",
          "createdAt",
          "createdByUserId",
          "jobId",
          "number",
          "payoutCount",
          "payoutRunId",
          "status",
          "submittedAt",
          "totals",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "RemittanceBatch": {
        "type": "object",
        "properties": {
          "committedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "type": "string",
            "minLength": 1
          },
          "errorCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "fileName": {
            "type": "string",
            "minLength": 1
          },
          "format": {
            "type": "string",
            "enum": [
              "CSV",
              "TSV",
              "TXT",
              "XLSX"
            ]
          },
          "headers": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "presetId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "source": {
            "type": "string",
            "enum": [
              "FILE_IMPORT"
            ]
          },
          "status": {
            "$ref": "#/components/schemas/CommissionFileStatus"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "allowedActions": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "APPLY_MAPPING",
                "SAVE_PRESET",
                "EDIT_LINE",
                "EXCLUDE_LINE",
                "INCLUDE_LINE",
                "SET_MATCH",
                "RESET_MATCHES",
                "RERUN_MATCHING",
                "RECONCILE",
                "UNDO_RECONCILE",
                "DISCARD"
              ]
            }
          },
          "batchId": {
            "type": "string",
            "minLength": 1
          },
          "channel": {
            "$ref": "#/components/schemas/CommissionChannel"
          },
          "committedByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "mapping": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/RemittanceImportMapping"
              },
              {
                "type": "null"
              }
            ]
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "parsedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "stats": {
            "$ref": "#/components/schemas/RemittanceBatchStats"
          },
          "undoneAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "committedAt",
          "companyName",
          "createdAt",
          "createdByUserId",
          "errorCode",
          "fileName",
          "format",
          "headers",
          "jobId",
          "presetId",
          "sizeBytes",
          "source",
          "status",
          "updatedAt",
          "allowedActions",
          "batchId",
          "channel",
          "committedByUserId",
          "mapping",
          "number",
          "parsedAt",
          "stats",
          "undoneAt"
        ],
        "additionalProperties": false
      },
      "RemittanceBatchStats": {
        "type": "object",
        "properties": {
          "excluded": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "invalid": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "invalidRows": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "errors": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "enum": [
                          "REQUIRED",
                          "INVALID_AMOUNT",
                          "INVALID_DATE",
                          "INVALID_RATE",
                          "INVALID_VALUE"
                        ]
                      },
                      "field": {
                        "$ref": "#/components/schemas/RemittanceImportField"
                      }
                    },
                    "required": [
                      "code",
                      "field"
                    ],
                    "additionalProperties": false
                  }
                },
                "rowNumber": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "errors",
                "rowNumber"
              ],
              "additionalProperties": false
            }
          },
          "lines": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "matched": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pendingReview": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "proposed": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "totals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amountMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "matchedMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "amountMinor",
                "currency",
                "matchedMinor"
              ],
              "additionalProperties": false
            }
          },
          "unmatched": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "zero": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "excluded",
          "invalid",
          "invalidRows",
          "lines",
          "matched",
          "pendingReview",
          "proposed",
          "totals",
          "unmatched",
          "zero"
        ],
        "additionalProperties": false
      },
      "RemittanceLine": {
        "type": "object",
        "properties": {
          "allocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "allocations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RemittanceAllocation"
            }
          },
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "archivedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "batchId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "cells": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "duplicateOfLineId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "exclusionReason": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LineExclusionReason"
              },
              {
                "type": "null"
              }
            ]
          },
          "feeMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "fxRate": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FxRate"
              },
              {
                "type": "null"
              }
            ]
          },
          "lineNumber": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "matchState": {
            "$ref": "#/components/schemas/RemittanceLineMatchState"
          },
          "originalAmountMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "originalCurrency": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "proposals": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MatchProposal"
            }
          },
          "received": {
            "$ref": "#/components/schemas/RemittanceLineReceived"
          },
          "remittanceId": {
            "type": "string",
            "minLength": 1
          },
          "remittanceLineId": {
            "type": "string",
            "minLength": 1
          },
          "unallocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "allocatedMinor",
          "allocations",
          "amountMinor",
          "archivedAt",
          "batchId",
          "cells",
          "currency",
          "duplicateOfLineId",
          "exclusionReason",
          "feeMinor",
          "fxRate",
          "lineNumber",
          "matchState",
          "originalAmountMinor",
          "originalCurrency",
          "proposals",
          "received",
          "remittanceId",
          "remittanceLineId",
          "unallocatedMinor"
        ],
        "additionalProperties": false
      },
      "RemittanceAllocation": {
        "type": "object",
        "properties": {
          "allocatedByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "allocationId": {
            "type": "string",
            "minLength": 1
          },
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "entryType": {
            "type": "string",
            "enum": [
              "ALLOCATION",
              "REVERSAL"
            ]
          },
          "fxRate": {
            "$ref": "#/components/schemas/FxRate"
          },
          "itemCompanyName": {
            "type": "string",
            "minLength": 1
          },
          "itemNumber": {
            "type": "string",
            "minLength": 1
          },
          "lineAmountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "matchScore": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "AUTO",
              "SUGGESTED",
              "MANUAL",
              "CLAIM"
            ]
          },
          "reason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "remittanceLineId": {
            "type": "string",
            "minLength": 1
          },
          "reversedMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "reversesAllocationId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "split": {
            "$ref": "#/components/schemas/AllocationSplit"
          }
        },
        "required": [
          "allocatedByUserId",
          "allocationId",
          "amountMinor",
          "commissionItemId",
          "createdAt",
          "currency",
          "entryType",
          "fxRate",
          "itemCompanyName",
          "itemNumber",
          "lineAmountMinor",
          "matchScore",
          "method",
          "reason",
          "receivedOn",
          "remittanceLineId",
          "reversedMinor",
          "reversesAllocationId",
          "split"
        ],
        "additionalProperties": false
      },
      "FxRate": {
        "type": "string",
        "pattern": "^\\d{1,10}\\.\\d{8}$"
      },
      "AllocationSplit": {
        "type": "object",
        "properties": {
          "advisorMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "agencyMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "feesMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "hostMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "houseMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "referrerMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "advisorMinor",
          "agencyMinor",
          "feesMinor",
          "hostMinor",
          "houseMinor",
          "referrerMinor"
        ],
        "additionalProperties": false
      },
      "LineExclusionReason": {
        "type": "string",
        "enum": [
          "DUPLICATE",
          "NOT_COMMISSION",
          "OTHER_COMPANY",
          "OTHER"
        ]
      },
      "RemittanceLineMatchState": {
        "type": "string",
        "enum": [
          "UNMATCHED",
          "PROPOSED",
          "PENDING_REVIEW",
          "MATCHED",
          "EXCLUDED",
          "ZERO"
        ]
      },
      "MatchProposal": {
        "type": "object",
        "properties": {
          "autoEligible": {
            "type": "boolean"
          },
          "balanceMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "clientName": {
            "type": "string",
            "minLength": 1
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "features": {
            "$ref": "#/components/schemas/MatchFeatures"
          },
          "itemNumber": {
            "type": "string",
            "minLength": 1
          },
          "method": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "AUTO",
                  "SUGGESTED",
                  "MANUAL",
                  "CLAIM"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "proposedAmountMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "rank": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "score": {
            "type": "number",
            "minimum": 0,
            "maximum": 100
          },
          "selected": {
            "type": "boolean"
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          }
        },
        "required": [
          "autoEligible",
          "balanceMinor",
          "clientName",
          "commissionItemId",
          "companyName",
          "confirmationNumber",
          "currency",
          "features",
          "itemNumber",
          "method",
          "proposedAmountMinor",
          "rank",
          "score",
          "selected",
          "supplierName",
          "travelEnd",
          "travelStart"
        ],
        "additionalProperties": false
      },
      "MatchFeatures": {
        "type": "object",
        "propertyNames": {
          "$ref": "#/components/schemas/MatchFeature"
        },
        "additionalProperties": {
          "type": "number",
          "minimum": -100,
          "maximum": 100
        }
      },
      "MatchFeature": {
        "type": "string",
        "enum": [
          "CONFIRMATION",
          "SUPPLIER",
          "CLIENT_LAST_NAME",
          "CLIENT_FIRST_NAME",
          "CHECK_IN",
          "CHECK_OUT",
          "AMOUNT",
          "IDENTIFIER",
          "DISTANCE_PENALTY",
          "CURRENCY_PENALTY",
          "PAID_PENALTY"
        ]
      },
      "RemittanceLineReceived": {
        "type": "object",
        "properties": {
          "checkIn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "checkOut": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "grossMinor": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "identifierNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "rateBps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "checkIn",
          "checkOut",
          "clientName",
          "confirmationNumber",
          "grossMinor",
          "identifierNumber",
          "rateBps",
          "supplierName"
        ],
        "additionalProperties": false
      },
      "RemittancePayerKind": {
        "type": "string",
        "enum": [
          "SUPPLIER",
          "HOST",
          "CLIENT",
          "OTHER"
        ]
      },
      "RemittanceState": {
        "type": "string",
        "enum": [
          "DRAFT",
          "POSTED",
          "DUPLICATE",
          "VOID"
        ]
      },
      "RemittanceSummary": {
        "type": "object",
        "properties": {
          "allocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "batchId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "channel": {
            "$ref": "#/components/schemas/CommissionChannel"
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "feeMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "grossMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lineCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "payableOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "payerKind": {
            "$ref": "#/components/schemas/RemittancePayerKind"
          },
          "payerName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "postedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "receivedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "reference": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "remittanceId": {
            "type": "string",
            "minLength": 1
          },
          "source": {
            "type": "string",
            "enum": [
              "MANUAL",
              "FILE_IMPORT"
            ]
          },
          "state": {
            "$ref": "#/components/schemas/RemittanceState"
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "unallocatedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "allocatedMinor",
          "batchId",
          "channel",
          "companyName",
          "createdAt",
          "currency",
          "feeMinor",
          "grossMinor",
          "lineCount",
          "number",
          "payableOn",
          "payerKind",
          "payerName",
          "postedAt",
          "receivedOn",
          "reference",
          "remittanceId",
          "source",
          "state",
          "supplierId",
          "unallocatedMinor"
        ],
        "additionalProperties": false
      },
      "StatementAdjustment": {
        "type": "object",
        "properties": {
          "adjustmentId": {
            "type": "string",
            "minLength": 1
          },
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "carriedFromStatementId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "createdByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          },
          "kind": {
            "type": "string",
            "enum": [
              "CREDIT",
              "DEBIT"
            ]
          },
          "quantity": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "unitAmountMinor": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "adjustmentId",
          "amountMinor",
          "carriedFromStatementId",
          "createdAt",
          "createdByUserId",
          "description",
          "kind",
          "quantity",
          "unitAmountMinor"
        ],
        "additionalProperties": false
      },
      "StatementLine": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "bucket": {
            "type": "string",
            "enum": [
              "PENDING",
              "AVAILABLE"
            ]
          },
          "clientName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "commissionItemId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "earningId": {
            "type": "string",
            "minLength": 1
          },
          "earningKind": {
            "type": "string",
            "minLength": 1
          },
          "entryType": {
            "type": "string",
            "enum": [
              "EARNING",
              "REVERSAL",
              "CLAWBACK"
            ]
          },
          "orderId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "payableOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "travelEnd": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amountMinor",
          "bucket",
          "clientName",
          "commissionItemId",
          "confirmationNumber",
          "earningId",
          "earningKind",
          "entryType",
          "orderId",
          "payableOn",
          "supplierName",
          "travelEnd"
        ],
        "additionalProperties": false
      },
      "StatementSummary": {
        "type": "object",
        "properties": {
          "adjustmentsMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedByUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "closedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "cycleOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "earningsMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "lineCount": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "number": {
            "type": "string",
            "minLength": 1
          },
          "paidAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "payeeId": {
            "type": "string",
            "minLength": 1
          },
          "payeeKind": {
            "type": "string",
            "enum": [
              "ADVISOR",
              "COMPANY"
            ]
          },
          "periodEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "periodStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "statementId": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "$ref": "#/components/schemas/StatementStatus"
          },
          "totalMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "version": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "voidReason": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "adjustmentsMinor",
          "approvedAt",
          "approvedByUserId",
          "closedAt",
          "companyName",
          "createdAt",
          "currency",
          "cycleOn",
          "earningsMinor",
          "lineCount",
          "number",
          "paidAt",
          "payeeId",
          "payeeKind",
          "periodEnd",
          "periodStart",
          "statementId",
          "status",
          "totalMinor",
          "updatedAt",
          "version",
          "voidReason"
        ],
        "additionalProperties": false
      },
      "SupplierContact": {
        "type": "object",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "role": {
            "$ref": "#/components/schemas/SupplierContactRole"
          },
          "shared": {
            "type": "boolean"
          },
          "supplierContactId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "email",
          "name",
          "notes",
          "phone",
          "role",
          "shared",
          "supplierContactId"
        ],
        "additionalProperties": false
      },
      "SupplierContactRole": {
        "type": "string",
        "enum": [
          "COMMISSIONS",
          "ACCOUNTING",
          "RESERVATIONS",
          "SALES",
          "OTHER"
        ]
      },
      "SupplierProduction": {
        "type": "object",
        "properties": {
          "balanceMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "bookings": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "expectedMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "overdueMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "receivedMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "balanceMinor",
          "bookings",
          "currency",
          "expectedMinor",
          "overdueMinor",
          "receivedMinor"
        ],
        "additionalProperties": false
      },
      "SupplierSummary": {
        "type": "object",
        "properties": {
          "city": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "commissionBps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/SupplierKind"
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "paymentTermDays": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 730
              },
              {
                "type": "null"
              }
            ]
          },
          "sabreGlobalId": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^\\d+$"
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "GLOBAL",
              "COMPANY"
            ]
          },
          "similarity": {
            "type": "number",
            "minimum": 0,
            "maximum": 1
          },
          "supplierId": {
            "type": "string",
            "minLength": 1
          },
          "verified": {
            "type": "boolean"
          }
        },
        "required": [
          "city",
          "commissionBps",
          "countryCode",
          "kind",
          "name",
          "paymentTermDays",
          "scope",
          "similarity",
          "supplierId",
          "verified"
        ],
        "additionalProperties": false
      },
      "SupplierSuggestion": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 2
              },
              {
                "type": "null"
              }
            ]
          },
          "googlePlaceId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "address",
          "countryCode",
          "googlePlaceId",
          "latitude",
          "longitude",
          "name"
        ],
        "additionalProperties": false
      },
      "CommunityChannelWriter": {
        "type": "object",
        "properties": {
          "userId": {
            "type": "string",
            "description": "The writer's userId."
          },
          "isCreator": {
            "type": "boolean",
            "description": "Whether the writer is the channel's creator, who always may post."
          }
        },
        "required": [
          "userId",
          "isCreator"
        ],
        "additionalProperties": false
      },
      "PromotionStatus": {
        "type": "string",
        "enum": [
          "published",
          "draft",
          "deactivated"
        ]
      },
      "Activity": {
        "type": "object",
        "properties": {
          "activityId": {
            "type": "string",
            "description": "The event's id; the same entry is never recorded twice."
          },
          "actorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The user id of who did it; null for the system and other domains' automations."
          },
          "data": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {},
            "description": "Ids, section names and counts the entry is about, as the event of its type gives them."
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When it happened."
          },
          "summary": {
            "type": "string",
            "description": "One readable line, e.g. \"Hotel booked\" or \"Passport updated\"."
          },
          "travelerId": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerId"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler whose timeline holds the entry."
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip (TT…) the entry is about, when it is about one."
          },
          "type": {
            "description": "The event the entry was written from.",
            "$ref": "#/components/schemas/ActivityType"
          }
        },
        "required": [
          "activityId",
          "actorUserId",
          "data",
          "occurredAt",
          "summary",
          "travelerId",
          "travelersTripId",
          "type"
        ],
        "additionalProperties": false,
        "description": "One entry of a traveler's timeline: an event of the CRM or of another domain, with ids and a readable summary."
      },
      "ActivityType": {
        "type": "string",
        "enum": [
          "app.TravelersTrip.created",
          "app.TravelersTrip.user.added",
          "app.TripItinerary.Send",
          "app.TripItinerary.approved",
          "commerce.order-confirmation-requested.v1",
          "commerce.order-projection-changed.v1",
          "commerce.payment-receipt-requested.v1",
          "crm.note-changed.v1",
          "crm.task-changed.v1",
          "crm.traveler-advisors-changed.v1",
          "crm.traveler-created.v1",
          "crm.traveler-documents-changed.v1",
          "crm.traveler-invitation-requested.v1",
          "crm.traveler-linked.v1",
          "crm.traveler-unlinked.v1",
          "crm.traveler-updated.v1",
          "crm.travelers-merged.v1",
          "crm.trip-updated.v1",
          "notifications.traveler-email-sent.v1"
        ],
        "description": "The event a timeline entry was written from: a trip created or joined (app.TravelersTrip.*), a proposal sent or approved (app.TripItinerary.*), an order, a booking confirmation or a payment (commerce.*), a change in the CRM (crm.*), or an email the agency sent the traveler (notifications.traveler-email-sent.v1)."
      },
      "MyAdvisor": {
        "type": "object",
        "properties": {
          "advisorAvatar": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A link to the photo on the advisor's Nicer account; null when they have none."
          },
          "advisorName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The advisor's name, as their Nicer account spells it; null when it has none."
          },
          "advisorUserId": {
            "type": "string",
            "description": "The advisor's user id."
          },
          "companyName": {
            "type": "string",
            "description": "The agency where the advisor serves the person."
          },
          "isAssigned": {
            "type": "boolean",
            "description": "Whether the advisor is the one responsible for the person at that agency."
          }
        },
        "required": [
          "advisorAvatar",
          "advisorName",
          "advisorUserId",
          "companyName",
          "isAssigned"
        ],
        "additionalProperties": false,
        "description": "An advisor who serves the person at one agency, named and pictured as their Nicer account shows them."
      },
      "FamilyMember": {
        "type": "object",
        "properties": {
          "relationship": {
            "description": "What the family member is to the person: CHILD, SPOUSE or PARTNER.",
            "$ref": "#/components/schemas/TravelerRelationshipKind"
          },
          "traveler": {
            "description": "The family member's traveler, as the person fills it for them.",
            "$ref": "#/components/schemas/TravelerSelf"
          }
        },
        "required": [
          "relationship",
          "traveler"
        ],
        "additionalProperties": false,
        "description": "A traveler the person may fill in for: their child, spouse or partner at the agency, who has no Nicer account of their own."
      },
      "TravelerRelationshipKind": {
        "type": "string",
        "enum": [
          "ASSISTANT",
          "CHILD",
          "COLLEAGUE",
          "EMPLOYER",
          "FRIEND",
          "NANNY",
          "PARENT",
          "PARTNER",
          "REFERRED",
          "REFERRED_BY",
          "RELATIVE",
          "SIBLING",
          "SPOUSE"
        ],
        "description": "Who the related traveler is to this one: a PARENT has a CHILD, an EMPLOYER has an ASSISTANT or a NANNY, someone REFERRED_BY was REFERRED; the others are the same both ways."
      },
      "PersonAddress": {
        "type": "object",
        "properties": {
          "address1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "countryCode": {
            "$ref": "#/components/schemas/CountryCode"
          },
          "postalCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20
          },
          "stateCode": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "address1",
          "city",
          "countryCode",
          "postalCode",
          "stateCode"
        ],
        "additionalProperties": false,
        "description": "A postal address: street, city, state, postal code and country.",
        "examples": [
          {
            "address1": "Av. Reforma 222",
            "city": "Mexico City",
            "countryCode": "MX",
            "postalCode": "06600",
            "stateCode": "CMX"
          }
        ]
      },
      "E164Phone": {
        "type": "string",
        "pattern": "^\\+[1-9]\\d{7,14}$",
        "description": "A phone number in E.164 format.",
        "examples": [
          "+14155550123"
        ]
      },
      "PersonContact": {
        "type": "object",
        "properties": {
          "email": {
            "anyOf": [
              {
                "type": "string",
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "phone": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/E164Phone"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "email",
          "phone"
        ],
        "additionalProperties": false,
        "description": "How to reach the person. The phone is in E.164 format.",
        "examples": [
          {
            "email": "ana@example.com",
            "phone": "+525512345678"
          }
        ]
      },
      "TravelerDocument": {
        "type": "object",
        "properties": {
          "citizenshipCountry": {
            "description": "The citizenship stated on this document, as an ISO 3166-1 alpha-2 country code; it is not always the person's nationality. Null or absent when the document states none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "expirationDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the document expires, YYYY-MM-DD; null for one that does not."
          },
          "issueDate": {
            "description": "The day the document was issued, YYYY-MM-DD; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "issuingCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "kind": {
            "description": "What the document is.",
            "$ref": "#/components/schemas/TravelDocumentKind"
          },
          "number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "The document's number, in full, 1 to 100 characters."
          },
          "placeOfBirth": {
            "description": "The place of birth printed on the document; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "placeOfIssue": {
            "description": "Where the document was issued; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "documentId": {
            "type": "string",
            "minLength": 1,
            "description": "The document's id: send it back in an update to keep or replace this document."
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ],
            "description": "What the document is to people, e.g. \"ESTA\" or \"Schengen\", 1 to 60 characters; null when it has none."
          }
        },
        "required": [
          "expirationDate",
          "issuingCountryCode",
          "kind",
          "number",
          "documentId",
          "label"
        ],
        "additionalProperties": false,
        "description": "A travel document with its full number, its id and an optional label such as ESTA."
      },
      "TravelDocumentKind": {
        "type": "string",
        "enum": [
          "DRIVER_LICENSE",
          "KNOWN_TRAVELER_NUMBER",
          "NATIONAL_ID",
          "PASSPORT",
          "REDRESS_NUMBER",
          "RESIDENCE_PERMIT",
          "VISA"
        ],
        "description": "What the document is. A Known Traveler Number (TSA PreCheck, Global Entry) and a redress number are documents too."
      },
      "FrequentFlyerProgram": {
        "type": "object",
        "properties": {
          "airlineIataCode": {
            "$ref": "#/components/schemas/CarrierCode"
          },
          "memberNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          }
        },
        "required": [
          "airlineIataCode",
          "memberNumber"
        ],
        "additionalProperties": false,
        "description": "An airline loyalty membership: the airline's code and the member number.",
        "examples": [
          {
            "airlineIataCode": "AM",
            "memberNumber": "123456789"
          }
        ]
      },
      "ImportantDate": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The date, YYYY-MM-DD. Its month and day come back every year; the year is the first one."
          },
          "dateId": {
            "type": "string",
            "minLength": 1,
            "description": "The date's id: send it back in an update to keep or replace this date."
          },
          "kind": {
            "description": "What kind of date it is.",
            "$ref": "#/components/schemas/ImportantDateKind"
          },
          "label": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ],
            "description": "What the date is to people, e.g. Wedding anniversary, 1 to 80 characters; null when the kind says enough."
          }
        },
        "required": [
          "date",
          "dateId",
          "kind",
          "label"
        ],
        "additionalProperties": false,
        "description": "A date the agency remembers every year, such as a wedding anniversary. The birthday comes from birthDate."
      },
      "ImportantDateKind": {
        "type": "string",
        "enum": [
          "ANNIVERSARY",
          "OTHER"
        ],
        "description": "ANNIVERSARY for a wedding or other anniversary; OTHER for any other date the agency remembers every year, named by its label."
      },
      "MarketingConsent": {
        "type": "object",
        "properties": {
          "email": {
            "type": "boolean",
            "description": "Whether the traveler agreed to marketing by email."
          },
          "sms": {
            "type": "boolean",
            "description": "Whether the traveler agreed to marketing by SMS."
          },
          "whatsapp": {
            "type": "boolean",
            "description": "Whether the traveler agreed to marketing on WhatsApp."
          }
        },
        "required": [
          "email",
          "sms",
          "whatsapp"
        ],
        "additionalProperties": false,
        "description": "Whether the traveler agreed to marketing messages, per channel."
      },
      "PersonName": {
        "type": "object",
        "properties": {
          "familyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "givenName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "middleName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "familyName",
          "givenName",
          "middleName"
        ],
        "additionalProperties": false,
        "description": "The legal name as printed on the travel document: given name, middle name and family name.",
        "examples": [
          {
            "familyName": "Pérez",
            "givenName": "Ana",
            "middleName": null
          }
        ]
      },
      "PreferredChannel": {
        "type": "string",
        "enum": [
          "EMAIL",
          "PHONE",
          "SMS",
          "WHATSAPP"
        ],
        "description": "How the traveler prefers to be contacted."
      },
      "LanguageTag": {
        "type": "string",
        "pattern": "^[a-z]{2,3}(?:-[A-Z]{2})?$",
        "description": "A language tag such as es or en-US."
      },
      "Accessibility": {
        "type": "object",
        "properties": {
          "medicalNotes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "mobility": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "NONE",
                  "REDUCED_MOBILITY",
                  "WHEELCHAIR_ASSISTANCE",
                  "WHEELCHAIR_OWN"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "medicalNotes",
          "mobility"
        ],
        "additionalProperties": false,
        "description": "Mobility needs and medical notes the traveler chose to share with the agency."
      },
      "AirPreferences": {
        "type": "object",
        "properties": {
          "cabinClass": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "BUSINESS",
                  "ECONOMY",
                  "FIRST",
                  "PREMIUM_ECONOMY"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "mealCode": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^[A-Z]{4}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredAirlineCodes": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CarrierCode"
            }
          },
          "preferredAirportCodes": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AirportCode"
            }
          },
          "seat": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "AISLE",
                  "ANY",
                  "WINDOW"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "cabinClass",
          "mealCode",
          "notes",
          "preferredAirlineCodes",
          "preferredAirportCodes",
          "seat"
        ],
        "additionalProperties": false,
        "description": "How the traveler likes to fly: cabin, seat, meal code, preferred airlines and airports."
      },
      "Dietary": {
        "type": "object",
        "properties": {
          "codes": {
            "maxItems": 11,
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "DIABETIC",
                "GLUTEN_FREE",
                "HALAL",
                "KOSHER",
                "LACTOSE_FREE",
                "LOW_SODIUM",
                "NUT_ALLERGY",
                "OTHER",
                "SHELLFISH_ALLERGY",
                "VEGAN",
                "VEGETARIAN"
              ]
            }
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "codes",
          "notes"
        ],
        "additionalProperties": false,
        "description": "Dietary needs, as codes and notes."
      },
      "EmergencyContact": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "phone": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/E164Phone"
              },
              {
                "type": "null"
              }
            ]
          },
          "relationship": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ]
          },
          "travelerId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "phone",
          "relationship",
          "travelerId"
        ],
        "additionalProperties": false,
        "description": "Who to call in an emergency; `travelerId` links them when they are a traveler of the agency."
      },
      "HotelPreferences": {
        "type": "object",
        "properties": {
          "bed": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ANY",
                  "KING",
                  "QUEEN",
                  "TWIN"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "floor": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "ANY",
                  "HIGH",
                  "LOW"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredBrands": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "roomType": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "bed",
          "floor",
          "notes",
          "preferredBrands",
          "roomType"
        ],
        "additionalProperties": false,
        "description": "How the traveler likes to stay: bed, floor, room type and favorite brands."
      },
      "Interests": {
        "type": "object",
        "properties": {
          "bucketList": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "budgetNotes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "interests": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          },
          "travelStyles": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            }
          }
        },
        "required": [
          "bucketList",
          "budgetNotes",
          "interests",
          "travelStyles"
        ],
        "additionalProperties": false,
        "description": "Travel styles, interests, the bucket list and how the traveler usually budgets."
      },
      "Pet": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "notes": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "species": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "weightKg": {
            "anyOf": [
              {
                "type": "number",
                "exclusiveMinimum": 0,
                "maximum": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "name",
          "notes",
          "species",
          "weightKg"
        ],
        "additionalProperties": false,
        "description": "A pet that travels with the traveler."
      },
      "TravelProfile": {
        "type": "object",
        "properties": {
          "accessibility": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Accessibility"
              },
              {
                "type": "null"
              }
            ]
          },
          "air": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AirPreferences"
              },
              {
                "type": "null"
              }
            ]
          },
          "dietary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dietary"
              },
              {
                "type": "null"
              }
            ]
          },
          "emergencyContacts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmergencyContact"
            }
          },
          "hotel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HotelPreferences"
              },
              {
                "type": "null"
              }
            ]
          },
          "interests": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Interests"
              },
              {
                "type": "null"
              }
            ]
          },
          "loyaltyPrograms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoyaltyProgram"
            }
          },
          "pets": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pet"
            }
          }
        },
        "required": [
          "accessibility",
          "air",
          "dietary",
          "emergencyContacts",
          "hotel",
          "interests",
          "loyaltyPrograms",
          "pets"
        ],
        "additionalProperties": false,
        "description": "The traveler's preferences, loyalty memberships, health notes and emergency contacts."
      },
      "ParticipantSex": {
        "type": "string",
        "enum": [
          "F",
          "M",
          "U",
          "X"
        ],
        "description": "The sex marker printed on the travel document: \"F\", \"M\", \"U\" (unspecified) or \"X\"."
      },
      "TravelerSelf": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The traveler's postal address; null when nobody gave one."
          },
          "birthDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date of birth, YYYY-MM-DD; null when unknown."
          },
          "companyName": {
            "type": "string",
            "description": "The agency the traveler belongs to."
          },
          "contact": {
            "description": "The traveler's email and phone, the phone in E.164; each is null when unknown.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "documents": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerDocument"
            },
            "description": "The traveler's travel documents with their full numbers, oldest first."
          },
          "frequentFlyerPrograms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            },
            "description": "Airline loyalty memberships, as a flight reservation carries them."
          },
          "importantDates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportantDate"
            },
            "description": "The dates the agency remembers every year; the birthday is birthDate, not one of these."
          },
          "marketingConsent": {
            "$ref": "#/components/schemas/MarketingConsent"
          },
          "name": {
            "description": "The legal name, as printed on the travel document.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Nationality, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "preferredChannel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreferredChannel"
              },
              {
                "type": "null"
              }
            ],
            "description": "How the traveler prefers to be contacted; null when they have not said."
          },
          "preferredLanguage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageTag"
              },
              {
                "type": "null"
              }
            ],
            "description": "The language to write to the traveler in, e.g. es or en-US; null when unknown."
          },
          "preferredName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The name the traveler goes by when it is not their given name; null otherwise."
          },
          "profile": {
            "description": "The travel profile: air and hotel preferences, dietary and accessibility needs, loyalty programs, emergency contacts, interests and pets.",
            "$ref": "#/components/schemas/TravelProfile"
          },
          "residenceCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "Country of residence, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "Goes up by one on every change. Send it back with an update, so a change made meanwhile is never overwritten."
          },
          "sex": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sex marker on the travel document; null when unknown."
          },
          "travelerId": {
            "description": "The traveler's id.",
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "address",
          "birthDate",
          "companyName",
          "contact",
          "documents",
          "frequentFlyerPrograms",
          "importantDates",
          "marketingConsent",
          "name",
          "nationalityCountryCode",
          "preferredChannel",
          "preferredLanguage",
          "preferredName",
          "profile",
          "residenceCountryCode",
          "revision",
          "sex",
          "travelerId"
        ],
        "additionalProperties": false,
        "description": "A traveler as the person sees and fills it: identity, contact, documents and preferences, without the agency's own fields."
      },
      "NoteKind": {
        "type": "string",
        "enum": [
          "CALL",
          "EMAIL",
          "MEETING",
          "MESSAGE",
          "NOTE"
        ],
        "description": "NOTE for a plain note; CALL, EMAIL, MEETING or MESSAGE to log a conversation."
      },
      "CustomFieldDefinition": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "pattern": "^[a-z][a-zA-Z0-9]{0,39}$",
            "description": "The key a traveler's value is stored under in their customFields, in camelCase: a lowercase letter, then up to 39 letters or digits, e.g. favoriteAirline. Unique among the agency's fields."
          },
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60,
            "description": "The name the agency's screens show for the field, 1 to 60 characters."
          },
          "options": {
            "maxItems": 30,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 60
            },
            "description": "The choices of a SELECT field, up to 30, each 1 to 60 characters; a traveler's value must be one of them. The other types ignore it: send an empty list."
          },
          "type": {
            "description": "The kind of value the field holds; a traveler's value that is not of this kind is refused.",
            "$ref": "#/components/schemas/CustomFieldType"
          }
        },
        "required": [
          "key",
          "label",
          "options",
          "type"
        ],
        "additionalProperties": false,
        "description": "A field the agency adds to its travelers, set in a traveler's customFields under its key."
      },
      "CustomFieldType": {
        "type": "string",
        "enum": [
          "BOOLEAN",
          "DATE",
          "NUMBER",
          "SELECT",
          "TEXT"
        ],
        "description": "The kind of value a custom field holds: BOOLEAN (true or false), DATE (YYYY-MM-DD), NUMBER, SELECT (one of the field's options) or TEXT."
      },
      "TravelerVisibility": {
        "type": "string",
        "enum": [
          "ADVISORS",
          "COMPANY"
        ],
        "description": "ADVISORS: only the advisors who serve the traveler, and admins. COMPANY: every advisor of the agency."
      },
      "Segment": {
        "type": "object",
        "properties": {
          "filter": {
            "description": "The conditions the segment's travelers meet.",
            "$ref": "#/components/schemas/SegmentFilter"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "The segment's name, 1 to 80 characters."
          },
          "segmentId": {
            "type": "string",
            "minLength": 1,
            "description": "The segment's id: what GET /crm/travelers?segmentId= takes."
          }
        },
        "required": [
          "filter",
          "name",
          "segmentId"
        ],
        "additionalProperties": false,
        "description": "A saved filter of travelers, listed with GET /crm/travelers?segmentId=."
      },
      "TravelerStage": {
        "type": "string",
        "enum": [
          "CLIENT",
          "LEAD"
        ],
        "description": "LEAD until the traveler's first booking is confirmed, then CLIENT. An advisor may set it too."
      },
      "TravelerTag": {
        "type": "string",
        "minLength": 1,
        "maxLength": 40,
        "description": "A label the agency uses to group travelers, e.g. VIP."
      },
      "SegmentFilter": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "description": "Travelers this advisor serves, by user id. Left out, any advisor.",
            "type": "string",
            "minLength": 1
          },
          "documentExpiringWithinDays": {
            "description": "Travelers with a document that expires within this many days, 1 to 730.",
            "type": "integer",
            "minimum": 1,
            "maximum": 730
          },
          "isArchived": {
            "description": "True keeps archived travelers, false the ones not archived. Left out, the list's own isArchived decides: travelers not archived, unless it says otherwise.",
            "type": "boolean"
          },
          "nextTripWithinDays": {
            "description": "Travelers whose next trip starts within this many days, 1 to 365.",
            "type": "integer",
            "minimum": 1,
            "maximum": 365
          },
          "stage": {
            "description": "Travelers at this stage only.",
            "$ref": "#/components/schemas/TravelerStage"
          },
          "tag": {
            "description": "Travelers with this tag only.",
            "$ref": "#/components/schemas/TravelerTag"
          }
        },
        "additionalProperties": false,
        "description": "The conditions a segment's travelers meet, all of them at once; a condition left out keeps everyone."
      },
      "TaskTemplate": {
        "type": "object",
        "properties": {
          "applyOnTripCreated": {
            "type": "boolean",
            "description": "Whether the template is applied to every trip of the agency as soon as the trip is created."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "The template's name, 1 to 80 characters."
          },
          "tasks": {
            "minItems": 1,
            "maxItems": 30,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTemplateStep"
            },
            "description": "The tasks the template adds to a trip, 1 to 30."
          },
          "templateId": {
            "type": "string",
            "minLength": 1,
            "description": "The template's id: what POST /crm/task-templates/{templateId}/apply takes."
          }
        },
        "required": [
          "applyOnTripCreated",
          "name",
          "tasks",
          "templateId"
        ],
        "additionalProperties": false,
        "description": "A list of tasks dated from a trip's creation, start or end, applied to a trip in one step."
      },
      "TaskTemplateStep": {
        "type": "object",
        "properties": {
          "anchor": {
            "description": "The trip date the task's date counts from.",
            "$ref": "#/components/schemas/TaskTemplateAnchor"
          },
          "offsetDays": {
            "type": "integer",
            "minimum": -365,
            "maximum": 365,
            "description": "Days after the anchor, -365 to 365; negative is before it, 0 is the anchor's day."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "The title of the task the template adds, 1 to 255 characters."
          }
        },
        "required": [
          "anchor",
          "offsetDays",
          "title"
        ],
        "additionalProperties": false,
        "description": "One task of a task template: its title and its date, as days before or after a date of the trip."
      },
      "TaskTemplateAnchor": {
        "type": "string",
        "enum": [
          "TRIP_CREATED",
          "TRIP_END",
          "TRIP_START"
        ],
        "description": "The trip date a template's task is dated from: TRIP_CREATED (the day the trip was created), TRIP_START (its first day) or TRIP_END (its last day). A task whose date the trip lacks has no date."
      },
      "Webhook": {
        "type": "object",
        "properties": {
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$",
            "description": "When the webhook was added."
          },
          "events": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CrmEventName"
            },
            "description": "The events sent to the webhook."
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether events are sent to it; false pauses it without losing it."
          },
          "secret": {
            "description": "The signing secret (whsec_…) the endpoint checks each delivery's X-Nicer-Signature with. Present only in the answer to the update that created the webhook, and never again: store it then.",
            "type": "string"
          },
          "secretLast4": {
            "type": "string",
            "description": "The last four characters of the signing secret, to tell secrets apart."
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "The HTTPS address the events are posted to."
          },
          "webhookId": {
            "type": "string",
            "minLength": 1,
            "description": "The webhook's id, sent back in an update to keep the webhook and its secret."
          }
        },
        "required": [
          "createdAt",
          "events",
          "isActive",
          "secretLast4",
          "url",
          "webhookId"
        ],
        "additionalProperties": false,
        "description": "An HTTPS endpoint of the agency that receives the CRM events it subscribes to, signed with its secret."
      },
      "CrmEventName": {
        "type": "string",
        "enum": [
          "crm.advisor-reminders-due.v1",
          "crm.note-changed.v1",
          "crm.settings-updated.v1",
          "crm.task-changed.v1",
          "crm.traveler-advisors-changed.v1",
          "crm.traveler-created.v1",
          "crm.traveler-documents-changed.v1",
          "crm.traveler-erased.v1",
          "crm.traveler-invitation-requested.v1",
          "crm.traveler-linked.v1",
          "crm.traveler-unlinked.v1",
          "crm.traveler-updated.v1",
          "crm.travelers-merged.v1",
          "crm.trip-updated.v1"
        ],
        "description": "The name of an event the CRM publishes."
      },
      "TaskOrigin": {
        "type": "string",
        "enum": [
          "ANNIVERSARY",
          "BIRTHDAY",
          "DOCUMENT_EXPIRY",
          "MANUAL",
          "TEMPLATE"
        ],
        "description": "MANUAL for a task a person created; TEMPLATE, BIRTHDAY, ANNIVERSARY or DOCUMENT_EXPIRY for one the CRM created."
      },
      "CustomFieldValue": {
        "anyOf": [
          {
            "type": "string",
            "maxLength": 500
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ],
        "description": "The value of a custom field the agency defined: text, a number, a yes or no, or null."
      },
      "TravelerOrigin": {
        "type": "string",
        "enum": [
          "BACKFILL",
          "CHECKOUT",
          "IMPORT",
          "INVITE",
          "MANUAL",
          "REFERRAL",
          "SIGNUP",
          "TRIP"
        ],
        "description": "How the traveler entered the CRM."
      },
      "TravelerDuplicate": {
        "type": "object",
        "properties": {
          "confidence": {
            "description": "HIGH for the same email, MEDIUM for the same phone or the same name and birth date.",
            "$ref": "#/components/schemas/DuplicateConfidence"
          },
          "displayName": {
            "type": "string",
            "description": "The other traveler's display name."
          },
          "reason": {
            "description": "What the two travelers share.",
            "$ref": "#/components/schemas/DuplicateReason"
          },
          "travelerId": {
            "description": "The other traveler's id: merge the two with POST /crm/travelers/{travelerId}/merge.",
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "confidence",
          "displayName",
          "reason",
          "travelerId"
        ],
        "additionalProperties": false,
        "description": "Another traveler of the agency who may be the same person: HIGH for the same email, MEDIUM for the same phone or the same name and birth date."
      },
      "DuplicateConfidence": {
        "type": "string",
        "enum": [
          "HIGH",
          "MEDIUM"
        ],
        "description": "How likely two travelers are one person: HIGH for the same email, MEDIUM for the same phone or the same name and birth date."
      },
      "DuplicateReason": {
        "type": "string",
        "enum": [
          "EMAIL",
          "NAME_AND_BIRTH_DATE",
          "PHONE"
        ],
        "description": "What two travelers share: EMAIL, the same email; PHONE, the same phone; NAME_AND_BIRTH_DATE, the same legal name and date of birth."
      },
      "TravelerRelationship": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": "string",
            "description": "The related traveler's display name."
          },
          "relatedTravelerId": {
            "description": "The related traveler's id.",
            "$ref": "#/components/schemas/TravelerId"
          },
          "relationship": {
            "description": "Who the related traveler is to this one.",
            "$ref": "#/components/schemas/TravelerRelationshipKind"
          }
        },
        "required": [
          "displayName",
          "relatedTravelerId",
          "relationship"
        ],
        "additionalProperties": false,
        "description": "Another traveler of the agency this one is related to, and who they are to this one."
      },
      "TravelerTrip": {
        "type": "object",
        "properties": {
          "relationship": {
            "description": "The traveler's part on the trip.",
            "$ref": "#/components/schemas/TravelersTripRelationship"
          },
          "salesStage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SalesStage"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where the trip stands as a sale; null when it has no stage."
          },
          "travelersTripId": {
            "type": "string",
            "description": "The trip's id, e.g. TT…."
          },
          "tripEndDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's last day, YYYY-MM-DD; null while it has no dates."
          },
          "tripName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's name; null when it has none."
          },
          "tripStartDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trip's first day, YYYY-MM-DD; null while it has no dates."
          }
        },
        "required": [
          "relationship",
          "salesStage",
          "travelersTripId",
          "tripEndDate",
          "tripName",
          "tripStartDate"
        ],
        "additionalProperties": false,
        "description": "A trip the traveler is on: its id, name, dates, sales stage and the traveler's part on it."
      },
      "SalesStage": {
        "type": "string",
        "enum": [
          "BOOKED",
          "COMPLETED",
          "INQUIRY",
          "LOST",
          "PLANNING",
          "PROPOSAL",
          "TRAVELING"
        ],
        "description": "Where a trip stands as a sale: INQUIRY, PLANNING, PROPOSAL, BOOKED, TRAVELING, COMPLETED or LOST."
      },
      "TripTraveler": {
        "type": "object",
        "properties": {
          "participant": {
            "description": "The traveler's details as a checkout takes them. Their documents are answered to the trip's staff, and to a traveler on the trip for themselves and the relatives they fill in for; anyone else reads an empty list.",
            "$ref": "#/components/schemas/TripParticipant"
          },
          "relationship": {
            "description": "The traveler's part in the trip; PRIMARY is the traveler the trip is for.",
            "$ref": "#/components/schemas/TravelersTripRelationship"
          },
          "travelerId": {
            "description": "The traveler's id in the CRM (TRV…).",
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "participant",
          "relationship",
          "travelerId"
        ],
        "additionalProperties": false,
        "description": "One traveler of a trip, their part in it and the details a checkout needs."
      },
      "HotelMembership": {
        "type": "object",
        "properties": {
          "chainCode": {
            "type": "string",
            "pattern": "^[A-Z0-9]{2}$"
          },
          "memberNumber": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50,
            "pattern": "^[A-Za-z0-9-]+$"
          }
        },
        "required": [
          "chainCode",
          "memberNumber"
        ],
        "additionalProperties": false
      },
      "TravelDocument": {
        "type": "object",
        "properties": {
          "citizenshipCountry": {
            "description": "The citizenship stated on this document, as an ISO 3166-1 alpha-2 country code; it is not always the person's nationality. Null or absent when the document states none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "expirationDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the document expires, YYYY-MM-DD; null for one that does not."
          },
          "issueDate": {
            "description": "The day the document was issued, YYYY-MM-DD; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "issuingCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "kind": {
            "description": "What the document is.",
            "$ref": "#/components/schemas/TravelDocumentKind"
          },
          "number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "The document's number, in full, 1 to 100 characters."
          },
          "placeOfBirth": {
            "description": "The place of birth printed on the document; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "placeOfIssue": {
            "description": "Where the document was issued; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expirationDate",
          "issuingCountryCode",
          "kind",
          "number"
        ],
        "additionalProperties": false,
        "description": "A travel document: its kind, number, issuing country and dates, as a reservation needs them.",
        "examples": [
          {
            "expirationDate": "2031-02-01",
            "issuingCountryCode": "MX",
            "kind": "PASSPORT",
            "number": "G12345678"
          }
        ]
      },
      "TripParticipant": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's postal address; null when unknown."
          },
          "hotelMembership": {
            "description": "The person's membership number with the hotel chain (chainCode), for a hotel booking; null or left out when there is none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/HotelMembership"
              },
              {
                "type": "null"
              }
            ]
          },
          "birthDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's date of birth, YYYY-MM-DD; null when unknown."
          },
          "contact": {
            "description": "How to reach the person.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "documents": {
            "maxItems": 12,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelDocument"
            },
            "description": "The person's travel documents (passport, visa, national ID), up to 12; empty when there are none."
          },
          "frequentFlyerPrograms": {
            "description": "The person's airline loyalty memberships, up to 8, sent with a flight booking.",
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            }
          },
          "name": {
            "description": "The person's legal name, as printed on their travel document.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's nationality, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "sex": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sex marker printed on the person's travel document; null when unknown."
          }
        },
        "required": [
          "address",
          "birthDate",
          "contact",
          "documents",
          "name",
          "nationalityCountryCode",
          "sex"
        ],
        "additionalProperties": false,
        "description": "The traveler as a checkout takes them: legal name, birth date, sex, nationality, contact, address, documents and frequent flyer memberships."
      },
      "FavoriteKind": {
        "type": "string",
        "enum": [
          "HOTEL",
          "ACTIVITY"
        ]
      },
      "FavoriteActivity": {
        "type": "object",
        "properties": {
          "destinationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 32
          },
          "destinationName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMinutes": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewCount": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "destinationId",
          "destinationName",
          "durationMinutes",
          "reviewCount"
        ],
        "additionalProperties": false
      },
      "HostView": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "type": "string",
            "minLength": 1
          },
          "aliasOf": {
            "type": "string"
          },
          "app": {
            "$ref": "#/components/schemas/HostApp"
          },
          "attempt": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "canonical": {
            "type": "boolean"
          },
          "certificateArn": {
            "type": "string"
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string",
            "minLength": 1
          },
          "dnsElsewhereSince": {
            "type": "string"
          },
          "dnsTarget": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/HostKind"
          },
          "lastError": {
            "type": "string"
          },
          "status": {
            "$ref": "#/components/schemas/HostStatus"
          },
          "tenantId": {
            "type": "string"
          },
          "tenantName": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "validationMode": {
            "type": "string",
            "enum": [
              "cloudfront",
              "self-hosted"
            ]
          },
          "validationRedirectFrom": {
            "type": "string"
          },
          "validationRedirectTo": {
            "type": "string"
          },
          "host": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "canonical",
          "companyName",
          "createdAt",
          "createdBy",
          "kind",
          "status",
          "updatedAt",
          "host"
        ],
        "additionalProperties": false
      },
      "HostApp": {
        "type": "string",
        "enum": [
          "BOOKING",
          "PORTAL",
          "PAY"
        ]
      },
      "HostKind": {
        "type": "string",
        "enum": [
          "SUBDOMAIN",
          "CUSTOM",
          "ALIAS"
        ]
      },
      "HostStatus": {
        "type": "string",
        "enum": [
          "PENDING_DNS",
          "ISSUING",
          "ACTIVE",
          "FAILED_DNS",
          "FAILED_CERT",
          "REMOVING"
        ]
      },
      "CompanyBranding": {
        "type": "object",
        "properties": {
          "accentColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "backgroundColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "bodyFont": {
            "$ref": "#/components/schemas/SiteFont"
          },
          "borderColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "contact": {
            "type": "object",
            "properties": {
              "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-z]{2,}$"
              },
              "instagram": {
                "type": "string",
                "maxLength": 64
              },
              "phone": {
                "type": "string",
                "maxLength": 32
              },
              "whatsapp": {
                "type": "string",
                "maxLength": 32
              }
            }
          },
          "faviconUrl": {
            "type": "string"
          },
          "headingFont": {
            "$ref": "#/components/schemas/SiteFont"
          },
          "hero": {
            "type": "object",
            "properties": {
              "imageUrl": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "subtitle": {
                "type": "string",
                "maxLength": 160
              },
              "title": {
                "type": "string",
                "maxLength": 80
              }
            }
          },
          "logoDarkUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "logoUrl": {
            "type": "string"
          },
          "mode": {
            "type": "string",
            "enum": [
              "light",
              "dark",
              "system"
            ]
          },
          "mutedTextColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "primaryColor": {
            "type": "string"
          },
          "privacyUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "radius": {
            "type": "integer",
            "minimum": 0,
            "maximum": 24
          },
          "seo": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "maxLength": 160
              },
              "title": {
                "type": "string",
                "maxLength": 60
              }
            }
          },
          "surfaceColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          },
          "textColor": {
            "type": "string",
            "pattern": "^#[0-9a-fA-F]{6}$"
          }
        }
      },
      "SiteFont": {
        "type": "string",
        "enum": [
          "Inter",
          "DM Sans",
          "Manrope",
          "Poppins",
          "Montserrat",
          "Lato",
          "Nunito",
          "Work Sans",
          "Playfair Display",
          "Merriweather",
          "Lora",
          "Cormorant Garamond"
        ]
      },
      "UserWithMemberAttrs": {
        "type": "object",
        "properties": {
          "avatar": {
            "description": "The person's photo: a URL, or the file's storage key in the answers of DELETE /identity/user/{userId} and of an admin's GET /identity/users.",
            "type": "string"
          },
          "biography": {
            "description": "What the person writes about themself.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "calendarUrl": {
            "description": "A link where people book time with the person.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "description": "The agency the person last switched into; null, empty or absent on some older accounts.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deleted": {
            "description": "True once the account is closed.",
            "type": "boolean"
          },
          "deletedAt": {
            "description": "When the account was closed.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deletedBy": {
            "description": "The user id of whoever closed the account.",
            "type": "string"
          },
          "email": {
            "description": "The email the person signs in with; absent, or null on some older accounts, for a person who signed up by phone.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "externalIntercomId": {
            "description": "A support-tool id some older accounts keep.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "familyName": {
            "type": "string",
            "description": "The person's last name."
          },
          "fullName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "givenName and familyName joined; null until the person has both."
          },
          "givenName": {
            "type": "string",
            "description": "The person's first name."
          },
          "instagram": {
            "description": "The person's Instagram handle.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "invitedAt": {
            "description": "When the person was invited, on some older accounts.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "invitedBy": {
            "description": "The user id of whoever invited or referred the person.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModifiedBy": {
            "description": "The user id of whoever last changed the account.",
            "type": "string"
          },
          "location": {
            "description": "Where the person says they are.",
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "countryCode": {
                "type": "string"
              },
              "latitude": {
                "type": "number"
              },
              "longitude": {
                "type": "number"
              },
              "neighborhood": {
                "type": "string"
              },
              "region": {
                "type": "string"
              },
              "state": {
                "type": "string"
              },
              "zipCode": {
                "type": "string"
              }
            },
            "additionalProperties": false
          },
          "phoneNumber": {
            "description": "The phone number the person signs in with; absent, or null on some older accounts, for a person who signed up by email.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "registrationSource": {
            "type": "string"
          },
          "role": {
            "description": "The person's role in the agency they last switched into.",
            "$ref": "#/components/schemas/AuthScope"
          },
          "searchKey": {
            "description": "fullName in lowercase, which searches match.",
            "type": "string"
          },
          "tenantOwner": {
            "description": "Set on some older accounts.",
            "type": "boolean",
            "const": true
          },
          "tourProgress": {
            "description": "The in-app product tours the person completed, skipped or dismissed, by tour id.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "completedAt": {
                  "type": "string",
                  "description": "When the person got through the tour."
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "completed",
                    "skipped",
                    "dismissed"
                  ]
                }
              },
              "required": [
                "completedAt",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "username": {
            "description": "The person's handle, made from their name, for referral links.",
            "type": "string"
          },
          "zoneinfo": {
            "description": "The person's time zone, an IANA name such as America/Bogota.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "tenantId": {
            "type": "string",
            "description": "The partition the account is stored in: the userId for every account opened today."
          },
          "userId": {
            "type": "string",
            "description": "The person's id, their sign-in subject."
          },
          "createdAt": {
            "type": "string",
            "description": "When the account was opened."
          },
          "type": {
            "type": "string",
            "const": "User"
          },
          "updatedAt": {
            "type": "string",
            "description": "When the account last changed."
          },
          "bookingAccessEnabled": {
            "type": "boolean"
          },
          "documents": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hasAdvisorPortalAccess": {
            "type": "boolean"
          },
          "isTestUser": {
            "type": "boolean"
          },
          "noLeads": {
            "type": "boolean"
          },
          "onboardingCompleted": {
            "type": "boolean"
          }
        },
        "required": [
          "familyName",
          "fullName",
          "givenName",
          "role",
          "tenantId",
          "userId",
          "createdAt",
          "type",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "FeatureFlag": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "createdBy": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "operator": {
                      "type": "string",
                      "enum": [
                        "equals",
                        "contains",
                        "startsWith",
                        "endsWith",
                        "regex"
                      ]
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "required": [
                    "attribute",
                    "operator",
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "state": {
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "flag": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "FeatureFlag"
              },
              "targetType": {
                "type": "string",
                "const": "USER"
              },
              "userId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "state",
              "value",
              "createdAt",
              "updatedAt",
              "flag",
              "type",
              "targetType",
              "userId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "createdBy": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "operator": {
                      "type": "string",
                      "enum": [
                        "equals",
                        "contains",
                        "startsWith",
                        "endsWith",
                        "regex"
                      ]
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "required": [
                    "attribute",
                    "operator",
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "state": {
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "flag": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "FeatureFlag"
              },
              "companyName": {
                "type": "string",
                "minLength": 1
              },
              "targetType": {
                "type": "string",
                "const": "COMPANY"
              }
            },
            "required": [
              "state",
              "value",
              "createdAt",
              "updatedAt",
              "flag",
              "type",
              "companyName",
              "targetType"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "createdBy": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "rules": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "attribute": {
                      "type": "string"
                    },
                    "operator": {
                      "type": "string",
                      "enum": [
                        "equals",
                        "contains",
                        "startsWith",
                        "endsWith",
                        "regex"
                      ]
                    },
                    "value": {
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "number"
                        },
                        {
                          "type": "boolean"
                        }
                      ]
                    }
                  },
                  "required": [
                    "attribute",
                    "operator",
                    "value"
                  ],
                  "additionalProperties": false
                }
              },
              "state": {
                "type": "string",
                "enum": [
                  "active",
                  "inactive"
                ]
              },
              "value": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "number"
                  },
                  {
                    "type": "string"
                  },
                  {
                    "type": "object",
                    "propertyNames": {
                      "type": "string"
                    },
                    "additionalProperties": {}
                  }
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "flag": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "FeatureFlag"
              },
              "targetType": {
                "type": "string",
                "const": "GLOBAL"
              }
            },
            "required": [
              "state",
              "value",
              "createdAt",
              "updatedAt",
              "flag",
              "type",
              "targetType"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CompanyUrls": {
        "type": "object",
        "properties": {
          "payUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "portalUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "siteUrl": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          }
        },
        "required": [
          "payUrl",
          "portalUrl",
          "siteUrl"
        ],
        "additionalProperties": false
      },
      "Carrier": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "iataCode": {
            "type": "string"
          },
          "icaoCode": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "additionalProperties": false
      },
      "FlightLookupLeg": {
        "type": "object",
        "properties": {
          "aircraft": {
            "type": "string"
          },
          "departingAt": {
            "type": "string"
          },
          "arrivingAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "$ref": "#/components/schemas/FlightLookupAirport"
          },
          "destination": {
            "$ref": "#/components/schemas/FlightLookupAirport"
          },
          "operatingCarrier": {
            "type": "object",
            "properties": {
              "iataCode": {
                "type": "string"
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "iataCode",
              "name"
            ],
            "additionalProperties": false
          },
          "operatingCarrierFlightNumber": {
            "type": "string"
          }
        },
        "required": [
          "departingAt",
          "arrivingAt",
          "origin",
          "destination",
          "operatingCarrier",
          "operatingCarrierFlightNumber"
        ],
        "additionalProperties": false
      },
      "FlightLookupAirport": {
        "type": "object",
        "properties": {
          "iataCode": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "timeZone": {
            "type": "string"
          },
          "terminal": {
            "type": "string"
          },
          "gate": {
            "type": "string"
          }
        },
        "required": [
          "iataCode"
        ],
        "additionalProperties": false
      },
      "PlaceKind": {
        "type": "string",
        "enum": [
          "hotel",
          "city",
          "airport",
          "place"
        ]
      },
      "PlaceSource": {
        "type": "string"
      },
      "PlacePhoto": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "key": {
            "type": "string"
          }
        },
        "required": [
          "url"
        ],
        "additionalProperties": false
      },
      "Place": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/PlaceKind"
          },
          "source": {
            "$ref": "#/components/schemas/PlaceSource"
          },
          "name": {
            "type": "string"
          },
          "address": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "city": {
            "type": "string"
          },
          "state": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "iataCode": {
            "type": "string"
          },
          "hotelReference": {
            "type": "string"
          },
          "placeId": {
            "type": "string"
          },
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PlacePhoto"
            }
          }
        },
        "required": [
          "id",
          "kind",
          "source",
          "name",
          "photos"
        ],
        "additionalProperties": false
      },
      "AvailableFilters": {
        "type": "object",
        "properties": {
          "duration": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string"
                    },
                    "maxMinutes": {
                      "type": "number"
                    },
                    "minMinutes": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "label",
                    "minMinutes"
                  ],
                  "additionalProperties": false
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "priceRange": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "max": {
                    "type": "number"
                  },
                  "min": {
                    "type": "number"
                  }
                },
                "required": [
                  "max",
                  "min"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "duration",
          "priceRange"
        ],
        "additionalProperties": false
      },
      "TripItineraryStatus": {
        "type": "string",
        "enum": [
          "PROPOSAL",
          "IN_PROGRESS",
          "TRAVELING"
        ]
      },
      "ProjectedSegment": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "flight"
              },
              "baggageCharges": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightBaggageCharge"
                }
              },
              "brandFeatures": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                }
              },
              "cabin": {
                "type": "string",
                "enum": [
                  "BUSINESS",
                  "ECONOMY",
                  "FIRST",
                  "PREMIUM_ECONOMY"
                ]
              },
              "commercialSnapshot": {
                "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                "$ref": "#/components/schemas/BookingCommercialSnapshot"
              },
              "fareRules": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                }
              },
              "flightIndex": {
                "type": "string"
              },
              "flightType": {
                "type": "string",
                "enum": [
                  "one-way",
                  "round-trip",
                  "multi-city"
                ]
              },
              "inbound": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightItinerary"
                }
              },
              "outbound": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightItinerary"
                }
              },
              "owner": {
                "$ref": "#/components/schemas/FlightCarrierSnapshot"
              },
              "passengers": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightPassengerSnapshot"
                }
              },
              "policies": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/QuotePolicy"
                }
              },
              "priceSnapshot": {
                "$ref": "#/components/schemas/BookingPriceSnapshot"
              },
              "rules": {
                "$ref": "#/components/schemas/FlightRules"
              },
              "ticketingDeadline": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "flightType",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "lodging"
              },
              "bookingOccupancy": {
                "type": "object",
                "properties": {
                  "rooms": {
                    "minItems": 1,
                    "maxItems": 8,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "adults": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 8
                        },
                        "children": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 6
                        },
                        "childrenAges": {
                          "maxItems": 6,
                          "type": "array",
                          "items": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 17
                          }
                        }
                      },
                      "required": [
                        "adults",
                        "children",
                        "childrenAges"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "rooms"
                ],
                "additionalProperties": false
              },
              "checkinDate": {
                "type": "string"
              },
              "checkoutDate": {
                "type": "string"
              },
              "commercialSnapshot": {
                "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                "$ref": "#/components/schemas/BookingCommercialSnapshot"
              },
              "lodge": {
                "type": "object",
                "properties": {
                  "checkin": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checkout": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "guests": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "name": {
                    "type": "string"
                  },
                  "rooms": {
                    "anyOf": [
                      {
                        "type": "array",
                        "items": {
                          "$ref": "#/components/schemas/Room"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "stars": {
                    "type": "number"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "proposed",
                      "hold",
                      "booked",
                      "cancelled"
                    ]
                  }
                },
                "required": [
                  "name"
                ],
                "additionalProperties": false
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "checkinDate",
              "checkoutDate",
              "lodge",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "car_rental"
              },
              "carType": {
                "type": "string"
              },
              "dropoff": {
                "$ref": "#/components/schemas/Location"
              },
              "engine": {
                "type": "string",
                "enum": [
                  "ELECTRIC",
                  "HYBRID",
                  "GASOLINE",
                  "DIESEL"
                ]
              },
              "insurance": {
                "type": "string"
              },
              "model": {
                "type": "string"
              },
              "pickup": {
                "$ref": "#/components/schemas/Location"
              },
              "transmission": {
                "type": "string",
                "enum": [
                  "MANUAL",
                  "AUTOMATIC"
                ]
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "dropoff",
              "pickup",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "transportation"
              },
              "arrivalDateTime": {
                "type": "string"
              },
              "arrivalLocation": {
                "$ref": "#/components/schemas/Location"
              },
              "arrivalTimezone": {
                "type": "string"
              },
              "departureDateTime": {
                "type": "string"
              },
              "departureLocation": {
                "$ref": "#/components/schemas/Location"
              },
              "departureTimezone": {
                "type": "string"
              },
              "guests": {
                "type": "number"
              },
              "transportationType": {
                "type": "string",
                "enum": [
                  "ground_transportation",
                  "train",
                  "bus",
                  "automobile"
                ]
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "cruise"
              },
              "arrivalDateTime": {
                "type": "string"
              },
              "arrivalLocation": {
                "$ref": "#/components/schemas/Location"
              },
              "arrivalTimezone": {
                "type": "string"
              },
              "departureDateTime": {
                "type": "string"
              },
              "departureLocation": {
                "$ref": "#/components/schemas/Location"
              },
              "departureTimezone": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "proposed",
                  "hold",
                  "booked",
                  "cancelled"
                ]
              },
              "stop": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Location"
                }
              },
              "suites": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Suite"
                }
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "departureLocation",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "$ref": "#/components/schemas/Location"
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "activity"
              },
              "additionalInfo": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "bookingQuestions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "cancellationPolicy": {
                "type": "object",
                "properties": {
                  "cancelIfBadWeather": {
                    "type": "boolean"
                  },
                  "freeDeadline": {
                    "type": "string"
                  },
                  "isCancellable": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "isCancellable"
                ],
                "additionalProperties": false
              },
              "dropoffInstructions": {
                "type": "string"
              },
              "dropoffLocation": {
                "$ref": "#/components/schemas/Location"
              },
              "dropoffTime": {
                "type": "string"
              },
              "durationMinutes": {
                "type": "number"
              },
              "durationText": {
                "type": "string"
              },
              "exclusions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "freeCancellation": {
                "type": "boolean"
              },
              "inclusions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "instantConfirmation": {
                "type": "boolean"
              },
              "itinerarySteps": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "admissionIncluded": {
                      "type": "string",
                      "enum": [
                        "YES",
                        "NO",
                        "NOT_APPLICABLE"
                      ]
                    },
                    "description": {
                      "type": "string"
                    },
                    "durationMinutes": {
                      "type": "number"
                    },
                    "durationText": {
                      "type": "string"
                    },
                    "location": {
                      "$ref": "#/components/schemas/Location"
                    },
                    "passByWithoutStopping": {
                      "type": "boolean"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "title"
                  ],
                  "additionalProperties": false
                }
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "maxTravelersPerBooking": {
                "type": "number"
              },
              "minTravelersPerBooking": {
                "type": "number"
              },
              "mobileTicket": {
                "type": "boolean"
              },
              "pickupInstructions": {
                "type": "string"
              },
              "pickupLocation": {
                "$ref": "#/components/schemas/Location"
              },
              "pickupTime": {
                "type": "string"
              },
              "privateTour": {
                "type": "boolean"
              },
              "provider": {
                "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                "type": "string"
              },
              "providerBookingRef": {
                "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                "type": "string"
              },
              "providerProductCode": {
                "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                "type": "string"
              },
              "providerProductUrl": {
                "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                "type": "string"
              },
              "reviews": {
                "type": "object",
                "properties": {
                  "averageRating": {
                    "type": "number"
                  },
                  "totalReviews": {
                    "type": "number"
                  }
                },
                "additionalProperties": false
              },
              "skipTheLine": {
                "type": "boolean"
              },
              "status": {
                "type": "string",
                "enum": [
                  "proposed",
                  "hold",
                  "booked",
                  "cancelled"
                ]
              },
              "supplierName": {
                "type": "string"
              },
              "supplierReference": {
                "type": "string"
              },
              "timeZone": {
                "type": "string"
              },
              "travelers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "restaurant"
              },
              "status": {
                "type": "string",
                "enum": [
                  "proposed",
                  "hold",
                  "booked",
                  "cancelled"
                ]
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "type",
              "purchase"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorInsights": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "amenities": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "approvedAt": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "approvedBy": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "countTravelers": {
                "type": "number"
              },
              "createdAt": {
                "type": "string"
              },
              "createdBy": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              },
              "details": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "endDateTime": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "groupId": {
                "type": "string"
              },
              "hash": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "images": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isOnSitePayment": {
                "type": "boolean"
              },
              "lastModifiedBy": {
                "type": "string"
              },
              "location": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Location"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "metadata": {
                "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {}
              },
              "price": {
                "type": "number"
              },
              "priceInUSD": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "rate": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "startDateTime": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "updatedAt": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "custom"
              },
              "purchase": {
                "$ref": "#/components/schemas/SegmentPurchaseProjection"
              }
            },
            "required": [
              "id",
              "title",
              "type",
              "purchase"
            ],
            "additionalProperties": false
          }
        ]
      },
      "SegmentPurchaseProjection": {
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amountMinor": {
                  "type": "number",
                  "description": "The order total, or the external payment, in minor units."
                },
                "currency": {
                  "type": "string"
                },
                "externalReference": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "The provider's locator of the order, or the reference of an external payment."
                },
                "fulfillment": {
                  "$ref": "#/components/schemas/FulfillmentState"
                },
                "fulfillments": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/OrderFulfillment"
                  },
                  "description": "The documents issued for the order."
                },
                "orderId": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Null for a payment recorded outside Nicer."
                },
                "payAtProperty": {
                  "type": "boolean",
                  "description": "Part of the order is paid at the property."
                },
                "payment": {
                  "$ref": "#/components/schemas/PaymentState"
                },
                "reservation": {
                  "$ref": "#/components/schemas/ReservationState"
                }
              },
              "required": [
                "amountMinor",
                "currency",
                "externalReference",
                "fulfillment",
                "fulfillments",
                "orderId",
                "payAtProperty",
                "payment",
                "reservation"
              ],
              "additionalProperties": false
            },
            "description": "Every order attached to the segment and every unreversed external payment recorded against it."
          },
          "paid": {
            "type": "boolean",
            "description": "Some purchase of the segment is authorized or succeeded."
          },
          "payOnSite": {
            "type": "boolean",
            "description": "Paid at the property, or marked by the advisor as paid at the provider."
          }
        },
        "required": [
          "items",
          "paid",
          "payOnSite"
        ],
        "additionalProperties": false
      },
      "TripItineraryMode": {
        "type": "string",
        "enum": [
          "AUTO",
          "CUSTOM"
        ]
      },
      "ItineraryTravelersTrip": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedChatId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedTripItineraryId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "associatedUserIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "availableDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ],
                "additionalProperties": false
              }
            ]
          },
          "budgetCurrency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "companyName": {
            "type": "string"
          },
          "conciergeMessageSentAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdBy": {
            "type": "string"
          },
          "createdReason": {
            "type": "string",
            "enum": [
              "CREATED_BY_TRAVELER",
              "CREATED_BY_ADVISOR",
              "CREATED_BY_MATCHING_ADVISOR",
              "CREATED_BY_BOOKING"
            ]
          },
          "deleted": {
            "type": "boolean"
          },
          "deletedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "deletedBy": {
            "type": "string"
          },
          "destinations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Destination"
            }
          },
          "hasActivity": {
            "type": "boolean"
          },
          "hasFlexibleDates": {
            "type": "boolean"
          },
          "isAllPricesHidden": {
            "default": false,
            "type": "boolean"
          },
          "isItineraryVisible": {
            "default": true,
            "type": "boolean"
          },
          "isSummaryHidden": {
            "default": false,
            "type": "boolean"
          },
          "lastMessageTimestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "primaryTravelerUserId": {
            "type": "string"
          },
          "specialRequests": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggestionsEnabled": {
            "type": "boolean"
          },
          "travelers": {
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            },
            "additionalProperties": false
          },
          "tripEndDate": {
            "type": "string"
          },
          "tripStartDate": {
            "type": "string"
          },
          "tripTitle": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "budget": {
            "anyOf": [
              {
                "type": "string",
                "const": "goodValue"
              },
              {
                "type": "string",
                "const": "luxury"
              }
            ]
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string",
                "const": "holidays"
              },
              {
                "type": "string",
                "const": "business"
              },
              {
                "type": "string",
                "const": "honeymoon"
              },
              {
                "type": "string",
                "const": "familyFriends"
              }
            ]
          },
          "who": {
            "anyOf": [
              {
                "type": "string",
                "const": "solo"
              },
              {
                "type": "string",
                "const": "withKids"
              },
              {
                "type": "string",
                "const": "partner"
              },
              {
                "type": "string",
                "const": "group"
              }
            ]
          },
          "travelersTripId": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "TravelersTrip"
          },
          "isArchived": {
            "type": "boolean"
          },
          "status": {
            "$ref": "#/components/schemas/TripItineraryStatus"
          }
        },
        "required": [
          "associatedUserIds",
          "companyName",
          "createdBy",
          "destinations",
          "hasFlexibleDates",
          "isAllPricesHidden",
          "isItineraryVisible",
          "isSummaryHidden",
          "lastModifiedBy",
          "primaryTravelerUserId",
          "tripEndDate",
          "tripStartDate",
          "tripTitle",
          "travelersTripId",
          "createdAt",
          "updatedAt",
          "type",
          "isArchived",
          "status"
        ],
        "additionalProperties": false
      },
      "Itinerary": {
        "type": "object",
        "properties": {
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "caption": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "coverImageUrl": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                },
                "title": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "note",
                "title"
              ],
              "additionalProperties": false
            }
          },
          "segments": {
            "default": [],
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ItinerarySegment"
            }
          }
        },
        "required": [
          "name",
          "segments"
        ],
        "additionalProperties": false
      },
      "CarRentalOffer": {
        "type": "object",
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor"
            ],
            "additionalProperties": false
          },
          "productKind": {
            "type": "string",
            "const": "CAR_RENTAL"
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "availabilityStatus": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "cancellation": {
            "type": "object",
            "properties": {
              "allowed": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "penalty": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Money"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "allowed",
              "deadline",
              "penalty",
              "summary"
            ],
            "additionalProperties": false
          },
          "category": {
            "type": "string",
            "minLength": 1
          },
          "charges": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amountMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "chargeType": {
                  "type": "string",
                  "minLength": 1
                },
                "extraMileageCharge": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mileageAllowance": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "unitOfMeasure": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "amountMinor",
                "currency",
                "chargeType",
                "extraMileageCharge",
                "mileageAllowance",
                "unitOfMeasure"
              ],
              "additionalProperties": false
            }
          },
          "deskInstructions": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "dropOffAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "dropOffLocation": {
            "type": "object",
            "properties": {
              "address": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "latitude": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "localDateTime": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
              },
              "longitude": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "timeZone": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "utcOffset": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "address",
              "latitude",
              "longitude",
              "name"
            ],
            "additionalProperties": false
          },
          "estimatedCommission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EstimatedCommission"
              },
              {
                "type": "null"
              }
            ]
          },
          "extras": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "availability": {
                  "type": "string",
                  "enum": [
                    "CONFIRMED",
                    "NOT_AVAILABLE",
                    "ON_REQUEST"
                  ]
                },
                "billingUnit": {
                  "type": "string",
                  "enum": [
                    "PER_BOOKING",
                    "PER_DAY",
                    "PER_HOUR",
                    "PER_UNIT"
                  ]
                },
                "code": {
                  "type": "string",
                  "minLength": 1
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "price": {
                  "$ref": "#/components/schemas/Money"
                }
              },
              "required": [
                "availability",
                "billingUnit",
                "code",
                "name",
                "price"
              ],
              "additionalProperties": false
            }
          },
          "fuelPolicy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "guaranteeRequired": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "height": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "width": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "height",
                "type",
                "url",
                "width"
              ],
              "additionalProperties": false
            }
          },
          "mileagePolicy": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "paymentPolicy": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "enum": [
                  "PAY_AT_LOCATION",
                  "PREPAID",
                  "UNKNOWN"
                ]
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "timing": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "PICKUP",
                      "RETURN"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "kind",
              "summary",
              "timing"
            ],
            "additionalProperties": false
          },
          "pickUpAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "pickUpLocation": {
            "type": "object",
            "properties": {
              "address": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "latitude": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": -90,
                    "maximum": 90
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "localDateTime": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
              },
              "longitude": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": -180,
                    "maximum": 180
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "timeZone": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "utcOffset": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "address",
              "latitude",
              "longitude",
              "name"
            ],
            "additionalProperties": false
          },
          "rateCode": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "ratePlan": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "rentalDays": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "rentalHours": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "specifications": {
            "type": "object",
            "properties": {
              "bodyType": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cargoCapacity": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "doors": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "driveWheelConfiguration": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fuelType": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "luggageCapacity": {
                "anyOf": [
                  {
                    "type": "number",
                    "minimum": 0
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "seatingCapacity": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "transmission": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "vehicleType": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "bodyType",
              "cargoCapacity",
              "doors",
              "driveWheelConfiguration",
              "fuelType",
              "luggageCapacity",
              "seatingCapacity",
              "transmission",
              "vehicleType"
            ],
            "additionalProperties": false
          },
          "supplierName": {
            "type": "string",
            "minLength": 1
          },
          "supplier": {
            "type": "object",
            "properties": {
              "code": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoUrl": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uri"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "code",
              "logoUrl",
              "name"
            ],
            "additionalProperties": false
          },
          "vehicleName": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "expiresAt",
          "offerReference",
          "price",
          "productKind",
          "providerKey",
          "availabilityStatus",
          "cancellation",
          "category",
          "deskInstructions",
          "dropOffAt",
          "dropOffLocation",
          "estimatedCommission",
          "extras",
          "fuelPolicy",
          "guaranteeRequired",
          "images",
          "mileagePolicy",
          "pickUpAt",
          "pickUpLocation",
          "rateCode",
          "ratePlan",
          "rentalDays",
          "rentalHours",
          "specifications",
          "supplierName",
          "supplier",
          "vehicleName"
        ],
        "additionalProperties": false
      },
      "EstimatedCommission": {
        "type": "object",
        "properties": {
          "grossAmount": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Money"
              },
              {
                "type": "null"
              }
            ]
          },
          "rateBasisPoints": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "NICER_PRICE_ADJUSTMENT",
              "PROVIDER_RATE"
            ]
          }
        },
        "required": [
          "grossAmount",
          "rateBasisPoints",
          "source"
        ],
        "additionalProperties": false
      },
      "FlightOffer": {
        "type": "object",
        "properties": {
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "passengers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "passengerType": {
                      "type": "string",
                      "enum": [
                        "ADULT",
                        "CHILD",
                        "INFANT"
                      ]
                    },
                    "totalMinor": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "count",
                    "passengerType",
                    "totalMinor"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "passengers"
            ],
            "additionalProperties": false
          },
          "productKind": {
            "type": "string",
            "const": "FLIGHT"
          },
          "providerKey": {
            "$ref": "#/components/schemas/ProviderKey"
          },
          "cabin": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "ECONOMY",
              "FIRST",
              "PREMIUM_ECONOMY"
            ]
          },
          "estimatedCommission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EstimatedCommission"
              },
              {
                "type": "null"
              }
            ]
          },
          "optionalDocumentTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "PASSPORT",
                "NATIONAL_ID",
                "ALIEN_RESIDENT",
                "VISA",
                "KNOWN_TRAVELER_NUMBER",
                "REDRESS_NUMBER"
              ]
            }
          },
          "owner": {
            "type": "object",
            "properties": {
              "code": {
                "$ref": "#/components/schemas/CarrierCode"
              },
              "logoAssetReference": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "code",
              "logoAssetReference",
              "name"
            ],
            "additionalProperties": false
          },
          "validatingCarriers": {
            "description": "Every airline that may issue this fare's ticket, the default (`owner`) first. Present only when there is more than one; checkout takes the chosen code as `validatingCarrier`.",
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "$ref": "#/components/schemas/CarrierCode"
                },
                "logoAssetReference": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "code",
                "logoAssetReference",
                "name"
              ],
              "additionalProperties": false
            }
          },
          "passengers": {
            "minItems": 1,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 9
                    },
                    "type": {
                      "type": "string",
                      "const": "ADULT"
                    }
                  },
                  "required": [
                    "count",
                    "type"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8
                    },
                    "type": {
                      "type": "string",
                      "const": "CHILD"
                    }
                  },
                  "required": [
                    "count",
                    "type"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 8
                    },
                    "type": {
                      "type": "string",
                      "const": "INFANT"
                    }
                  },
                  "required": [
                    "count",
                    "type"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "refundable": {
            "type": "boolean"
          },
          "changeable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "requiredDocumentTypes": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "PASSPORT",
                "NATIONAL_ID",
                "ALIEN_RESIDENT",
                "VISA",
                "KNOWN_TRAVELER_NUMBER",
                "REDRESS_NUMBER"
              ]
            }
          },
          "requiresInstantPayment": {
            "type": "boolean"
          },
          "serviceCapabilities": {
            "type": "object",
            "properties": {
              "ancillaries": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              },
              "seats": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              }
            },
            "required": [
              "ancillaries",
              "seats"
            ],
            "additionalProperties": false
          },
          "slices": {
            "minItems": 1,
            "maxItems": 6,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "connectionCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "durationMinutes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "overnight": {
                  "type": "boolean"
                },
                "segments": {
                  "minItems": 1,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FlightSegment"
                  }
                },
                "sliceReference": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "connectionCount",
                "durationMinutes",
                "overnight",
                "segments",
                "sliceReference"
              ],
              "additionalProperties": false
            }
          },
          "ticketingDeadline": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expiresAt",
          "offerReference",
          "price",
          "productKind",
          "providerKey",
          "cabin",
          "optionalDocumentTypes",
          "owner",
          "passengers",
          "refundable",
          "requiredDocumentTypes",
          "requiresInstantPayment",
          "serviceCapabilities",
          "slices",
          "ticketingDeadline"
        ],
        "additionalProperties": false
      },
      "FlightSegment": {
        "type": "object",
        "properties": {
          "aircraft": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string",
                    "minLength": 1
                  },
                  "manufacturer": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "model": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "code",
                  "manufacturer",
                  "model",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "arrival": {
            "type": "object",
            "properties": {
              "airport": {
                "type": "object",
                "properties": {
                  "city": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/CountryCode"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "iataCode": {
                    "$ref": "#/components/schemas/AirportCode"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "city",
                  "countryCode",
                  "iataCode",
                  "name",
                  "timeZone"
                ],
                "additionalProperties": false
              },
              "at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "localDateTime": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
              },
              "terminal": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "utcOffset": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "airport",
              "at",
              "localDateTime",
              "terminal",
              "utcOffset"
            ],
            "additionalProperties": false
          },
          "codeshare": {
            "type": "boolean"
          },
          "departure": {
            "type": "object",
            "properties": {
              "airport": {
                "type": "object",
                "properties": {
                  "city": {
                    "type": "string",
                    "minLength": 1
                  },
                  "countryCode": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/CountryCode"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "iataCode": {
                    "$ref": "#/components/schemas/AirportCode"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  },
                  "timeZone": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "city",
                  "countryCode",
                  "iataCode",
                  "name",
                  "timeZone"
                ],
                "additionalProperties": false
              },
              "at": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "localDateTime": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
              },
              "terminal": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "utcOffset": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "airport",
              "at",
              "localDateTime",
              "terminal",
              "utcOffset"
            ],
            "additionalProperties": false
          },
          "distanceMiles": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "durationMinutes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "fare": {
            "type": "object",
            "properties": {
              "bookingCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "brand": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "minLength": 1
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "code",
                      "name"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "cabin": {
                "type": "string",
                "enum": [
                  "BUSINESS",
                  "ECONOMY",
                  "FIRST",
                  "PREMIUM_ECONOMY"
                ]
              },
              "checkedBaggagePieces": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "checkedBaggageIncluded": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fareBasisCode": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "meals": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/FlightMeal"
                }
              },
              "seatsLeft": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "bookingCode",
              "brand",
              "cabin",
              "checkedBaggagePieces",
              "fareBasisCode"
            ],
            "additionalProperties": false
          },
          "flightNumber": {
            "type": "string",
            "minLength": 1
          },
          "hiddenStops": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "airport": {
                  "type": "object",
                  "properties": {
                    "city": {
                      "type": "string",
                      "minLength": 1
                    },
                    "countryCode": {
                      "anyOf": [
                        {
                          "$ref": "#/components/schemas/CountryCode"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "iataCode": {
                      "$ref": "#/components/schemas/AirportCode"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "timeZone": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "city",
                    "countryCode",
                    "iataCode",
                    "name",
                    "timeZone"
                  ],
                  "additionalProperties": false
                },
                "arrivesAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "arrivalLocalDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
                },
                "arrivalUtcOffset": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "departsAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                },
                "departureLocalDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}$"
                },
                "departureUtcOffset": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^[+-](?:0\\d|1\\d|2[0-3]):[0-5]\\d$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "durationMinutes": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                }
              },
              "required": [
                "airport",
                "arrivesAt",
                "arrivalLocalDateTime",
                "arrivalUtcOffset",
                "departsAt",
                "departureLocalDateTime",
                "departureUtcOffset",
                "durationMinutes"
              ],
              "additionalProperties": false
            }
          },
          "marketingCarrier": {
            "type": "object",
            "properties": {
              "code": {
                "$ref": "#/components/schemas/CarrierCode"
              },
              "logoAssetReference": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "code",
              "logoAssetReference",
              "name"
            ],
            "additionalProperties": false
          },
          "operatingCarrier": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "$ref": "#/components/schemas/CarrierCode"
                  },
                  "logoAssetReference": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "code",
                  "logoAssetReference",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "operatingFlightNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "segmentReference": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "aircraft",
          "arrival",
          "codeshare",
          "departure",
          "distanceMiles",
          "durationMinutes",
          "fare",
          "flightNumber",
          "hiddenStops",
          "marketingCarrier",
          "operatingCarrier",
          "operatingFlightNumber",
          "segmentReference"
        ],
        "additionalProperties": false
      },
      "FlightMeal": {
        "type": "string",
        "enum": [
          "BREAKFAST",
          "DINNER",
          "FOR_PURCHASE",
          "LUNCH",
          "MEAL",
          "NONE",
          "REFRESHMENTS",
          "SNACK"
        ],
        "description": "What a booking class serves on board one flight, from the airline's IATA meal service codes."
      },
      "FlightDiscoveryGroup": {
        "type": "object",
        "properties": {
          "sliceIndex": {
            "type": "integer",
            "minimum": 0,
            "maximum": 5
          },
          "sliceReference": {
            "type": "string",
            "maxLength": 64,
            "pattern": "^slc_[A-Za-z0-9]+$"
          },
          "optionCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "priceDeltaMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "sliceIndex",
          "sliceReference",
          "optionCount",
          "priceDeltaMinor"
        ],
        "additionalProperties": false
      },
      "FlightMatrixCell": {
        "type": "object",
        "properties": {
          "airline": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "$ref": "#/components/schemas/CarrierCode"
                  },
                  "logoAssetReference": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "code",
                  "logoAssetReference",
                  "name"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "stops": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2
          },
          "lowestPrice": {
            "$ref": "#/components/schemas/Money"
          },
          "flightCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "required": [
          "airline",
          "stops",
          "lowestPrice",
          "flightCount"
        ],
        "additionalProperties": false
      },
      "FlightFareOption": {
        "type": "object",
        "properties": {
          "baggage": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "passengerReference": {
                  "type": "string",
                  "minLength": 1
                },
                "pieces": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "segmentReference": {
                  "type": "string",
                  "minLength": 1
                },
                "size": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/BaggageSize"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "CARRY_ON",
                    "CHECKED"
                  ]
                },
                "weight": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/BaggageWeight"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "passengerReference",
                "pieces",
                "segmentReference",
                "type",
                "weight"
              ],
              "additionalProperties": false
            }
          },
          "baggageCharges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageCharge"
            }
          },
          "rules": {
            "$ref": "#/components/schemas/FlightRules"
          },
          "brandName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "estimatedCommission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EstimatedCommission"
              },
              {
                "type": "null"
              }
            ]
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "fareBenefits": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "code": {
                  "type": "string",
                  "minLength": 1
                },
                "description": {
                  "type": "string",
                  "minLength": 1
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "CHARGEABLE",
                    "INCLUDED",
                    "NOT_OFFERED"
                  ]
                }
              },
              "required": [
                "code",
                "description",
                "status"
              ],
              "additionalProperties": false
            }
          },
          "fareBenefitsAvailability": {
            "type": "string",
            "enum": [
              "AVAILABLE",
              "NOT_REQUESTED",
              "NOT_SUPPORTED"
            ]
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "price": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "passengers": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "passengerType": {
                      "type": "string",
                      "enum": [
                        "ADULT",
                        "CHILD",
                        "INFANT"
                      ]
                    },
                    "totalMinor": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "count",
                    "passengerType",
                    "totalMinor"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "passengers"
            ],
            "additionalProperties": false
          },
          "refundable": {
            "type": "boolean"
          },
          "requiresInstantPayment": {
            "type": "boolean"
          },
          "segmentFares": {
            "minItems": 1,
            "maxItems": 6,
            "type": "array",
            "items": {
              "minItems": 1,
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "bookingCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "brand": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string",
                            "minLength": 1
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "required": [
                          "code",
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cabin": {
                    "type": "string",
                    "enum": [
                      "BUSINESS",
                      "ECONOMY",
                      "FIRST",
                      "PREMIUM_ECONOMY"
                    ]
                  },
                  "checkedBaggagePieces": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checkedBaggageIncluded": {
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fareBasisCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "meals": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/FlightMeal"
                    }
                  },
                  "seatsLeft": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "bookingCode",
                  "brand",
                  "cabin",
                  "checkedBaggagePieces",
                  "fareBasisCode"
                ],
                "additionalProperties": false
              }
            }
          },
          "serviceCapabilities": {
            "type": "object",
            "properties": {
              "ancillaries": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              },
              "seats": {
                "type": "string",
                "enum": [
                  "AVAILABLE",
                  "NOT_REQUESTED",
                  "NOT_SUPPORTED"
                ]
              }
            },
            "required": [
              "ancillaries",
              "seats"
            ],
            "additionalProperties": false
          },
          "taxes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PriceComponent"
            }
          },
          "ticketingDeadline": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "brandName",
          "estimatedCommission",
          "expiresAt",
          "fareBenefits",
          "fareBenefitsAvailability",
          "offerReference",
          "price",
          "refundable",
          "requiresInstantPayment",
          "segmentFares",
          "serviceCapabilities",
          "ticketingDeadline"
        ],
        "additionalProperties": false
      },
      "HotelSummary": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "chainName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "commission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EstimatedCommission"
              },
              {
                "type": "null"
              }
            ]
          },
          "hotelReference": {
            "type": "string",
            "minLength": 1
          },
          "linkedHotelReferences": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "countryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "distanceKm": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0
              },
              {
                "type": "null"
              }
            ]
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "source": {
                  "type": "string"
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "source",
                "url"
              ],
              "additionalProperties": false
            }
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "nightCount": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "displayPrice": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "averageNightlyMinor": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nightly": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "baseMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "nicerAdjustmentMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "supplierFeesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "taxesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "baseMinor",
                        "discountMinor",
                        "nicerAdjustmentMinor",
                        "supplierFeesMinor",
                        "taxesMinor"
                      ],
                      "additionalProperties": false
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "totalMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "breakdown",
                    "date",
                    "totalMinor"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "averageNightlyMinor",
              "nightly"
            ],
            "additionalProperties": false
          },
          "displayCommission": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "additionalProperties": false
          },
          "price": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "averageNightlyMinor": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nightly": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "baseMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "nicerAdjustmentMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "supplierFeesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "taxesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "baseMinor",
                        "discountMinor",
                        "nicerAdjustmentMinor",
                        "supplierFeesMinor",
                        "taxesMinor"
                      ],
                      "additionalProperties": false
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "totalMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "breakdown",
                    "date",
                    "totalMinor"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "averageNightlyMinor",
              "nightly"
            ],
            "additionalProperties": false
          },
          "programmeCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "starRating": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              {
                "type": "null"
              }
            ]
          },
          "rateCodes": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "address",
          "amenities",
          "chainName",
          "city",
          "commission",
          "hotelReference",
          "countryCode",
          "distanceKm",
          "images",
          "latitude",
          "longitude",
          "name",
          "nightCount",
          "price",
          "starRating"
        ],
        "additionalProperties": false
      },
      "HotelDetailsResponse": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "chainName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "countryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "description": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "hotelReference": {
            "type": "string",
            "minLength": 1
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string",
                  "format": "uri"
                }
              },
              "required": [
                "url"
              ],
              "additionalProperties": false
            }
          },
          "latitude": {
            "type": "number",
            "minimum": -90,
            "maximum": 90
          },
          "longitude": {
            "type": "number",
            "minimum": -180,
            "maximum": 180
          },
          "name": {
            "type": "string",
            "minLength": 1
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelStayOffer"
            }
          },
          "singleRoomOnly": {
            "type": "boolean"
          },
          "starRating": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "amenities",
          "chainName",
          "city",
          "countryCode",
          "description",
          "hotelReference",
          "images",
          "latitude",
          "longitude",
          "name",
          "offers",
          "singleRoomOnly",
          "starRating"
        ],
        "additionalProperties": false
      },
      "HotelStayOffer": {
        "type": "object",
        "properties": {
          "breakfastIncluded": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "cancellation": {
            "type": "object",
            "properties": {
              "allowed": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "deadline": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "penalty": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/Money"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "summary": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "allowed",
              "deadline",
              "penalty",
              "summary"
            ],
            "additionalProperties": false
          },
          "commission": {
            "type": "object",
            "properties": {
              "perRoom": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/EstimatedCommission"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "total": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/EstimatedCommission"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "perRoom",
              "total"
            ],
            "additionalProperties": false
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "paymentPolicy": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "PREPAID"
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "summary"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "PAY_AT_PROPERTY"
                  },
                  "requiresGuarantee": {
                    "type": "boolean"
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "requiresGuarantee",
                  "summary"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "deadline": {
                    "description": "When the property charges the deposit at the latest: the earliest deadline the provider filed as a date. Null when it filed none or only a relative one, which the summary states. Offers from before this field never carry it.",
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "deposit": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/Money"
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "What the property charges as a deposit, in the offer's currency: the sum of the deposits the provider filed. Null when it filed no amount in that currency, or one above the stay's total; the summary then states the terms."
                  },
                  "kind": {
                    "type": "string",
                    "const": "DEPOSIT"
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ],
                    "description": "The provider's own deposit text when it filed one, otherwise the filed terms restated. Null when it filed neither."
                  }
                },
                "required": [
                  "deposit",
                  "kind",
                  "summary"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "GUARANTEE_ONLY"
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "summary"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "UNKNOWN"
                  },
                  "summary": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "kind",
                  "summary"
                ],
                "additionalProperties": false
              }
            ]
          },
          "displayPrice": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "averageNightlyMinor": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nightly": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "baseMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "nicerAdjustmentMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "supplierFeesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "taxesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "baseMinor",
                        "discountMinor",
                        "nicerAdjustmentMinor",
                        "supplierFeesMinor",
                        "taxesMinor"
                      ],
                      "additionalProperties": false
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "totalMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "breakdown",
                    "date",
                    "totalMinor"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "averageNightlyMinor",
              "nightly"
            ],
            "additionalProperties": false
          },
          "displayCommission": {
            "type": "object",
            "properties": {
              "amountMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              }
            },
            "required": [
              "amountMinor",
              "currency"
            ],
            "additionalProperties": false
          },
          "price": {
            "type": "object",
            "properties": {
              "breakdown": {
                "type": "object",
                "properties": {
                  "baseMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "discountMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "nicerAdjustmentMinor": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "supplierFeesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "taxesMinor": {
                    "anyOf": [
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "baseMinor",
                  "discountMinor",
                  "nicerAdjustmentMinor",
                  "supplierFeesMinor",
                  "taxesMinor"
                ],
                "additionalProperties": false
              },
              "currency": {
                "$ref": "#/components/schemas/CurrencyCode"
              },
              "totalMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "averageNightlyMinor": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nightly": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "breakdown": {
                      "type": "object",
                      "properties": {
                        "baseMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "discountMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "nicerAdjustmentMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "supplierFeesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "taxesMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "baseMinor",
                        "discountMinor",
                        "nicerAdjustmentMinor",
                        "supplierFeesMinor",
                        "taxesMinor"
                      ],
                      "additionalProperties": false
                    },
                    "date": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "totalMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "breakdown",
                    "date",
                    "totalMinor"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "breakdown",
              "currency",
              "totalMinor",
              "averageNightlyMinor",
              "nightly"
            ],
            "additionalProperties": false
          },
          "refundable": {
            "type": "boolean"
          },
          "rooms": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "bookingRequirements": {
                  "$ref": "#/components/schemas/HotelBookingRequirements"
                },
                "availabilityRemaining": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "bedTypes": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "category": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "price": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "breakdown": {
                          "type": "object",
                          "properties": {
                            "baseMinor": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "discountMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "nicerAdjustmentMinor": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "supplierFeesMinor": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "taxesMinor": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 9007199254740991
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "baseMinor",
                            "discountMinor",
                            "nicerAdjustmentMinor",
                            "supplierFeesMinor",
                            "taxesMinor"
                          ],
                          "additionalProperties": false
                        },
                        "currency": {
                          "$ref": "#/components/schemas/CurrencyCode"
                        },
                        "totalMinor": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "averageNightlyMinor": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nightly": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "breakdown": {
                                "type": "object",
                                "properties": {
                                  "baseMinor": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "discountMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "nicerAdjustmentMinor": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 9007199254740991
                                  },
                                  "supplierFeesMinor": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "taxesMinor": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 9007199254740991
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  }
                                },
                                "required": [
                                  "baseMinor",
                                  "discountMinor",
                                  "nicerAdjustmentMinor",
                                  "supplierFeesMinor",
                                  "taxesMinor"
                                ],
                                "additionalProperties": false
                              },
                              "date": {
                                "type": "string",
                                "format": "date",
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                              },
                              "totalMinor": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "breakdown",
                              "date",
                              "totalMinor"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "breakdown",
                        "currency",
                        "totalMinor",
                        "averageNightlyMinor",
                        "nightly"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ratePlanClientId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ratePlanCode": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "ratePlanName": {
                  "default": null,
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "restrictions": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "roomNumber": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 8
                },
                "roomReference": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "images": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "url": {
                        "type": "string",
                        "format": "uri"
                      }
                    },
                    "required": [
                      "url"
                    ],
                    "additionalProperties": false
                  }
                },
                "occupancy": {
                  "type": "object",
                  "properties": {
                    "childAgeRestrictions": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maximumAdults": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maximumChildren": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "maximumGuests": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "childAgeRestrictions",
                    "maximumAdults",
                    "maximumChildren",
                    "maximumGuests"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "availabilityRemaining",
                "bedTypes",
                "description",
                "name",
                "price",
                "ratePlanCode",
                "ratePlanName",
                "restrictions",
                "roomNumber",
                "roomReference",
                "amenities",
                "images",
                "occupancy"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "breakfastIncluded",
          "cancellation",
          "commission",
          "expiresAt",
          "offerReference",
          "paymentPolicy",
          "price",
          "refundable",
          "rooms"
        ],
        "additionalProperties": false
      },
      "HotelRatesResponse": {
        "type": "object",
        "properties": {
          "hotelReference": {
            "type": "string",
            "minLength": 1
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/HotelStayOffer"
            }
          },
          "singleRoomOnly": {
            "type": "boolean"
          }
        },
        "required": [
          "hotelReference",
          "offers",
          "singleRoomOnly"
        ],
        "additionalProperties": false
      },
      "AgentDocumentsCreateBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100000
          },
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "markdown",
              "text",
              "csv"
            ]
          }
        },
        "required": [
          "name",
          "content",
          "format"
        ],
        "additionalProperties": false
      },
      "AgentDocumentsDownloadBody": {
        "type": "object",
        "properties": {
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512,
            "pattern": "^agentAttachment\\/[^/]+\\/[^/]+\\/[^/]+$"
          }
        },
        "required": [
          "key"
        ],
        "additionalProperties": false
      },
      "AgentEmailConnectionBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "status"
              }
            },
            "required": [
              "action"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "start"
              },
              "captchaToken": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048
              }
            },
            "required": [
              "action",
              "captchaToken"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "finish"
              },
              "session": {
                "type": "string",
                "minLength": 1,
                "maxLength": 4096
              },
              "code": {
                "type": "string",
                "pattern": "^\\d{6}$"
              }
            },
            "required": [
              "action",
              "session",
              "code"
            ]
          },
          {
            "type": "object",
            "properties": {
              "action": {
                "type": "string",
                "const": "disconnect"
              }
            },
            "required": [
              "action"
            ]
          }
        ]
      },
      "AgentMcpAuthorizationsUpdateBody": {
        "type": "object",
        "properties": {
          "decision": {
            "type": "string",
            "enum": [
              "APPROVE",
              "DENY"
            ],
            "description": "APPROVE sends the client a one-time code; DENY sends it error=access_denied."
          },
          "access": {
            "description": "Only with APPROVE: the access the person picked, READ, WRITE or MONEY, whatever the client's scopes asked. Left out, the access the consent page preselects (READ or WRITE, never MONEY): MONEY is granted only when sent here.",
            "type": "string",
            "enum": [
              "READ",
              "WRITE",
              "MONEY"
            ]
          }
        },
        "required": [
          "decision"
        ],
        "additionalProperties": false,
        "examples": [
          {
            "access": "READ",
            "decision": "APPROVE"
          },
          {
            "decision": "DENY"
          }
        ]
      },
      "AgentRephraseBody": {
        "type": "object",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16000
          }
        },
        "required": [
          "text"
        ]
      },
      "AgentRoomDescriptionBody": {
        "type": "object",
        "properties": {
          "currencyCode": {
            "type": "string",
            "maxLength": 3
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 16000
          }
        },
        "required": [
          "description"
        ]
      },
      "AssetsCreateGetUrlBody": {
        "type": "object",
        "properties": {
          "assetType": {
            "type": "string",
            "enum": [
              "agentAttachment",
              "tripItineraryAsset",
              "tripItineraryAttachment",
              "tripItineraryItineraryDocumentAI",
              "userDocument",
              "rawAvatar",
              "privateAsset",
              "ai-itinerary-output"
            ]
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          }
        },
        "required": [
          "assetType",
          "key"
        ]
      },
      "AssetsPublicCreateGetUrlBody": {
        "type": "object",
        "properties": {
          "assetType": {
            "type": "string",
            "enum": [
              "agentAttachment",
              "tripItineraryAsset",
              "tripItineraryAttachment",
              "tripItineraryItineraryDocumentAI",
              "userDocument",
              "rawAvatar",
              "privateAsset",
              "ai-itinerary-output"
            ]
          },
          "key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1024
          },
          "tripItineraryId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "recaptchaToken": {
            "type": "string"
          }
        },
        "required": [
          "assetType",
          "key"
        ]
      },
      "CreateQuoteRequest": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "itineraryItemId": {
                "type": "string",
                "minLength": 1
              },
              "offerReference": {
                "type": "string",
                "minLength": 1
              },
              "travelersTripId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "offerReference"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "bookingSelectionId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "bookingSelectionId"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ActivateMySabre": {
        "type": "object",
        "properties": {
          "dkNumber": {
            "$ref": "#/components/schemas/SabreDkNumber"
          }
        },
        "required": [
          "dkNumber"
        ],
        "additionalProperties": false,
        "description": "The DK the caller's own Sabre searches and bookings carry from now on.",
        "examples": [
          {
            "dkNumber": "7TZ123"
          }
        ]
      },
      "BookingSelectionsCreateBody": {
        "type": "object",
        "properties": {
          "itineraryItemId": {
            "type": "string",
            "minLength": 1
          },
          "offerReference": {
            "type": "string",
            "minLength": 1
          },
          "travelersTripId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "offerReference"
        ],
        "additionalProperties": false
      },
      "BookingSettingsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "CLAIM_SABRE_PROFILE"
              },
              "providerConfigId": {
                "type": "string",
                "minLength": 1
              },
              "profileId": {
                "type": "string",
                "minLength": 1
              },
              "expectedVersion": {
                "type": "string",
                "minLength": 1
              },
              "advisorUserId": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "type",
              "providerConfigId",
              "profileId",
              "expectedVersion",
              "advisorUserId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "bindings": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean"
                    },
                    "priority": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "productKind": {
                      "$ref": "#/components/schemas/ProductKind"
                    },
                    "providerConfigId": {
                      "type": "string",
                      "minLength": 1
                    },
                    "providerKey": {
                      "$ref": "#/components/schemas/ProviderKey"
                    }
                  },
                  "required": [
                    "enabled",
                    "priority",
                    "productKind",
                    "providerConfigId",
                    "providerKey"
                  ],
                  "additionalProperties": false
                }
              },
              "channelId": {
                "type": "string",
                "minLength": 1
              },
              "channelVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "enabled": {
                "type": "boolean"
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "SAVE_CHANNEL"
              }
            },
            "required": [
              "bindings",
              "channelId",
              "channelVersion",
              "enabled",
              "expectedVersion",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "configVersion": {
                "type": "string",
                "minLength": 1
              },
              "enabled": {
                "type": "boolean"
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "homePcc": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^[A-Z0-9]{3,4}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "providerConfigId": {
                "type": "string",
                "minLength": 1
              },
              "providerKey": {
                "$ref": "#/components/schemas/ProviderKey"
              },
              "products": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProductKind"
                }
              },
              "publicConfiguration": {
                "type": "object",
                "properties": {
                  "agencyAddress": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgencyAddress"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hotelPointOfSaleAddress": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/AgencyAddress"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "agencyProfile": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/SabreProfileReference"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "hotelIataOverride": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/HotelIataOverride"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "sabreExecutionMode": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/SabreExecutionMode"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "ticketingPrinter": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/SabreTicketingPrinter"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "ticketingQueue": {
                    "anyOf": [
                      {
                        "$ref": "#/components/schemas/SabreTicketingQueueInput"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "excludedAirlineCodes": {
                    "anyOf": [
                      {
                        "maxItems": 99,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "pattern": "^[A-Z0-9]{2}$"
                        }
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "alias": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "domain": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "maskedUsername": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": {}
              },
              "credentials": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "password": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 1000
                      },
                      "username": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 500
                      }
                    },
                    "required": [
                      "password",
                      "username"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "secretReference": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sessionPcc": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "SAVE_PROVIDER"
              }
            },
            "required": [
              "enabled",
              "expectedVersion",
              "providerConfigId",
              "providerKey",
              "publicConfiguration",
              "credentials",
              "secretReference",
              "sessionPcc",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorUserId": {
                "type": "string",
                "minLength": 1
              },
              "corporationName": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dkNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "type": "string",
                "minLength": 1
              },
              "enabled": {
                "type": "boolean"
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "firstName": {
                "type": "string"
              },
              "isDefault": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastName": {
                "type": "string"
              },
              "pccOverride": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "profileId": {
                "type": "string",
                "minLength": 1
              },
              "profileVersion": {
                "type": "string",
                "minLength": 1
              },
              "providerConfigId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "SAVE_SABRE_ADVISOR"
              }
            },
            "required": [
              "advisorUserId",
              "corporationName",
              "dkNumber",
              "email",
              "enabled",
              "expectedVersion",
              "firstName",
              "isDefault",
              "lastName",
              "pccOverride",
              "phone",
              "profileId",
              "providerConfigId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorUserId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "DELETE_SABRE_ADVISOR"
              }
            },
            "required": [
              "advisorUserId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "providerConfigId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "TEST_SABRE"
              }
            },
            "required": [
              "providerConfigId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "providerConfigId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "READ_SABRE_QUEUES"
              }
            },
            "required": [
              "providerConfigId",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "BookingTripsInsuranceQuotesCreateBody": {
        "type": "object",
        "properties": {
          "customItems": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "amountMinor": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 9007199254740991
                },
                "countryCode": {
                  "type": "string",
                  "minLength": 2,
                  "maxLength": 3
                },
                "currency": {
                  "$ref": "#/components/schemas/CurrencyCode"
                },
                "reference": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "startsOn": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 300
                }
              },
              "required": [
                "amountMinor",
                "countryCode",
                "currency",
                "reference",
                "title"
              ],
              "additionalProperties": false
            }
          },
          "depositDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "language": {
            "default": "en-us",
            "type": "string",
            "enum": [
              "en-us",
              "es-es"
            ]
          },
          "planId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "segmentIds": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "selectedCoverageCodes": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          "travelers": {
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "type": "object",
                  "properties": {
                    "address1": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "city": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "countryCode": {
                      "type": "string",
                      "minLength": 2,
                      "maxLength": 3
                    },
                    "postalCode": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 20
                    },
                    "stateCode": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    }
                  },
                  "additionalProperties": false
                },
                "birthDate": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "email": {
                  "type": "string",
                  "format": "email",
                  "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                },
                "familyName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "givenName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "phoneNumber": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 40
                },
                "travelerId": {
                  "type": "string",
                  "minLength": 1
                }
              },
              "required": [
                "travelerId"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "depositDate",
          "travelers"
        ],
        "additionalProperties": false
      },
      "ChatReplyBody": {
        "type": "object",
        "properties": {
          "assetsUrls": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "message": {
            "type": "string"
          },
          "needsAiResponse": {
            "type": "boolean"
          }
        }
      },
      "ChatToggleArchiveBody": {
        "type": "object",
        "properties": {
          "isArchived": {
            "type": "boolean"
          }
        },
        "required": [
          "isArchived"
        ]
      },
      "CommerceCheckoutsCreateBody": {
        "type": "object",
        "properties": {
          "offerReference": {
            "type": "string",
            "minLength": 1,
            "description": "The offer to buy, from a hotel, flight or car search."
          },
          "travelersTripId": {
            "type": "string",
            "minLength": 1,
            "description": "The trip the order belongs to."
          }
        },
        "required": [
          "offerReference",
          "travelersTripId"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionExportsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "$ref": "#/components/schemas/CommissionFilter"
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "COMMISSION_ITEMS"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {
                  "channel": {
                    "type": "string",
                    "minLength": 1
                  },
                  "from": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "remittanceId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "to": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  }
                },
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "PAYMENTS"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {
                  "batchId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "channel": {
                    "type": "string",
                    "minLength": 1
                  },
                  "from": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "q": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 100
                  },
                  "state": {
                    "type": "string",
                    "minLength": 1
                  },
                  "to": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "unallocated": {
                    "type": "string",
                    "enum": [
                      "true",
                      "false"
                    ]
                  }
                },
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "REMITTANCES"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  },
                  "from": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  "payeeId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "payeeKind": {
                    "type": "string",
                    "enum": [
                      "ADVISOR",
                      "COMPANY"
                    ]
                  },
                  "status": {
                    "type": "string",
                    "minLength": 1
                  },
                  "to": {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  }
                },
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "STATEMENTS"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "minLength": 1
                  },
                  "q": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 100
                  }
                },
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "SUPPLIERS"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "PAYEES"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "PAYOUTS"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "COMMISSION_INVOICES"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100,
                "pattern": "^[^/\\\\:*?\"<>|\\p{Cc}]+$"
              },
              "filter": {
                "type": "object",
                "properties": {},
                "additionalProperties": false
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "subject": {
                "type": "string",
                "const": "EARNINGS"
              },
              "totalsOnly": {
                "type": "boolean"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "subject": {
                "type": "string",
                "const": "AGENCY"
              }
            },
            "required": [
              "subject"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceCommissionImportsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "mapping": {
                "$ref": "#/components/schemas/BookingImportMapping"
              },
              "type": {
                "type": "string",
                "const": "APPLY_MAPPING"
              }
            },
            "required": [
              "mapping",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisors": {
                "maxItems": 1000,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ImportAdvisor"
                }
              },
              "type": {
                "type": "string",
                "const": "MAP_ADVISORS"
              }
            },
            "required": [
              "advisors",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "type": {
                "type": "string",
                "const": "SAVE_PRESET"
              }
            },
            "required": [
              "name",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "COMMIT"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "DISCARD"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceCommissionImportsCreateBody": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "advisors": {
            "maxItems": 1000,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportAdvisor"
            }
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "format": {
            "type": "string",
            "enum": [
              "CSV",
              "TSV",
              "TXT",
              "XLSX"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "BOOKINGS"
            ]
          },
          "presetId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "sizeBytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 104857600
          },
          "source": {
            "type": "string",
            "enum": [
              "FILE_IMPORT"
            ]
          }
        },
        "required": [
          "fileName",
          "format",
          "sha256",
          "sizeBytes"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionInvoicesCreateBody": {
        "type": "object",
        "properties": {
          "amountBasis": {
            "type": "string",
            "enum": [
              "BALANCE",
              "ESTIMATE",
              "GROSS"
            ]
          },
          "commissionItemIds": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          "kind": {
            "type": "string",
            "enum": [
              "SUPPLIER",
              "CLIENT"
            ]
          },
          "replacesInvoiceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "amountBasis",
          "commissionItemIds",
          "kind"
        ],
        "additionalProperties": false
      },
      "CommerceCommissionSettingsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "defaultPaymentTermDays": {
                "type": "integer",
                "minimum": 0,
                "maximum": 730
              },
              "expectedVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "paidToleranceMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "type": {
                "type": "string",
                "const": "SAVE_TERMS"
              }
            },
            "required": [
              "defaultPaymentTermDays",
              "expectedVersion",
              "paidToleranceMinor",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectedVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "const": "SAVE_ARCHIVE_RULES"
              },
              "unclaimedArchiveDays": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 3650
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "expectedVersion",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "identifierId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isDefault": {
                "type": "boolean"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "IATA",
                  "ARC",
                  "CLIA",
                  "TIDS",
                  "TRUE",
                  "INTERNAL"
                ]
              },
              "label": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "number": {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              "paymentInstructions": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PaymentInstructions"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "SAVE_IDENTIFIER"
              }
            },
            "required": [
              "isDefault",
              "kind",
              "number",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "identifierId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "REMOVE_IDENTIFIER"
              }
            },
            "required": [
              "identifierId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "claimWindowDays": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3650
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "effectiveFrom": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "effectiveTo": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "identifierId": {
                "type": "string",
                "minLength": 1
              },
              "memberCompanyName": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "SAVE_HOST_RELATIONSHIP"
              }
            },
            "required": [
              "effectiveFrom",
              "identifierId",
              "memberCompanyName",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectedVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "stripeConnectEnabled": {
                "type": "boolean"
              },
              "type": {
                "type": "string",
                "const": "SAVE_PAYOUTS"
              }
            },
            "required": [
              "expectedVersion",
              "stripeConnectEnabled",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectedVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "gdsImportCommissionEnabled": {
                "type": "boolean"
              },
              "type": {
                "type": "string",
                "const": "SAVE_GDS_IMPORT"
              }
            },
            "required": [
              "expectedVersion",
              "gdsImportCommissionEnabled",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectedVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "trackingEnabled": {
                "type": "boolean"
              },
              "type": {
                "type": "string",
                "const": "SAVE_TRACKING"
              }
            },
            "required": [
              "expectedVersion",
              "trackingEnabled",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "rules": {
                "minItems": 1,
                "maxItems": 200,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/SplitPlanRuleInput"
                }
              },
              "type": {
                "type": "string",
                "const": "CREATE_SPLIT_PLAN"
              }
            },
            "required": [
              "name",
              "rules",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "assigneeId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "assigneeKind": {
                "type": "string",
                "enum": [
                  "COMPANY",
                  "ADVISOR",
                  "MEMBER"
                ]
              },
              "effectiveFrom": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "splitPlanId": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "ASSIGN_SPLIT_PLAN"
              }
            },
            "required": [
              "assigneeKind",
              "effectiveFrom",
              "splitPlanId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "REMOVE_IMPORT_PRESET"
              }
            },
            "required": [
              "presetId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "columns": {
                "minItems": 1,
                "maxItems": 60,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportColumn"
                }
              },
              "format": {
                "$ref": "#/components/schemas/ExportFormat"
              },
              "groupBy": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/ExportColumn"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "subject": {
                "$ref": "#/components/schemas/ExportListSubject"
              },
              "totalsOnly": {
                "type": "boolean"
              },
              "type": {
                "type": "string",
                "const": "SAVE_EXPORT_PRESET"
              }
            },
            "required": [
              "columns",
              "format",
              "name",
              "subject",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "presetId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "REMOVE_EXPORT_PRESET"
              }
            },
            "required": [
              "presetId",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceCommissionsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "commissionableMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "expectedMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "grossMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "rateBps": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "supplierCostMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "const": "CHANGE_EXPECTED"
              }
            },
            "required": [
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "bookedOn": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "travelEnd": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "travelStart": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "type": {
                "type": "string",
                "const": "CHANGE_DATES"
              }
            },
            "required": [
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "dueOn": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "SET_DUE_DATE"
              }
            },
            "required": [
              "dueOn",
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "CANCEL"
              }
            },
            "required": [
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "REOPEN"
              }
            },
            "required": [
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "isCommissionable": {
                "type": "boolean"
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "SET_COMMISSIONABLE"
              }
            },
            "required": [
              "expectationVersion",
              "isCommissionable",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "WRITE_OFF"
              }
            },
            "required": [
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "type": {
                "type": "string",
                "const": "CONFIRM_IMPORTED"
              }
            },
            "required": [
              "expectationVersion",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "advisorUserId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "expectationVersion": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "REASSIGN_ADVISOR"
              }
            },
            "required": [
              "advisorUserId",
              "expectationVersion",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "flagged": {
                "type": "boolean"
              },
              "type": {
                "type": "string",
                "const": "SET_FLAG"
              }
            },
            "required": [
              "flagged",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "bodyMarkdown": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              },
              "type": {
                "type": "string",
                "const": "ADD_NOTE"
              }
            },
            "required": [
              "bodyMarkdown",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "tags": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CommissionTag"
                }
              },
              "type": {
                "type": "string",
                "const": "SET_TAGS"
              }
            },
            "required": [
              "tags",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "contentType": {
                "$ref": "#/components/schemas/AttachmentContentType"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 26214400
              },
              "type": {
                "type": "string",
                "const": "ADD_ATTACHMENT"
              }
            },
            "required": [
              "contentType",
              "fileName",
              "sha256",
              "sizeBytes",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              "type": {
                "type": "string",
                "const": "REPORT_MISSING"
              }
            },
            "required": [
              "note",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommissionFilter": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "agingBucket": {
            "type": "string",
            "minLength": 1
          },
          "category": {
            "type": "string",
            "minLength": 1
          },
          "dateField": {
            "type": "string",
            "enum": [
              "TRAVEL_END",
              "TRAVEL_START",
              "BOOKED",
              "DUE"
            ]
          },
          "from": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "identifierId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4096
          },
          "kind": {
            "type": "string",
            "minLength": 1
          },
          "needsReview": {
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          },
          "q": {
            "type": "string",
            "minLength": 2,
            "maxLength": 100
          },
          "source": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "type": "string",
            "minLength": 1
          },
          "supplierId": {
            "type": "string",
            "minLength": 1
          },
          "tag": {
            "$ref": "#/components/schemas/CommissionTag"
          },
          "to": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "view": {
            "type": "string",
            "enum": [
              "BOOKINGS",
              "RECEIVABLES"
            ]
          }
        },
        "additionalProperties": false
      },
      "CommerceExternalBookingsCreateBody": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "bookedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "category": {
            "$ref": "#/components/schemas/CommissionCategory"
          },
          "clientName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "clientUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "identifierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "grossMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "items": {
            "minItems": 1,
            "maxItems": 5,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "dueOn": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "paymentTermDays": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 730
                    },
                    "commissionableMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "expectedMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "isCommissionable": {
                      "type": "boolean"
                    },
                    "kind": {
                      "type": "string",
                      "const": "SUPPLIER_COMMISSION"
                    },
                    "multiplyByQuantity": {
                      "type": "boolean"
                    },
                    "rateBps": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 10000
                    }
                  },
                  "required": [
                    "kind"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "dueOn": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "paymentTermDays": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 730
                    },
                    "expectedMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "kind": {
                      "type": "string",
                      "const": "CLIENT_NET_MARKUP"
                    },
                    "markupBps": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100000
                    },
                    "supplierCostMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "kind",
                    "supplierCostMinor"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "dueOn": {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                    },
                    "paymentTermDays": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 730
                    },
                    "expectedMinor": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "kind": {
                      "type": "string",
                      "const": "CLIENT_FEE"
                    }
                  },
                  "required": [
                    "expectedMinor",
                    "kind"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          },
          "tags": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          }
        },
        "required": [
          "category",
          "clientName",
          "confirmationNumber",
          "travelEnd",
          "travelStart",
          "currency",
          "grossMinor",
          "items"
        ],
        "additionalProperties": false
      },
      "CommerceExternalBookingsUpdateBody": {
        "type": "object",
        "properties": {
          "advisorUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "bookedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "category": {
            "$ref": "#/components/schemas/CommissionCategory"
          },
          "clientName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "clientUserId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "identifierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "providerLocator": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ]
          },
          "quantity": {
            "type": "integer",
            "minimum": 1,
            "maximum": 999
          },
          "supplierId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "travelEnd": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "travelersTripId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelStart": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "bookingVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": [
          "category",
          "clientName",
          "confirmationNumber",
          "travelEnd",
          "travelStart",
          "bookingVersion",
          "reason"
        ],
        "additionalProperties": false
      },
      "CommerceExternalPaymentsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "amount": {
                "type": "object",
                "properties": {
                  "amountMinor": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 100000000
                  },
                  "currency": {
                    "$ref": "#/components/schemas/CurrencyCode"
                  }
                },
                "required": [
                  "amountMinor",
                  "currency"
                ],
                "additionalProperties": false
              },
              "target": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "ORDER"
                      },
                      "orderId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "kind",
                      "orderId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "itineraryItemId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "kind": {
                        "type": "string",
                        "const": "ITINERARY_ITEM"
                      },
                      "travelersTripId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "itineraryItemId",
                      "kind",
                      "travelersTripId"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "paidAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "payee": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "paymentMethod": {
                "type": "string",
                "enum": [
                  "BANK_TRANSFER",
                  "CARD",
                  "CASH",
                  "CHECK",
                  "OTHER"
                ]
              },
              "providerReference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "purpose": {
                "type": "string",
                "enum": [
                  "DEPOSIT",
                  "FULL_PAYMENT",
                  "GUARANTEE",
                  "OTHER"
                ]
              },
              "receipt": {
                "type": "object",
                "properties": {
                  "assetKey": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 1024
                  },
                  "checksumSha256": {
                    "type": "string",
                    "pattern": "^[a-f0-9]{64}$"
                  }
                },
                "required": [
                  "assetKey",
                  "checksumSha256"
                ],
                "additionalProperties": false
              },
              "type": {
                "type": "string",
                "const": "RECORD"
              }
            },
            "required": [
              "amount",
              "target",
              "paidAt",
              "payee",
              "paymentMethod",
              "providerReference",
              "purpose",
              "receipt",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "externalPaymentId": {
                "type": "string",
                "minLength": 1
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "REVERSE"
              }
            },
            "required": [
              "externalPaymentId",
              "reason",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceOrdersActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "EXCHANGE_CHECKOUT_SESSION"
              },
              "code": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{43}$"
              }
            },
            "required": [
              "type",
              "code"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "RENEW_CHECKOUT"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "acceptedTermsDigest": {
                "$ref": "#/components/schemas/TermsDigest"
              },
              "airPlanningFeeMinor": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000,
                "description": "Air planning fee in USD cents for the whole reservation."
              },
              "participants": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CheckoutParticipant"
                }
              },
              "paymentTermsKind": {
                "description": "HOLD requires a confirmed airline deadline at least 12 hours away and gives the customer half the remaining window to pay. PAY_NOW books with the card sent next. Omitted means HOLD where allowed. An unsupported hold answers 409 COMMERCE_HOLD_NOT_ALLOWED; a window that no longer qualifies answers 409 COMMERCE_HOLD_WINDOW_UNAVAILABLE.",
                "examples": [
                  "PAY_NOW"
                ],
                "type": "string",
                "enum": [
                  "HOLD",
                  "PAY_NOW"
                ]
              },
              "specialRequest": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notifyTravelers": {
                "description": "False sends this order's emails (its booking confirmation and its hold, declined-payment, ticketing and cancellation notices) to its advisor alone, never to its travelers or payer. The payer still gets the receipt of a card payment, and sendOrderConfirmation still reaches the addresses it names. Omitted means true.",
                "type": "boolean"
              },
              "validatingCarrier": {
                "description": "The airline that issues a flight's ticket, one of productSnapshot.validatingCarriers. The default (the first) or an absent choice leaves issuance to the provider. The choice is the agency's: only an advisor or staff caller, or the agency's own payment link, may send a code; a traveler or a traveler link answers 403 COMMERCE_VALIDATING_CARRIER_ADVISOR_ONLY, and a code the fare does not offer answers 409 COMMERCE_VALIDATING_CARRIER_NOT_OFFERED.",
                "$ref": "#/components/schemas/CarrierCode"
              },
              "type": {
                "type": "string",
                "const": "SUBMIT_CHECKOUT"
              }
            },
            "required": [
              "acceptedTermsDigest",
              "participants",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "audience": {
                "default": "TRAVELER",
                "type": "string",
                "enum": [
                  "SELF",
                  "TRAVELER"
                ]
              },
              "expiresInMinutes": {
                "default": 43200,
                "description": "Can only shorten the link, never lengthen it. A booking's link ends at most 15 minutes from now and, for an order not yet held, 10 minutes after the order was created, because its price holds only that long; past it, the same link still opens for 24 hours and the traveler renews the checkout there at the current price. A planning fee's or an extra payment's link holds no price and lasts until its order expires, 30 days after it was created. The answer's expiresAt says when.",
                "type": "integer",
                "minimum": 15,
                "maximum": 43200
              },
              "type": {
                "type": "string",
                "const": "CREATE_PAYMENT_LINK"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "paymentAttemptId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "CONFIRM_NICER_PAYMENT"
              }
            },
            "required": [
              "paymentAttemptId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "acceptedTermsDigest": {
                "$ref": "#/components/schemas/TermsDigest"
              },
              "reason": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "CANCEL"
              }
            },
            "required": [
              "acceptedTermsDigest",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "capabilityId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "REVOKE_PAYMENT_LINK"
              }
            },
            "required": [
              "capabilityId",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceOrdersAdvisorUpdateBody": {
        "type": "object",
        "properties": {
          "assignment": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "INHERIT"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "UNASSIGNED"
                  }
                },
                "required": [
                  "mode"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "const": "ASSIGNED"
                  },
                  "advisorUserId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "mode",
                  "advisorUserId"
                ],
                "additionalProperties": false
              }
            ]
          },
          "expectedVersion": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "reason": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": [
          "assignment",
          "expectedVersion",
          "reason"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersCheckoutActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "EXCHANGE_CHECKOUT_SESSION"
              },
              "code": {
                "type": "string",
                "pattern": "^[A-Za-z0-9_-]{43}$"
              }
            },
            "required": [
              "type",
              "code"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "RENEW_CHECKOUT"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "acceptedTermsDigest": {
                "$ref": "#/components/schemas/TermsDigest"
              },
              "airPlanningFeeMinor": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 100000000,
                "description": "Air planning fee in USD cents for the whole reservation."
              },
              "participants": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CheckoutParticipant"
                }
              },
              "paymentTermsKind": {
                "description": "HOLD requires a confirmed airline deadline at least 12 hours away and gives the customer half the remaining window to pay. PAY_NOW books with the card sent next. Omitted means HOLD where allowed. An unsupported hold answers 409 COMMERCE_HOLD_NOT_ALLOWED; a window that no longer qualifies answers 409 COMMERCE_HOLD_WINDOW_UNAVAILABLE.",
                "examples": [
                  "PAY_NOW"
                ],
                "type": "string",
                "enum": [
                  "HOLD",
                  "PAY_NOW"
                ]
              },
              "specialRequest": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notifyTravelers": {
                "description": "False sends this order's emails (its booking confirmation and its hold, declined-payment, ticketing and cancellation notices) to its advisor alone, never to its travelers or payer. The payer still gets the receipt of a card payment, and sendOrderConfirmation still reaches the addresses it names. Omitted means true.",
                "type": "boolean"
              },
              "validatingCarrier": {
                "description": "The airline that issues a flight's ticket, one of productSnapshot.validatingCarriers. The default (the first) or an absent choice leaves issuance to the provider. The choice is the agency's: only an advisor or staff caller, or the agency's own payment link, may send a code; a traveler or a traveler link answers 403 COMMERCE_VALIDATING_CARRIER_ADVISOR_ONLY, and a code the fare does not offer answers 409 COMMERCE_VALIDATING_CARRIER_NOT_OFFERED.",
                "$ref": "#/components/schemas/CarrierCode"
              },
              "type": {
                "type": "string",
                "const": "SUBMIT_CHECKOUT"
              }
            },
            "required": [
              "acceptedTermsDigest",
              "participants",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "paymentAttemptId": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "CONFIRM_NICER_PAYMENT"
              }
            },
            "required": [
              "paymentAttemptId",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceOrdersConfirmationEmailsCreateBody": {
        "type": "object",
        "properties": {
          "emails": {
            "minItems": 1,
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
            }
          }
        },
        "required": [
          "emails"
        ],
        "additionalProperties": false
      },
      "CommerceOrdersCreateBody": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "paymentLink": {
                "description": "Also make the payment link the traveler pays with, in the same call.",
                "type": "object",
                "properties": {
                  "audience": {
                    "default": "TRAVELER",
                    "type": "string",
                    "enum": [
                      "SELF",
                      "TRAVELER"
                    ]
                  },
                  "expiresInMinutes": {
                    "default": 43200,
                    "description": "Can only shorten the link, never lengthen it. A booking's link ends at most 15 minutes from now and, for an order not yet held, 10 minutes after the order was created, because its price holds only that long; past it, the same link still opens for 24 hours and the traveler renews the checkout there at the current price. A planning fee's or an extra payment's link holds no price and lasts until its order expires, 30 days after it was created. The answer's expiresAt says when.",
                    "type": "integer",
                    "minimum": 15,
                    "maximum": 43200
                  }
                },
                "additionalProperties": false
              },
              "quoteId": {
                "type": "string",
                "minLength": 1,
                "description": "A quote from createBookingQuote. Send it alone, or with paymentLink."
              }
            },
            "required": [
              "quoteId"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "paymentLink": {
                "type": "object",
                "properties": {
                  "audience": {
                    "default": "TRAVELER",
                    "type": "string",
                    "enum": [
                      "SELF",
                      "TRAVELER"
                    ]
                  },
                  "expiresInMinutes": {
                    "default": 43200,
                    "description": "Can only shorten the link, never lengthen it. A booking's link ends at most 15 minutes from now and, for an order not yet held, 10 minutes after the order was created, because its price holds only that long; past it, the same link still opens for 24 hours and the traveler renews the checkout there at the current price. A planning fee's or an extra payment's link holds no price and lasts until its order expires, 30 days after it was created. The answer's expiresAt says when.",
                    "type": "integer",
                    "minimum": 15,
                    "maximum": 43200
                  }
                },
                "additionalProperties": false
              },
              "directProduct": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 100000000
                      },
                      "currency": {
                        "$ref": "#/components/schemas/CurrencyCode"
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency"
                    ],
                    "additionalProperties": false
                  },
                  "description": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 500
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "EXTRA_PAYMENT",
                      "PLANNING_FEE"
                    ]
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  }
                },
                "required": [
                  "amount",
                  "description",
                  "kind",
                  "name"
                ],
                "additionalProperties": false,
                "description": "Your own charge, such as a planning fee: amount in minor units with currency."
              },
              "itineraryItemId": {
                "description": "Only with directProduct and travelersTripId: the itinerary segment this charge pays for.",
                "type": "string",
                "minLength": 1
              },
              "travelersTripId": {
                "type": "string",
                "minLength": 1,
                "description": "The trip, with offerReference (the offer also goes on its itinerary) or directProduct. Never with quoteId: a quote keeps the trip it was quoted for (createBookingQuote takes travelersTripId)."
              }
            },
            "required": [
              "directProduct"
            ],
            "additionalProperties": false
          },
          {
            "$ref": "#/components/schemas/OfferOrderSource"
          }
        ]
      },
      "CommerceOrdersPaymentsCreateBody": {
        "type": "object",
        "properties": {
          "method": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "NEW"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "SAVED"
                  },
                  "paymentMethodId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "required": [
                  "kind",
                  "paymentMethodId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "PROVIDER_CARD_CREDENTIAL"
                  },
                  "paymentCredentialId": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                },
                "required": [
                  "kind",
                  "paymentCredentialId"
                ],
                "additionalProperties": false
              }
            ]
          },
          "saveFor": {
            "default": {
              "kind": "NONE"
            },
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "NONE"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "USER"
                  }
                },
                "required": [
                  "kind"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "consentAccepted": {
                    "type": "boolean",
                    "const": true
                  },
                  "kind": {
                    "type": "string",
                    "const": "TRIP"
                  },
                  "travelersTripId": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "consentAccepted",
                  "kind",
                  "travelersTripId"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "consentAccepted": {
                    "type": "boolean",
                    "const": true
                  },
                  "consentCopy": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The statement the payer accepted: the order's saveCardConsentCopy exactly as shown. The server refuses the payment's save when it is no longer the statement for the order's advisor."
                  },
                  "kind": {
                    "type": "string",
                    "const": "ADVISOR"
                  }
                },
                "required": [
                  "consentAccepted",
                  "consentCopy",
                  "kind"
                ],
                "additionalProperties": false,
                "description": "Authorizes the card to the order's advisor, whom the server reads from the order; the request never names the advisor. The payer accepts the order's saveCardConsentCopy and sends it back as consentCopy."
              }
            ]
          }
        },
        "required": [
          "method"
        ],
        "additionalProperties": false
      },
      "CommercePayeesActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "payeeKind": {
                "type": "string",
                "enum": [
                  "ADVISOR",
                  "COMPANY"
                ]
              },
              "cycleDays": {
                "minItems": 1,
                "maxItems": 4,
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 31
                }
              },
              "expectedVersion": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "legalName": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 140
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "minimumPayoutMinor": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000000
              },
              "payoutMethod": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/PayoutMethod"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "statementsEnabled": {
                "type": "boolean"
              },
              "statementsStartOn": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "taxFormStatus": {
                "type": "string",
                "enum": [
                  "MISSING",
                  "W9_ON_FILE",
                  "W8_ON_FILE"
                ]
              },
              "type": {
                "type": "string",
                "const": "SAVE_SETTINGS"
              }
            },
            "required": [
              "payeeKind",
              "cycleDays",
              "expectedVersion",
              "minimumPayoutMinor",
              "statementsEnabled",
              "taxFormStatus",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "payeeKind": {
                "type": "string",
                "enum": [
                  "ADVISOR",
                  "COMPANY"
                ]
              },
              "type": {
                "type": "string",
                "const": "START_STRIPE_ONBOARDING"
              }
            },
            "required": [
              "payeeKind",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "payeeKind": {
                "type": "string",
                "enum": [
                  "ADVISOR",
                  "COMPANY"
                ]
              },
              "type": {
                "type": "string",
                "const": "REFRESH_STRIPE_ACCOUNT"
              }
            },
            "required": [
              "payeeKind",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommercePaymentMethodsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "includeAdvisorNotes": {
                "description": "Include private notes on the caller’s own advisor authorizations.",
                "type": "boolean"
              },
              "travelerId": {
                "description": "A CRM traveler of the caller's agency: only the cards whose authorization names that traveler, as their CRM profile shows them. A traveler of another agency answers 404 COMMERCE_TRAVELER_NOT_FOUND.",
                "$ref": "#/components/schemas/TravelerId"
              },
              "travelersTripId": {
                "description": "A trip the caller works: its cards are listed too, and when the trip has CRM travelers the cards clients authorized to the caller are limited to theirs, plus those that name no traveler.",
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "LIST"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "saveFor": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "NONE"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "USER"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "consentAccepted": {
                        "type": "boolean",
                        "const": true
                      },
                      "kind": {
                        "type": "string",
                        "const": "TRIP"
                      },
                      "travelersTripId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "consentAccepted",
                      "kind",
                      "travelersTripId"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "START_SETUP"
              },
              "usage": {
                "type": "string",
                "const": "PROVIDER_CARD"
              }
            },
            "required": [
              "saveFor",
              "type",
              "usage"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "recipientEmail": {
                "description": "Where the link is also emailed, in the agency's brand. Recorded on the authorization, so the advisor who made the link can tell one client's card from another.",
                "type": "string",
                "format": "email",
                "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
              },
              "travelerId": {
                "description": "The CRM traveler the link is sent to, recorded on the authorization as whose card it is. From a trip, one of the trip's travelers; left out there, the trip's one traveler whose email is recipientEmail, else none. Without a trip it is required and must be a traveler of the caller's agency. A traveler who is not on the trip, or not at the agency, answers 404 COMMERCE_TRAVELER_NOT_FOUND.",
                "$ref": "#/components/schemas/TravelerId"
              },
              "travelersTripId": {
                "description": "The trip the link is made from, recorded as where the authorization came from. Left out for a card asked from the traveler's CRM profile, which then needs travelerId (400 COMMERCE_CARD_LINK_TARGET_REQUIRED without either). Either way, completing the link authorizes the card to the advisor who made it, for this client's purchases on any of their trips.",
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "CREATE_TRIP_CARD_LINK"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "paymentMethodId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "scope": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "USER"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "kind": {
                        "type": "string",
                        "const": "TRIP"
                      },
                      "travelersTripId": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "kind",
                      "travelersTripId"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "advisorUserId": {
                        "type": "string",
                        "minLength": 1
                      },
                      "kind": {
                        "type": "string",
                        "const": "ADVISOR"
                      }
                    },
                    "required": [
                      "kind"
                    ],
                    "additionalProperties": false,
                    "description": "An authorization to an advisor. Without advisorUserId, or with the caller's own id, the caller revokes the authorization made to them; with another advisor's id, the caller must be the person who gave that authorization."
                  }
                ]
              },
              "type": {
                "type": "string",
                "const": "REVOKE"
              }
            },
            "required": [
              "paymentMethodId",
              "scope",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "SET_NOTE"
              },
              "advisorUserId": {
                "description": "Defaults to the caller. Only an active admin of the agency can edit another advisor’s grant.",
                "type": "string",
                "minLength": 1
              },
              "paymentMethodId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "note": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "A private label for this authorization. Use null to clear it."
              }
            },
            "required": [
              "type",
              "paymentMethodId",
              "note"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommercePaymentMethodsCompleteCardLinkBody": {
        "type": "object",
        "properties": {
          "consentAccepted": {
            "type": "boolean",
            "const": true
          },
          "consentCopy": {
            "type": "string",
            "minLength": 1,
            "description": "The statement the person accepted: the link's consentCopy exactly as the card page showed it. The server refuses the completion when it is no longer the link's statement."
          },
          "paymentMethodId": {
            "type": "string",
            "maxLength": 255,
            "pattern": "^paym_.*"
          },
          "type": {
            "type": "string",
            "const": "COMPLETE_TRIP_CARD_LINK"
          }
        },
        "required": [
          "consentAccepted",
          "consentCopy",
          "paymentMethodId",
          "type"
        ],
        "additionalProperties": false
      },
      "CommercePayoutRunsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "RETRY"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "payoutIds": {
                "minItems": 1,
                "maxItems": 500,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                }
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "CANCEL"
              }
            },
            "required": [
              "payoutIds",
              "reason",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommercePayoutRunsCreateBody": {
        "type": "object",
        "properties": {
          "statementIds": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          }
        },
        "required": [
          "statementIds"
        ],
        "additionalProperties": false
      },
      "RemittanceBatchAction": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "mapping": {
                "$ref": "#/components/schemas/RemittanceImportMapping"
              },
              "type": {
                "type": "string",
                "const": "APPLY_MAPPING"
              }
            },
            "required": [
              "mapping",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "type": {
                "type": "string",
                "const": "SAVE_PRESET"
              }
            },
            "required": [
              "name",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changes": {
                "$ref": "#/components/schemas/RemittanceLineEdit"
              },
              "remittanceLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "EDIT_LINE"
              }
            },
            "required": [
              "changes",
              "remittanceLineId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reason": {
                "$ref": "#/components/schemas/LineExclusionReason"
              },
              "remittanceLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "EXCLUDE_LINE"
              }
            },
            "required": [
              "reason",
              "remittanceLineId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "remittanceLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "INCLUDE_LINE"
              }
            },
            "required": [
              "remittanceLineId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "allocations": {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllocationRequest"
                }
              },
              "remittanceLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "SET_MATCH"
              }
            },
            "required": [
              "allocations",
              "remittanceLineId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "remittanceLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "RESET_MATCHES"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "RERUN_MATCHING"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "RECONCILE"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "UNDO_RECONCILE"
              }
            },
            "required": [
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "DISCARD"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceRemittanceBatchesCreateBody": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/CommissionChannel"
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "format": {
            "type": "string",
            "enum": [
              "CSV",
              "TSV",
              "TXT",
              "XLSX"
            ]
          },
          "presetId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "sha256": {
            "type": "string",
            "pattern": "^[0-9a-f]{64}$"
          },
          "sizeBytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 104857600
          },
          "source": {
            "type": "string",
            "enum": [
              "FILE_IMPORT"
            ]
          }
        },
        "required": [
          "channel",
          "fileName",
          "format",
          "sha256",
          "sizeBytes"
        ],
        "additionalProperties": false
      },
      "CommerceRemittanceLinesClaimsCreateBody": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500
          }
        },
        "required": [
          "commissionItemId"
        ],
        "additionalProperties": false
      },
      "RemittanceAction": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "allocations": {
                "minItems": 1,
                "maxItems": 20,
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AllocationRequest"
                }
              },
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "remittanceLineId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "ALLOCATE"
              }
            },
            "required": [
              "allocations",
              "remittanceLineId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "allocationId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "amountMinor": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "REVERSE_ALLOCATION"
              }
            },
            "required": [
              "allocationId",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "duplicateOfRemittanceId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "MARK_DUPLICATE"
              }
            },
            "required": [
              "duplicateOfRemittanceId",
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "UNMARK_DUPLICATE"
              }
            },
            "required": [
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "VOID"
              }
            },
            "required": [
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "claimId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "note": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "APPROVE_CLAIM"
              }
            },
            "required": [
              "claimId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "claimId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "REJECT_CLAIM"
              }
            },
            "required": [
              "claimId",
              "reason",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceRemittancesCreateBody": {
        "type": "object",
        "properties": {
          "channel": {
            "$ref": "#/components/schemas/CommissionChannel"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          "feeMinor": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "lines": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "allocations": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AllocationRequest"
                  }
                },
                "amountMinor": {
                  "type": "integer",
                  "minimum": -9007199254740991,
                  "maximum": 9007199254740991
                },
                "checkIn": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "checkOut": {
                  "type": "string",
                  "format": "date",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                },
                "clientName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "confirmationNumber": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                },
                "grossMinor": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "identifierNumber": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 32
                },
                "rateBps": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 10000
                },
                "supplierName": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                }
              },
              "required": [
                "amountMinor"
              ],
              "additionalProperties": false
            }
          },
          "note": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000
          },
          "payableOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "payerKind": {
            "$ref": "#/components/schemas/RemittancePayerKind"
          },
          "payerName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "receivedOn": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "supplierId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "tags": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          }
        },
        "required": [
          "channel",
          "currency",
          "lines",
          "payerKind",
          "receivedOn"
        ],
        "additionalProperties": false
      },
      "CommerceSettingsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              },
              "expectedVersion": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "processorAccountReference": {
                "type": "string",
                "minLength": 1
              },
              "settlementVersion": {
                "type": "string",
                "minLength": 1
              },
              "type": {
                "type": "string",
                "const": "SAVE_STRIPE_SETTLEMENT"
              }
            },
            "required": [
              "enabled",
              "expectedVersion",
              "processorAccountReference",
              "settlementVersion",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceStatementsActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "kind": {
                "type": "string",
                "enum": [
                  "CREDIT",
                  "DEBIT"
                ]
              },
              "quantity": {
                "type": "integer",
                "minimum": 1,
                "maximum": 10000
              },
              "type": {
                "type": "string",
                "const": "ADD_ADJUSTMENT"
              },
              "unitAmountMinor": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100000000
              }
            },
            "required": [
              "description",
              "kind",
              "quantity",
              "type",
              "unitAmountMinor"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "adjustmentId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "REMOVE_ADJUSTMENT"
              }
            },
            "required": [
              "adjustmentId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "bodyMarkdown": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000
              },
              "type": {
                "type": "string",
                "const": "ADD_NOTE"
              }
            },
            "required": [
              "bodyMarkdown",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "CLOSE"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "APPROVE"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "REOPEN"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              "type": {
                "type": "string",
                "const": "VOID"
              }
            },
            "required": [
              "reason",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "RECOMPUTE"
              }
            },
            "required": [
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "method": {
                "type": "string",
                "enum": [
                  "CHECK",
                  "MANUAL"
                ]
              },
              "paidOn": {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              "reference": {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              "type": {
                "type": "string",
                "const": "MARK_PAID"
              }
            },
            "required": [
              "paidOn",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "contentType": {
                "$ref": "#/components/schemas/AttachmentContentType"
              },
              "fileName": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "sha256": {
                "type": "string",
                "pattern": "^[0-9a-f]{64}$"
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 26214400
              },
              "type": {
                "type": "string",
                "const": "ADD_ATTACHMENT"
              }
            },
            "required": [
              "contentType",
              "fileName",
              "sha256",
              "sizeBytes",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceSuppliersActionsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "expectedUpdatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
              },
              "profile": {
                "$ref": "#/components/schemas/SupplierProfile"
              },
              "type": {
                "type": "string",
                "const": "UPDATE"
              }
            },
            "required": [
              "expectedUpdatedAt",
              "profile",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "email": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "email",
                    "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notes": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2000
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "role": {
                "$ref": "#/components/schemas/SupplierContactRole"
              },
              "shared": {
                "type": "boolean"
              },
              "type": {
                "type": "string",
                "const": "ADD_CONTACT"
              }
            },
            "required": [
              "role",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "supplierContactId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "REMOVE_CONTACT"
              }
            },
            "required": [
              "supplierContactId",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "programs": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "programId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "validFrom": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validTo": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "programId"
                  ],
                  "additionalProperties": false
                }
              },
              "type": {
                "type": "string",
                "const": "SET_PROGRAMS"
              }
            },
            "required": [
              "programs",
              "type"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "intoSupplierId": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "type": {
                "type": "string",
                "const": "MERGE"
              }
            },
            "required": [
              "intoSupplierId",
              "type"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CommerceSuppliersCreateBody": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupplierAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "commissionChannel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommissionChannel"
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultCommissionBps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultPaymentTermDays": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 730
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/SupplierKind"
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "googlePlaceId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "GLOBAL",
              "COMPANY"
            ]
          }
        },
        "required": [
          "kind",
          "name"
        ],
        "additionalProperties": false
      },
      "CommunityChannelsCreateBody": {
        "type": "object",
        "properties": {
          "autoJoin": {
            "type": "boolean"
          },
          "description": {
            "type": "string",
            "maxLength": 500
          },
          "initialMemberIds": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "private": {
            "type": "boolean"
          },
          "writePolicy": {
            "type": "string",
            "enum": [
              "all-members",
              "creator-only"
            ]
          }
        },
        "required": [
          "name"
        ]
      },
      "CommunityChannelsMembersCreateBody": {
        "type": "object",
        "properties": {
          "userIds": {
            "minItems": 1,
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "userIds"
        ]
      },
      "CommunityChannelsUpdateBody": {
        "type": "object",
        "properties": {
          "description": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "writersToAdd": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "writersToRemove": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      },
      "CommunityDmCreateBody": {
        "type": "object",
        "properties": {
          "userIds": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "userIds"
        ]
      },
      "ConfigPromotionCreateBody": {
        "type": "object",
        "properties": {
          "buttonName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "images": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "price": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "tag": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "color",
              "name"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "$ref": "#/components/schemas/PromotionStatus"
          }
        },
        "required": [
          "buttonName",
          "description",
          "images",
          "title"
        ]
      },
      "ConfigPromotionUpdateBody": {
        "type": "object",
        "properties": {
          "buttonName": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "endDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "images": {
            "minItems": 1,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "price": {
            "type": "string"
          },
          "startDate": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
          },
          "tag": {
            "type": "object",
            "properties": {
              "color": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "color",
              "name"
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1
          },
          "status": {
            "$ref": "#/components/schemas/PromotionStatus"
          }
        }
      },
      "MeUpdate": {
        "type": "object",
        "properties": {
          "family": {
            "description": "Changes to the family members the person may fill in for, at most 10, saved one after the other in the order sent.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FamilyMemberInput"
            }
          },
          "traveler": {
            "description": "The change to the person's own traveler at the agency they act in; the first one adds it and must include name.",
            "$ref": "#/components/schemas/TravelerSelfUpdate"
          }
        },
        "additionalProperties": false,
        "description": "The changes the person makes to their own traveler and to the family members they may fill in for. Send traveler, family or both."
      },
      "NoteCreate": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000,
            "description": "The text, 1 to 20,000 characters once trimmed, in the format of the editor that writes it."
          },
          "isPinned": {
            "description": "Pins the note to the traveler's overview. False when left out.",
            "type": "boolean"
          },
          "kind": {
            "description": "What the note records. NOTE when left out.",
            "$ref": "#/components/schemas/NoteKind"
          },
          "travelerId": {
            "description": "The traveler (TRV…) the note is about. Required unless travelersTripId is sent; never both.",
            "$ref": "#/components/schemas/TravelerId"
          },
          "travelersTripId": {
            "description": "The trip (TT…) the note is about. Required unless travelerId is sent; never both.",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "content"
        ],
        "additionalProperties": false,
        "description": "A new note about one traveler or one trip.",
        "examples": [
          {
            "content": "Prefers an aisle seat on long flights.",
            "travelerId": "TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T"
          }
        ]
      },
      "NoteUpdate": {
        "type": "object",
        "properties": {
          "content": {
            "description": "The new text, which replaces the old one whole: 1 to 20,000 characters once trimmed.",
            "type": "string",
            "minLength": 1,
            "maxLength": 20000
          },
          "isPinned": {
            "description": "True pins the note to the traveler's overview, false unpins it.",
            "type": "boolean"
          },
          "kind": {
            "description": "What the note records.",
            "$ref": "#/components/schemas/NoteKind"
          }
        },
        "additionalProperties": false,
        "description": "A change to a note: send at least one field; the ones left out keep their values."
      },
      "TravelerSelfUpdate": {
        "type": "object",
        "properties": {
          "address": {
            "description": "The postal address; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "birthDate": {
            "description": "Date of birth, YYYY-MM-DD; null clears it.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "description": "The email and phone, both replaced; the phone in E.164.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "documents": {
            "description": "Every travel document to keep, at most 12: a stored document left out is removed, one sent with its documentId is replaced, and one without is added. Absent leaves the documents as they are.",
            "maxItems": 12,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerDocumentInput"
            }
          },
          "frequentFlyerPrograms": {
            "description": "Every airline loyalty membership to keep, at most 8.",
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            }
          },
          "importantDates": {
            "description": "Every important date to keep, at most 20: a stored date left out is removed, one sent with its dateId is replaced, and one without is added.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportantDateInput"
            }
          },
          "marketingConsent": {
            "$ref": "#/components/schemas/MarketingConsent"
          },
          "name": {
            "description": "The legal name, as printed on the travel document. Required on the change that adds the person's own traveler at an agency.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "description": "Nationality, as an ISO 3166-1 alpha-2 country code; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredChannel": {
            "description": "How the traveler prefers to be contacted; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreferredChannel"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredLanguage": {
            "description": "The language to write to the traveler in, e.g. es or en-US; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageTag"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredName": {
            "description": "The name the traveler goes by, 1 to 100 characters; null clears it.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "profile": {
            "description": "Sections of the travel profile to replace: a section left out is kept and null clears it.",
            "$ref": "#/components/schemas/TravelProfileUpdate"
          },
          "residenceCountryCode": {
            "description": "Country of residence, as an ISO 3166-1 alpha-2 country code; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "description": "The revision read, required for a traveler that exists; left out only on the change that adds the person's own traveler. A traveler changed since answers 409 CRM_REVISION_CONFLICT: read it again and reapply.",
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "sex": {
            "description": "The sex marker on the travel document; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false,
        "description": "A change the person makes to a traveler they fill: each key is one section, an omitted section is kept, null clears a nullable one, and a list replaces the stored list."
      },
      "CrmSettingsUpdate": {
        "type": "object",
        "properties": {
          "customFields": {
            "description": "Every custom field to keep, up to 50, each key once; a stored field left out is deleted.",
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CustomFieldDefinition"
            }
          },
          "defaultVisibility": {
            "description": "Who sees a new traveler unless it says otherwise.",
            "$ref": "#/components/schemas/TravelerVisibility"
          },
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The revision of the settings as read; a change made since answers 409 CRM_REVISION_CONFLICT."
          },
          "segments": {
            "description": "Every segment to keep, up to 50; a stored segment left out is deleted.",
            "maxItems": 50,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SegmentInput"
            }
          },
          "taskTemplates": {
            "description": "Every task template to keep, up to 30; a stored template left out is deleted.",
            "maxItems": 30,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTemplateInput"
            }
          },
          "webhooks": {
            "description": "Every webhook to keep, up to 10; a stored webhook left out is deleted and its secret with it.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WebhookInput"
            }
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false,
        "description": "The sections of the settings to replace, with the revision read; at least one section besides the revision. Each list sent replaces the stored one whole, and a section left out stays as it is."
      },
      "TaskTemplateApply": {
        "type": "object",
        "properties": {
          "assignedUserId": {
            "description": "The user id of the advisor or admin every task goes to. Left out, the caller; null, the trip's advisor, or nobody when the trip has none.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "travelersTripId": {
            "type": "string",
            "minLength": 1,
            "description": "The trip (TT…) the tasks are for. Each task is dated from the trip's start, end or creation, as its step says."
          }
        },
        "required": [
          "travelersTripId"
        ],
        "additionalProperties": false,
        "description": "The trip a task template's tasks are for, and who they are assigned to.",
        "examples": [
          {
            "travelersTripId": "TT01JD4Q9W0Y5X3M2K8B7N6P4R1T"
          }
        ]
      },
      "TaskCreate": {
        "type": "object",
        "properties": {
          "assignedUserId": {
            "description": "The user id of the advisor or admin who should do it; null assigns nobody. The caller when left out.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "description": "More about it, 1 to 2,000 characters once trimmed.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "tentativeDate": {
            "description": "When it should be done, as YYYY-MM-DD.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "What to do, in a few words: 1 to 255 characters once trimmed."
          },
          "travelerId": {
            "description": "The traveler (TRV…) the task is about. Required unless travelersTripId is sent; never both.",
            "$ref": "#/components/schemas/TravelerId"
          },
          "travelersTripId": {
            "description": "The trip (TT…) the task is about. Required unless travelerId is sent; never both.",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "title"
        ],
        "additionalProperties": false,
        "description": "A new task about one traveler or one trip.",
        "examples": [
          {
            "tentativeDate": "2026-11-02",
            "title": "Call about the passport renewal",
            "travelerId": "TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T"
          }
        ]
      },
      "TaskUpdate": {
        "type": "object",
        "properties": {
          "assignedUserId": {
            "description": "The user id of the advisor or admin who should do it; null assigns nobody.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "completed": {
            "description": "True marks the task done, false reopens it.",
            "type": "boolean"
          },
          "notes": {
            "description": "More about it, 1 to 2,000 characters once trimmed; null clears it.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 2000
              },
              {
                "type": "null"
              }
            ]
          },
          "tentativeDate": {
            "description": "When it should be done, as YYYY-MM-DD; null leaves it undated.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "description": "What to do, in a few words: 1 to 255 characters once trimmed.",
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "additionalProperties": false,
        "description": "A change to a task: send at least one field; the ones left out keep their values."
      },
      "TravelerCreate": {
        "type": "object",
        "properties": {
          "address": {
            "description": "The traveler's postal address; null or absent leaves none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignedAdvisorUserId": {
            "description": "Admins only: the user id of the advisor responsible for the traveler. An advisor's new traveler is always their own.",
            "type": "string",
            "minLength": 1
          },
          "birthDate": {
            "description": "Date of birth, YYYY-MM-DD.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "description": "The traveler's email and phone, the phone in E.164.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "customFields": {
            "description": "Values of the agency's own custom fields, by key; each key must be a field the agency defined.",
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-zA-Z0-9]{0,39}$"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomFieldValue"
            }
          },
          "frequentFlyerPrograms": {
            "description": "Up to 8 airline loyalty memberships.",
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            }
          },
          "marketingConsent": {
            "description": "Whether the traveler agreed to marketing messages, per channel; absent means none.",
            "$ref": "#/components/schemas/MarketingConsent"
          },
          "name": {
            "description": "The legal name, as printed on the travel document. The one required field.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "description": "Nationality, as an ISO 3166-1 alpha-2 country code.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredChannel": {
            "description": "How the traveler prefers to be contacted.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreferredChannel"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredLanguage": {
            "description": "The language to write to the traveler in, e.g. es or en-US.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageTag"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredName": {
            "description": "The name the traveler goes by when it is not their given name, 1 to 100 characters.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "referredByTravelerId": {
            "description": "The traveler of the agency who referred this one.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerId"
              },
              {
                "type": "null"
              }
            ]
          },
          "residenceCountryCode": {
            "description": "Country of residence, as an ISO 3166-1 alpha-2 country code.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "sex": {
            "description": "The sex marker on the travel document.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage": {
            "description": "LEAD when absent, or CLIENT.",
            "$ref": "#/components/schemas/TravelerStage"
          },
          "tags": {
            "description": "Up to 20 labels, each 1 to 40 characters.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerTag"
            }
          },
          "visibility": {
            "description": "Which of the agency's advisors see the traveler; the agency's default when absent.",
            "$ref": "#/components/schemas/TravelerVisibility"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "description": "A new traveler. Only the legal name is required; every other section can be filled later.",
        "examples": [
          {
            "contact": {
              "email": "ana@example.com",
              "phone": "+525512345678"
            },
            "name": {
              "familyName": "Pérez",
              "givenName": "Ana",
              "middleName": null
            }
          }
        ]
      },
      "TravelerImport": {
        "type": "object",
        "properties": {
          "rows": {
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerCreate"
            }
          }
        },
        "required": [
          "rows"
        ],
        "additionalProperties": false,
        "description": "Up to 200 travelers to add. A row whose email or phone matches a traveler of the agency is matched, not duplicated."
      },
      "TravelerInvitationCreate": {
        "type": "object",
        "properties": {
          "channel": {
            "type": "string",
            "enum": [
              "EMAIL",
              "SMS"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "ACCOUNT",
              "PROFILE_FORM"
            ]
          }
        },
        "required": [
          "channel",
          "kind"
        ],
        "additionalProperties": false,
        "description": "ACCOUNT invites the traveler to create a Nicer account; PROFILE_FORM sends a link to fill their profile without one.",
        "examples": [
          {
            "channel": "EMAIL",
            "kind": "PROFILE_FORM"
          }
        ]
      },
      "TravelerMerge": {
        "type": "object",
        "properties": {
          "duplicateTravelerId": {
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "duplicateTravelerId"
        ],
        "additionalProperties": false,
        "description": "The traveler to merge into this one. This traveler keeps its values, fills its empty fields from the duplicate and takes its documents, notes, tasks, relationships and trips; the duplicate is removed."
      },
      "TravelerUpdate": {
        "type": "object",
        "properties": {
          "address": {
            "description": "The postal address; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "assignedAdvisorUserId": {
            "description": "Admins only: the user id of the advisor responsible for the traveler; null leaves nobody assigned. The assigned advisor also serves the traveler.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1
              },
              {
                "type": "null"
              }
            ]
          },
          "birthDate": {
            "description": "Date of birth, YYYY-MM-DD; null clears it.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "contact": {
            "description": "The email and phone, both replaced; the phone in E.164.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "contributingAdvisorIds": {
            "description": "Admins only: the user ids of every advisor who serves the traveler, at most 10. The assigned advisor is always kept in the list.",
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          },
          "customFields": {
            "description": "Values of the agency's own custom fields, by key; a key set to null clears that field.",
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-zA-Z0-9]{0,39}$"
            },
            "additionalProperties": {
              "$ref": "#/components/schemas/CustomFieldValue"
            }
          },
          "documents": {
            "description": "Every travel document the traveler keeps, at most 12: a stored document left out is removed, one sent with its documentId is replaced, and one without is added. Absent leaves the documents as they are.",
            "maxItems": 12,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerDocumentInput"
            }
          },
          "frequentFlyerPrograms": {
            "description": "Every airline loyalty membership to keep, at most 8.",
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            }
          },
          "importantDates": {
            "description": "Every important date to keep, at most 20: a stored date left out is removed, one sent with its dateId is replaced, and one without is added.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImportantDateInput"
            }
          },
          "isArchived": {
            "description": "true takes the traveler out of the lists and searches without erasing them; false brings them back.",
            "type": "boolean"
          },
          "marketingConsent": {
            "$ref": "#/components/schemas/MarketingConsent"
          },
          "name": {
            "description": "The legal name, as printed on the travel document.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "description": "Nationality, as an ISO 3166-1 alpha-2 country code; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredChannel": {
            "description": "How the traveler prefers to be contacted; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PreferredChannel"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredLanguage": {
            "description": "The language to write to the traveler in, e.g. es or en-US; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/LanguageTag"
              },
              {
                "type": "null"
              }
            ]
          },
          "preferredName": {
            "description": "The name the traveler goes by, 1 to 100 characters; null clears it.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "profile": {
            "description": "Sections of the travel profile to replace: a section left out is kept and null clears it.",
            "$ref": "#/components/schemas/TravelProfileUpdate"
          },
          "referredByTravelerId": {
            "description": "The traveler of the agency who referred this one, never the traveler itself; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/TravelerId"
              },
              {
                "type": "null"
              }
            ]
          },
          "relationships": {
            "description": "Every relationship to keep, at most 20, written on both travelers: one left out is removed from both.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerRelationshipInput"
            }
          },
          "residenceCountryCode": {
            "description": "Country of residence, as an ISO 3166-1 alpha-2 country code; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "revision": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991,
            "description": "The revision you read. A traveler changed since answers 409 CRM_REVISION_CONFLICT: read it again and reapply."
          },
          "sex": {
            "description": "The sex marker on the travel document; null clears it.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ]
          },
          "stage": {
            "description": "LEAD or CLIENT.",
            "$ref": "#/components/schemas/TravelerStage"
          },
          "tags": {
            "description": "Every label to keep, at most 20, each 1 to 40 characters.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelerTag"
            }
          },
          "visibility": {
            "description": "Which of the agency's advisors see the traveler.",
            "$ref": "#/components/schemas/TravelerVisibility"
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false,
        "description": "Sections of a traveler to replace, with the revision you read. An omitted section is kept and null clears it.",
        "examples": [
          {
            "revision": 3,
            "tags": [
              "VIP"
            ]
          },
          {
            "documents": [
              {
                "expirationDate": "2031-02-01",
                "issuingCountryCode": "MX",
                "kind": "PASSPORT",
                "number": "G12345678"
              }
            ],
            "revision": 4
          }
        ]
      },
      "TripTravelerAdd": {
        "type": "object",
        "properties": {
          "relationship": {
            "description": "The traveler's part in the trip; PRIMARY is the traveler the trip is for.",
            "$ref": "#/components/schemas/TravelersTripRelationship"
          },
          "travelerId": {
            "description": "The traveler's id in the CRM (TRV…).",
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "relationship",
          "travelerId"
        ],
        "additionalProperties": false,
        "description": "An existing traveler of the agency to put on the trip, and their part in it."
      },
      "CrmTripUpdate": {
        "type": "object",
        "properties": {
          "revision": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991,
            "description": "The trip's revision as read; a change made since answers 409 CRM_REVISION_CONFLICT."
          },
          "salesStage": {
            "description": "The sales stage to move the trip to. Only the trip's staff, its advisor or an agency admin, may send it.",
            "$ref": "#/components/schemas/SalesStage"
          },
          "travelers": {
            "description": "Every traveler to keep on the trip, up to 20: one on the trip left out leaves it, and one sent twice keeps the part sent last.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TripTravelerInput"
            }
          }
        },
        "required": [
          "revision"
        ],
        "additionalProperties": false,
        "description": "The trip's whole list of travelers to keep, its sales stage, or both, with the revision read. A traveler sent as a participant is found by email or phone, or added."
      },
      "FavoritesShareUpdateBody": {
        "type": "object",
        "properties": {
          "avatarUrl": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048,
                "pattern": "^https:\\/\\/"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "FavoritesUpdateBody": {
        "type": "object",
        "properties": {
          "activity": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FavoriteActivity"
              },
              {
                "type": "null"
              }
            ]
          },
          "city": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "country": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "imageUrl": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048,
                "pattern": "^https:\\/\\/"
              },
              {
                "type": "null"
              }
            ]
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "rateCodes": {
            "anyOf": [
              {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 16
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "starRating": {
            "anyOf": [
              {
                "type": "number",
                "minimum": 0,
                "maximum": 5
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/FavoriteKind"
          },
          "reference": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          }
        },
        "required": [
          "name",
          "kind",
          "reference"
        ]
      },
      "CompanyMembershipChange": {
        "type": "object",
        "properties": {
          "bookingAccessEnabled": {
            "description": "Whether the portal shows the member the agency's flight booking link.",
            "type": "boolean"
          },
          "hasAdvisorPortalAccess": {
            "description": "Whether an advisor may use the agency's portal. Turned off, the advisor's next token no longer carries the agency, and the CRM leaves the travelers they served for an admin to reassign. An admin keeps the agency either way.",
            "type": "boolean"
          },
          "isTestUser": {
            "description": "Whether this membership is a test account.",
            "type": "boolean"
          },
          "noLeads": {
            "description": "Whether the member is left out when the agency assigns new leads automatically.",
            "type": "boolean"
          },
          "role": {
            "description": "The member's role in the agency. A role moves between advisor and admin only.",
            "type": "string",
            "enum": [
              "advisor",
              "admin"
            ]
          }
        },
        "additionalProperties": false
      },
      "IdentityAgreementCreateBody": {
        "type": "object",
        "properties": {
          "content": {
            "type": "string"
          }
        },
        "required": [
          "content"
        ]
      },
      "IdentityAgreementSignBody": {
        "type": "object",
        "properties": {
          "agreementId": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          }
        },
        "required": [
          "agreementId",
          "signature"
        ]
      },
      "IdentityBookingSiteHostsCreateBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "advisorUserId": {
                "type": "string",
                "minLength": 1
              },
              "handle": {
                "type": "string",
                "pattern": "^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$"
              },
              "kind": {
                "type": "string",
                "const": "SUBDOMAIN"
              }
            },
            "required": [
              "handle",
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "advisorUserId": {
                "type": "string",
                "minLength": 1
              },
              "app": {
                "$ref": "#/components/schemas/HostApp"
              },
              "host": {
                "type": "string",
                "maxLength": 253,
                "pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.){2,}[a-z]{2,63}$"
              },
              "kind": {
                "type": "string",
                "const": "CUSTOM"
              },
              "preserveTraffic": {
                "type": "boolean"
              }
            },
            "required": [
              "host",
              "kind"
            ]
          }
        ]
      },
      "IdentityBookingSitePagesUpdateBody": {
        "type": "object",
        "properties": {
          "enabled": {
            "type": "boolean"
          }
        },
        "required": [
          "enabled"
        ]
      },
      "IdentityBookingSiteUpdateBody": {
        "type": "object",
        "properties": {
          "advisorSites": {
            "type": "boolean"
          },
          "branding": {
            "type": "object",
            "properties": {
              "accentColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "backgroundColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "bodyFont": {
                "$ref": "#/components/schemas/SiteFont"
              },
              "borderColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "contact": {
                "type": "object",
                "properties": {
                  "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-z]{2,}$"
                  },
                  "instagram": {
                    "type": "string",
                    "maxLength": 64,
                    "pattern": "^(?:@?[\\w.]{1,30}|https:\\/\\/(?:www\\.)?instagram\\.com\\/[\\w.]{1,30}\\/?)$"
                  },
                  "phone": {
                    "type": "string",
                    "maxLength": 32
                  },
                  "whatsapp": {
                    "type": "string",
                    "maxLength": 32
                  }
                }
              },
              "faviconUrl": {
                "type": "string"
              },
              "headingFont": {
                "$ref": "#/components/schemas/SiteFont"
              },
              "hero": {
                "type": "object",
                "properties": {
                  "imageUrl": {
                    "type": "string",
                    "maxLength": 2048,
                    "format": "uri"
                  },
                  "subtitle": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 80
                  }
                }
              },
              "logoDarkUrl": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "logoUrl": {
                "type": "string"
              },
              "mode": {
                "type": "string",
                "enum": [
                  "light",
                  "dark",
                  "system"
                ]
              },
              "mutedTextColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "primaryColor": {
                "type": "string"
              },
              "privacyUrl": {
                "type": "string",
                "maxLength": 2048,
                "format": "uri"
              },
              "radius": {
                "type": "integer",
                "minimum": 0,
                "maximum": 24
              },
              "seo": {
                "type": "object",
                "properties": {
                  "description": {
                    "type": "string",
                    "maxLength": 160
                  },
                  "title": {
                    "type": "string",
                    "maxLength": 60
                  }
                }
              },
              "surfaceColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              },
              "textColor": {
                "type": "string",
                "pattern": "^#[0-9a-fA-F]{6}$"
              }
            }
          },
          "enabled": {
            "type": "boolean"
          },
          "handle": {
            "type": "string",
            "pattern": "^[a-z0-9](?:[a-z0-9-]{1,38}[a-z0-9])$"
          }
        }
      },
      "IdentityCompanyCreateBody": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 2,
            "maxLength": 64,
            "pattern": "^[a-z0-9-]+$"
          },
          "config": {
            "type": "object",
            "properties": {
              "bookingSite": {
                "type": "object",
                "properties": {
                  "advisorSites": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "handle": {
                    "type": "string"
                  }
                }
              },
              "branding": {
                "$ref": "#/components/schemas/CompanyBranding"
              },
              "emailSending": {
                "type": "object",
                "properties": {
                  "checkedAt": {
                    "type": "string"
                  },
                  "dkimTokens": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "FAILED",
                      "PENDING",
                      "VERIFIED"
                    ]
                  },
                  "tenant": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "checkedAt",
                  "dkimTokens",
                  "domain",
                  "status",
                  "tenant"
                ]
              },
              "locale": {
                "type": "string"
              },
              "timezone": {
                "type": "string"
              }
            }
          },
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          }
        },
        "required": [
          "companyName",
          "displayName"
        ]
      },
      "IdentityCompanyUpdateBody": {
        "type": "object",
        "properties": {
          "config": {
            "type": "object",
            "properties": {
              "bookingSite": {
                "type": "object",
                "properties": {
                  "advisorSites": {
                    "type": "boolean"
                  },
                  "enabled": {
                    "type": "boolean"
                  },
                  "handle": {
                    "type": "string"
                  }
                }
              },
              "branding": {
                "$ref": "#/components/schemas/CompanyBranding"
              },
              "emailSending": {
                "type": "object",
                "properties": {
                  "checkedAt": {
                    "type": "string"
                  },
                  "dkimTokens": {
                    "maxItems": 3,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "domain": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 253
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "FAILED",
                      "PENDING",
                      "VERIFIED"
                    ]
                  },
                  "tenant": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 64
                  }
                },
                "required": [
                  "checkedAt",
                  "dkimTokens",
                  "domain",
                  "status",
                  "tenant"
                ]
              },
              "locale": {
                "type": "string"
              },
              "timezone": {
                "type": "string"
              }
            }
          },
          "displayName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "suspended"
            ]
          }
        }
      },
      "IdentityEmailDomainUpdateBody": {
        "type": "object",
        "properties": {
          "domain": {
            "type": "string",
            "maxLength": 253,
            "pattern": "^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z]{2,63}$"
          }
        },
        "required": [
          "domain"
        ],
        "additionalProperties": false
      },
      "IdentityEmailTestBody": {
        "type": "object",
        "properties": {
          "templateName": {
            "$ref": "#/components/schemas/PreviewEmailName"
          }
        },
        "required": [
          "templateName"
        ],
        "additionalProperties": false
      },
      "IdentityInvitationsRegistrationAcceptBody": {
        "type": "object",
        "properties": {
          "invitationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "contactType": {
            "type": "string",
            "enum": [
              "email",
              "phone"
            ]
          },
          "verificationReference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "description": "The `registrationVerification` the sign-up challenge returned; with the signed-in session it proves the caller verified the contact with a one-time code."
          },
          "givenName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "familyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "termsAccepted": {
            "type": "boolean",
            "const": true
          }
        },
        "required": [
          "invitationId",
          "verificationReference",
          "givenName",
          "familyName",
          "termsAccepted"
        ],
        "additionalProperties": false
      },
      "IdentityInvitationsRegistrationLookupBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "phoneNumber": {
            "type": "string"
          },
          "invitationId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "verificationReference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$",
            "description": "The `registrationVerification` the sign-up challenge returned; with the signed-in session it proves the caller verified the contact with a one-time code."
          }
        },
        "required": [
          "verificationReference"
        ],
        "additionalProperties": false
      },
      "IdentityInviteCreateBody": {
        "type": "object",
        "properties": {
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "familyName": {
            "type": "string"
          },
          "givenName": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "string"
            }
          },
          "phoneNumber": {
            "type": "string"
          },
          "role": {
            "type": "string",
            "enum": [
              "advisor",
              "admin"
            ]
          },
          "sendMessage": {
            "default": true,
            "type": "boolean"
          }
        },
        "required": [
          "role"
        ],
        "additionalProperties": false
      },
      "IdentityInviteResendBody": {
        "type": "object",
        "properties": {
          "email": {
            "description": "The email the invitation went to; it wins over phoneNumber.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "phoneNumber": {
            "description": "The phone the invitation went to, when it went by text.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        }
      },
      "IdentityJoinRegistrationStatusBody": {
        "type": "object",
        "properties": {
          "reference": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{43}$"
          }
        },
        "required": [
          "reference"
        ],
        "additionalProperties": false
      },
      "IdentityReferralClaimBody": {
        "type": "object",
        "properties": {
          "host": {
            "type": "string",
            "minLength": 1,
            "maxLength": 253
          },
          "ref": {
            "type": "string",
            "maxLength": 64
          }
        },
        "required": [
          "host"
        ]
      },
      "UserUpdate": {
        "type": "object",
        "properties": {
          "biography": {
            "type": "string"
          },
          "calendarUrl": {
            "type": "string",
            "format": "uri"
          },
          "companyName": {
            "type": "string",
            "minLength": 1
          },
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "bookingAccessEnabled": {
            "type": "boolean"
          },
          "familyName": {
            "type": "string"
          },
          "givenName": {
            "type": "string"
          },
          "instagram": {
            "type": "string"
          },
          "location": {
            "type": "object",
            "properties": {
              "city": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "countryCode": {
                "type": "string"
              },
              "state": {
                "type": "string"
              }
            }
          },
          "onboardingCompleted": {
            "type": "boolean"
          },
          "tourProgress": {
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {
              "type": "object",
              "properties": {
                "completedAt": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "completed",
                    "skipped",
                    "dismissed"
                  ]
                }
              },
              "required": [
                "completedAt",
                "status"
              ]
            }
          },
          "zoneinfo": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "IdentityUsersResolveBody": {
        "type": "object",
        "properties": {
          "userIds": {
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        },
        "required": [
          "userIds"
        ]
      },
      "MaintenanceTasksSendEmailBody": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "welcome-email-advisor"
              },
              "userId": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "userId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "bookingId": {
                "type": "string"
              },
              "emails": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "role": {
                "type": "string"
              },
              "type": {
                "type": "string",
                "const": "reservation-confirmation-email"
              }
            },
            "required": [
              "bookingId",
              "emails",
              "type"
            ]
          }
        ]
      },
      "TokenizationCreateBody": {
        "type": "object",
        "properties": {
          "sealed": {
            "type": "object",
            "properties": {
              "v": {
                "type": "number",
                "const": 1
              },
              "alg": {
                "type": "string",
                "const": "RSA-OAEP-256+A256GCM"
              },
              "kid": {
                "type": "string",
                "minLength": 1
              },
              "wrappedKey": {
                "type": "string",
                "minLength": 1
              },
              "nonce": {
                "type": "string",
                "minLength": 1
              },
              "ciphertext": {
                "type": "string",
                "minLength": 1
              }
            },
            "required": [
              "v",
              "alg",
              "kid",
              "wrappedKey",
              "nonce",
              "ciphertext"
            ]
          },
          "paymentMethodId": {
            "type": "string",
            "pattern": "^paym_.*"
          },
          "saveMethod": {
            "type": "boolean"
          },
          "saveOnly": {
            "type": "boolean"
          }
        },
        "required": [
          "sealed"
        ]
      },
      "TourViatorProductsCreateBody": {
        "type": "object",
        "properties": {
          "currency": {
            "default": "USD",
            "type": "string"
          },
          "dates": {
            "type": "object",
            "properties": {
              "endDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "startDate": {
                "type": "string",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              }
            },
            "required": [
              "endDate",
              "startDate"
            ]
          },
          "destinationId": {
            "type": "string"
          },
          "filters": {
            "type": "object",
            "properties": {
              "duration": {
                "type": "object",
                "properties": {
                  "maxMinutes": {
                    "type": "number"
                  },
                  "minMinutes": {
                    "type": "number"
                  }
                }
              },
              "flags": {
                "type": "array",
                "items": {
                  "type": "string",
                  "enum": [
                    "NEW_ON_VIATOR",
                    "FREE_CANCELLATION",
                    "SKIP_THE_LINE",
                    "PRIVATE_TOUR",
                    "SPECIAL_OFFER",
                    "LIKELY_TO_SELL_OUT"
                  ]
                }
              },
              "priceRange": {
                "type": "object",
                "properties": {
                  "max": {
                    "type": "number"
                  },
                  "min": {
                    "type": "number"
                  }
                }
              }
            }
          },
          "pagination": {
            "type": "object",
            "properties": {
              "page": {
                "default": 1,
                "type": "number",
                "minimum": 1
              },
              "pageSize": {
                "default": 20,
                "type": "number",
                "minimum": 1,
                "maximum": 100
              }
            }
          },
          "sort": {
            "type": "object",
            "properties": {
              "direction": {
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "field": {
                "type": "string",
                "enum": [
                  "price",
                  "recommended"
                ]
              }
            },
            "required": [
              "direction",
              "field"
            ]
          }
        },
        "required": [
          "destinationId"
        ]
      },
      "TravelersTripCreateBody": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "availableDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              }
            ]
          },
          "budgetCurrency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "createdReason": {
            "type": "string",
            "enum": [
              "CREATED_BY_TRAVELER",
              "CREATED_BY_ADVISOR",
              "CREATED_BY_MATCHING_ADVISOR",
              "CREATED_BY_BOOKING"
            ]
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "country": {
                  "type": "string"
                },
                "countryCode": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "distanceFromSearch": {
                  "type": "object",
                  "properties": {
                    "unit": {
                      "type": "string",
                      "enum": [
                        "km",
                        "mi"
                      ]
                    },
                    "value": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "unit",
                    "value"
                  ]
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "fullAddress": {
                  "type": "string"
                },
                "gate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "iataCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "internovaId": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number"
                },
                "longitude": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "photos": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name"
                    ]
                  }
                },
                "placeId": {
                  "type": "string"
                },
                "region": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "state": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "terminal": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "timeZone": {
                  "type": "string"
                },
                "zipCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "endDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                },
                "startDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                }
              }
            }
          },
          "hasFlexibleDates": {
            "type": "boolean"
          },
          "isAllPricesHidden": {
            "default": false,
            "type": "boolean"
          },
          "isItineraryVisible": {
            "default": true,
            "type": "boolean"
          },
          "isSummaryHidden": {
            "default": false,
            "type": "boolean"
          },
          "primaryTravelerUserId": {
            "type": "string"
          },
          "specialRequests": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "suggestionsEnabled": {
            "type": "boolean"
          },
          "travelers": {
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            }
          },
          "tripEndDate": {
            "type": "string"
          },
          "tripStartDate": {
            "type": "string"
          },
          "tripTitle": {
            "type": "string"
          },
          "amount": {
            "type": "number"
          },
          "budget": {
            "anyOf": [
              {
                "type": "string",
                "const": "goodValue"
              },
              {
                "type": "string",
                "const": "luxury"
              }
            ]
          },
          "purpose": {
            "anyOf": [
              {
                "type": "string",
                "const": "holidays"
              },
              {
                "type": "string",
                "const": "business"
              },
              {
                "type": "string",
                "const": "honeymoon"
              },
              {
                "type": "string",
                "const": "familyFriends"
              }
            ]
          },
          "who": {
            "anyOf": [
              {
                "type": "string",
                "const": "solo"
              },
              {
                "type": "string",
                "const": "withKids"
              },
              {
                "type": "string",
                "const": "partner"
              },
              {
                "type": "string",
                "const": "group"
              }
            ]
          },
          "advisorId": {
            "type": "string"
          },
          "companyName": {
            "type": "string"
          }
        },
        "required": [
          "destinations",
          "hasFlexibleDates",
          "tripEndDate",
          "tripStartDate",
          "tripTitle"
        ]
      },
      "TravelersTripInviteBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          },
          "familyName": {
            "type": "string"
          },
          "givenName": {
            "type": "string"
          },
          "phoneNumber": {
            "type": "string",
            "minLength": 1
          }
        }
      },
      "TravelersTripToggleArchiveBody": {
        "type": "object",
        "properties": {
          "isArchived": {
            "type": "boolean"
          }
        },
        "required": [
          "isArchived"
        ]
      },
      "TravelersTripUpdateBody": {
        "type": "object",
        "properties": {
          "assignedAdvisorUserId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "availableDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              }
            ]
          },
          "budgetCurrency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "destinations": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "address": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "amenities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "city": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "country": {
                  "type": "string"
                },
                "countryCode": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "distanceFromSearch": {
                  "type": "object",
                  "properties": {
                    "unit": {
                      "type": "string",
                      "enum": [
                        "km",
                        "mi"
                      ]
                    },
                    "value": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "unit",
                    "value"
                  ]
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "fullAddress": {
                  "type": "string"
                },
                "gate": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "iataCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "internovaId": {
                  "type": "string"
                },
                "latitude": {
                  "type": "number"
                },
                "longitude": {
                  "type": "number"
                },
                "name": {
                  "type": "string"
                },
                "photos": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      },
                      "url": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "name"
                    ]
                  }
                },
                "placeId": {
                  "type": "string"
                },
                "region": {
                  "type": "string"
                },
                "source": {
                  "type": "string"
                },
                "state": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "terminal": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "timeZone": {
                  "type": "string"
                },
                "zipCode": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "endDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                },
                "headerImageUrl": {
                  "type": "string"
                },
                "startDateTime": {
                  "type": "string",
                  "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
                }
              }
            }
          },
          "hasFlexibleDates": {
            "type": "boolean"
          },
          "isAllPricesHidden": {
            "type": "boolean"
          },
          "isItineraryVisible": {
            "type": "boolean"
          },
          "isSummaryHidden": {
            "type": "boolean"
          },
          "specialRequests": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "travelers": {
            "type": "object",
            "properties": {
              "adults": {
                "type": "number"
              },
              "children": {
                "type": "number"
              }
            }
          },
          "tripEndDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "tripStartDate": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
          },
          "tripTitle": {
            "type": "string"
          }
        }
      },
      "TripItineraryDocumentsCreateBody": {
        "type": "object",
        "properties": {
          "mode": {
            "default": "merge",
            "type": "string",
            "enum": [
              "merge",
              "replace"
            ]
          }
        }
      },
      "TripItineraryOffersCreateBody": {
        "type": "object",
        "properties": {
          "groupId": {
            "description": "Add it among the alternatives of this itinerary slot.",
            "type": "string",
            "minLength": 1
          },
          "offerReference": {
            "type": "string",
            "minLength": 1,
            "description": "The live offer: a room's offerReference from getHotelRooms, or a flight's or car rental's offerReference from its search."
          }
        },
        "required": [
          "offerReference"
        ],
        "additionalProperties": false
      },
      "TripItineraryPublicApproveSegmentBody": {
        "type": "object",
        "properties": {
          "segmentId": {
            "type": "string"
          }
        },
        "required": [
          "segmentId"
        ]
      },
      "TripItineraryPublicSelectOptionSegmentBody": {
        "type": "object",
        "properties": {
          "segmentId": {
            "type": "string"
          }
        },
        "required": [
          "segmentId"
        ]
      },
      "TripItinerarySegmentBody": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "operations": {
                "minItems": 1,
                "maxItems": 1,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "operation": {
                          "type": "string",
                          "const": "delete"
                        },
                        "segment": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "id"
                          ]
                        }
                      },
                      "required": [
                        "operation",
                        "segment"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "operation": {
                          "type": "string",
                          "const": "update"
                        },
                        "segment": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "flight"
                                },
                                "baggageCharges": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightBaggageCharge"
                                  }
                                },
                                "brandFeatures": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                                  }
                                },
                                "cabin": {
                                  "type": "string",
                                  "enum": [
                                    "BUSINESS",
                                    "ECONOMY",
                                    "FIRST",
                                    "PREMIUM_ECONOMY"
                                  ]
                                },
                                "commercialSnapshot": {
                                  "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                                  "$ref": "#/components/schemas/BookingCommercialSnapshot"
                                },
                                "fareRules": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                                  }
                                },
                                "flightIndex": {
                                  "type": "string"
                                },
                                "flightType": {
                                  "type": "string",
                                  "enum": [
                                    "one-way",
                                    "round-trip",
                                    "multi-city"
                                  ]
                                },
                                "inbound": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightItineraryInput"
                                  }
                                },
                                "outbound": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightItineraryInput"
                                  }
                                },
                                "owner": {
                                  "$ref": "#/components/schemas/FlightCarrierSnapshot"
                                },
                                "passengers": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightPassengerSnapshot"
                                  }
                                },
                                "policies": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/QuotePolicy"
                                  }
                                },
                                "priceSnapshot": {
                                  "$ref": "#/components/schemas/BookingPriceSnapshot"
                                },
                                "rules": {
                                  "$ref": "#/components/schemas/FlightRules"
                                },
                                "ticketingDeadline": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "lodging"
                                },
                                "bookingOccupancy": {
                                  "type": "object",
                                  "properties": {
                                    "rooms": {
                                      "minItems": 1,
                                      "maxItems": 8,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "adults": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 8
                                          },
                                          "children": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 6
                                          },
                                          "childrenAges": {
                                            "maxItems": 6,
                                            "type": "array",
                                            "items": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 17
                                            }
                                          }
                                        },
                                        "required": [
                                          "adults",
                                          "children",
                                          "childrenAges"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "rooms"
                                  ],
                                  "additionalProperties": false
                                },
                                "checkinDate": {
                                  "type": "string"
                                },
                                "checkoutDate": {
                                  "type": "string"
                                },
                                "commercialSnapshot": {
                                  "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                                  "$ref": "#/components/schemas/BookingCommercialSnapshot"
                                },
                                "lodge": {
                                  "type": "object",
                                  "properties": {
                                    "checkin": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "checkout": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "guests": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "rooms": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/components/schemas/Room"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "stars": {
                                      "type": "number"
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "proposed",
                                        "hold",
                                        "booked",
                                        "cancelled"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name"
                                  ]
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "car_rental"
                                },
                                "carType": {
                                  "type": "string"
                                },
                                "dropoff": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "engine": {
                                  "type": "string",
                                  "enum": [
                                    "ELECTRIC",
                                    "HYBRID",
                                    "GASOLINE",
                                    "DIESEL"
                                  ]
                                },
                                "insurance": {
                                  "type": "string"
                                },
                                "model": {
                                  "type": "string"
                                },
                                "pickup": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "transmission": {
                                  "type": "string",
                                  "enum": [
                                    "MANUAL",
                                    "AUTOMATIC"
                                  ]
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "transportation"
                                },
                                "arrivalDateTime": {
                                  "type": "string"
                                },
                                "arrivalLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "arrivalTimezone": {
                                  "type": "string"
                                },
                                "departureDateTime": {
                                  "type": "string"
                                },
                                "departureLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "departureTimezone": {
                                  "type": "string"
                                },
                                "guests": {
                                  "type": "number"
                                },
                                "transportationType": {
                                  "type": "string",
                                  "enum": [
                                    "ground_transportation",
                                    "train",
                                    "bus",
                                    "automobile"
                                  ]
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "cruise"
                                },
                                "arrivalDateTime": {
                                  "type": "string"
                                },
                                "arrivalLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "arrivalTimezone": {
                                  "type": "string"
                                },
                                "departureDateTime": {
                                  "type": "string"
                                },
                                "departureLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "departureTimezone": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                },
                                "stop": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Location"
                                  }
                                },
                                "suites": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Suite"
                                  }
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "activity"
                                },
                                "additionalInfo": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "bookingQuestions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "cancellationPolicy": {
                                  "type": "object",
                                  "properties": {
                                    "cancelIfBadWeather": {
                                      "type": "boolean"
                                    },
                                    "freeDeadline": {
                                      "type": "string"
                                    },
                                    "isCancellable": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "isCancellable"
                                  ]
                                },
                                "dropoffInstructions": {
                                  "type": "string"
                                },
                                "dropoffLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "dropoffTime": {
                                  "type": "string"
                                },
                                "durationMinutes": {
                                  "type": "number"
                                },
                                "durationText": {
                                  "type": "string"
                                },
                                "exclusions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "freeCancellation": {
                                  "type": "boolean"
                                },
                                "inclusions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "instantConfirmation": {
                                  "type": "boolean"
                                },
                                "itinerarySteps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "admissionIncluded": {
                                        "type": "string",
                                        "enum": [
                                          "YES",
                                          "NO",
                                          "NOT_APPLICABLE"
                                        ]
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "durationMinutes": {
                                        "type": "number"
                                      },
                                      "durationText": {
                                        "type": "string"
                                      },
                                      "location": {
                                        "$ref": "#/components/schemas/Location"
                                      },
                                      "passByWithoutStopping": {
                                        "type": "boolean"
                                      },
                                      "title": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ]
                                  }
                                },
                                "languages": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "maxTravelersPerBooking": {
                                  "type": "number"
                                },
                                "minTravelersPerBooking": {
                                  "type": "number"
                                },
                                "mobileTicket": {
                                  "type": "boolean"
                                },
                                "pickupInstructions": {
                                  "type": "string"
                                },
                                "pickupLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "pickupTime": {
                                  "type": "string"
                                },
                                "privateTour": {
                                  "type": "boolean"
                                },
                                "provider": {
                                  "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                                  "type": "string"
                                },
                                "providerBookingRef": {
                                  "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                                  "type": "string"
                                },
                                "providerProductCode": {
                                  "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                                  "type": "string"
                                },
                                "providerProductUrl": {
                                  "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                                  "type": "string"
                                },
                                "reviews": {
                                  "type": "object",
                                  "properties": {
                                    "averageRating": {
                                      "type": "number"
                                    },
                                    "totalReviews": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "skipTheLine": {
                                  "type": "boolean"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                },
                                "supplierName": {
                                  "type": "string"
                                },
                                "supplierReference": {
                                  "type": "string"
                                },
                                "timeZone": {
                                  "type": "string"
                                },
                                "travelers": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "restaurant"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                }
                              },
                              "required": [
                                "id"
                              ],
                              "additionalProperties": {}
                            }
                          ]
                        },
                        "unset": {
                          "description": "Clear unknown end times without sending JSON null through the Gateway. Omitted fields otherwise stay unchanged.",
                          "type": "array",
                          "items": {
                            "type": "string",
                            "enum": [
                              "endDateTime"
                            ]
                          }
                        }
                      },
                      "required": [
                        "operation",
                        "segment"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "operation": {
                          "type": "string",
                          "const": "add"
                        },
                        "segment": {
                          "oneOf": [
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "flight"
                                },
                                "baggageCharges": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightBaggageCharge"
                                  }
                                },
                                "brandFeatures": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                                  }
                                },
                                "cabin": {
                                  "type": "string",
                                  "enum": [
                                    "BUSINESS",
                                    "ECONOMY",
                                    "FIRST",
                                    "PREMIUM_ECONOMY"
                                  ]
                                },
                                "commercialSnapshot": {
                                  "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                                  "$ref": "#/components/schemas/BookingCommercialSnapshot"
                                },
                                "fareRules": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                                  }
                                },
                                "flightIndex": {
                                  "type": "string"
                                },
                                "flightType": {
                                  "type": "string",
                                  "enum": [
                                    "one-way",
                                    "round-trip",
                                    "multi-city"
                                  ]
                                },
                                "inbound": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightItineraryInput"
                                  }
                                },
                                "outbound": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightItineraryInput"
                                  }
                                },
                                "owner": {
                                  "$ref": "#/components/schemas/FlightCarrierSnapshot"
                                },
                                "passengers": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/FlightPassengerSnapshot"
                                  }
                                },
                                "policies": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/QuotePolicy"
                                  }
                                },
                                "priceSnapshot": {
                                  "$ref": "#/components/schemas/BookingPriceSnapshot"
                                },
                                "rules": {
                                  "$ref": "#/components/schemas/FlightRules"
                                },
                                "ticketingDeadline": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "flightType"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "lodging"
                                },
                                "bookingOccupancy": {
                                  "type": "object",
                                  "properties": {
                                    "rooms": {
                                      "minItems": 1,
                                      "maxItems": 8,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "adults": {
                                            "type": "integer",
                                            "minimum": 1,
                                            "maximum": 8
                                          },
                                          "children": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 6
                                          },
                                          "childrenAges": {
                                            "maxItems": 6,
                                            "type": "array",
                                            "items": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 17
                                            }
                                          }
                                        },
                                        "required": [
                                          "adults",
                                          "children",
                                          "childrenAges"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "rooms"
                                  ],
                                  "additionalProperties": false
                                },
                                "checkinDate": {
                                  "type": "string"
                                },
                                "checkoutDate": {
                                  "type": "string"
                                },
                                "commercialSnapshot": {
                                  "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                                  "$ref": "#/components/schemas/BookingCommercialSnapshot"
                                },
                                "lodge": {
                                  "type": "object",
                                  "properties": {
                                    "checkin": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "checkout": {
                                      "anyOf": [
                                        {
                                          "type": "string"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "guests": {
                                      "type": "array",
                                      "items": {
                                        "type": "string"
                                      }
                                    },
                                    "name": {
                                      "type": "string"
                                    },
                                    "rooms": {
                                      "anyOf": [
                                        {
                                          "type": "array",
                                          "items": {
                                            "$ref": "#/components/schemas/Room"
                                          }
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "stars": {
                                      "type": "number"
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "proposed",
                                        "hold",
                                        "booked",
                                        "cancelled"
                                      ]
                                    }
                                  },
                                  "required": [
                                    "name"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "checkinDate",
                                "checkoutDate",
                                "lodge"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "car_rental"
                                },
                                "carType": {
                                  "type": "string"
                                },
                                "dropoff": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "engine": {
                                  "type": "string",
                                  "enum": [
                                    "ELECTRIC",
                                    "HYBRID",
                                    "GASOLINE",
                                    "DIESEL"
                                  ]
                                },
                                "insurance": {
                                  "type": "string"
                                },
                                "model": {
                                  "type": "string"
                                },
                                "pickup": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "transmission": {
                                  "type": "string",
                                  "enum": [
                                    "MANUAL",
                                    "AUTOMATIC"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "dropoff",
                                "pickup"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "transportation"
                                },
                                "arrivalDateTime": {
                                  "type": "string"
                                },
                                "arrivalLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "arrivalTimezone": {
                                  "type": "string"
                                },
                                "departureDateTime": {
                                  "type": "string"
                                },
                                "departureLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "departureTimezone": {
                                  "type": "string"
                                },
                                "guests": {
                                  "type": "number"
                                },
                                "transportationType": {
                                  "type": "string",
                                  "enum": [
                                    "ground_transportation",
                                    "train",
                                    "bus",
                                    "automobile"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "cruise"
                                },
                                "arrivalDateTime": {
                                  "type": "string"
                                },
                                "arrivalLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "arrivalTimezone": {
                                  "type": "string"
                                },
                                "departureDateTime": {
                                  "type": "string"
                                },
                                "departureLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "departureTimezone": {
                                  "type": "string"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                },
                                "stop": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Location"
                                  }
                                },
                                "suites": {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Suite"
                                  }
                                }
                              },
                              "required": [
                                "type",
                                "departureLocation"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "activity"
                                },
                                "additionalInfo": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "bookingQuestions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "cancellationPolicy": {
                                  "type": "object",
                                  "properties": {
                                    "cancelIfBadWeather": {
                                      "type": "boolean"
                                    },
                                    "freeDeadline": {
                                      "type": "string"
                                    },
                                    "isCancellable": {
                                      "type": "boolean"
                                    }
                                  },
                                  "required": [
                                    "isCancellable"
                                  ]
                                },
                                "dropoffInstructions": {
                                  "type": "string"
                                },
                                "dropoffLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "dropoffTime": {
                                  "type": "string"
                                },
                                "durationMinutes": {
                                  "type": "number"
                                },
                                "durationText": {
                                  "type": "string"
                                },
                                "exclusions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "freeCancellation": {
                                  "type": "boolean"
                                },
                                "inclusions": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "instantConfirmation": {
                                  "type": "boolean"
                                },
                                "itinerarySteps": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "admissionIncluded": {
                                        "type": "string",
                                        "enum": [
                                          "YES",
                                          "NO",
                                          "NOT_APPLICABLE"
                                        ]
                                      },
                                      "description": {
                                        "type": "string"
                                      },
                                      "durationMinutes": {
                                        "type": "number"
                                      },
                                      "durationText": {
                                        "type": "string"
                                      },
                                      "location": {
                                        "$ref": "#/components/schemas/Location"
                                      },
                                      "passByWithoutStopping": {
                                        "type": "boolean"
                                      },
                                      "title": {
                                        "type": "string"
                                      }
                                    },
                                    "required": [
                                      "title"
                                    ]
                                  }
                                },
                                "languages": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "maxTravelersPerBooking": {
                                  "type": "number"
                                },
                                "minTravelersPerBooking": {
                                  "type": "number"
                                },
                                "mobileTicket": {
                                  "type": "boolean"
                                },
                                "pickupInstructions": {
                                  "type": "string"
                                },
                                "pickupLocation": {
                                  "$ref": "#/components/schemas/Location"
                                },
                                "pickupTime": {
                                  "type": "string"
                                },
                                "privateTour": {
                                  "type": "boolean"
                                },
                                "provider": {
                                  "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                                  "type": "string"
                                },
                                "providerBookingRef": {
                                  "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                                  "type": "string"
                                },
                                "providerProductCode": {
                                  "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                                  "type": "string"
                                },
                                "providerProductUrl": {
                                  "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                                  "type": "string"
                                },
                                "reviews": {
                                  "type": "object",
                                  "properties": {
                                    "averageRating": {
                                      "type": "number"
                                    },
                                    "totalReviews": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "skipTheLine": {
                                  "type": "boolean"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                },
                                "supplierName": {
                                  "type": "string"
                                },
                                "supplierReference": {
                                  "type": "string"
                                },
                                "timeZone": {
                                  "type": "string"
                                },
                                "travelers": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "restaurant"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                }
                              },
                              "required": [
                                "type"
                              ]
                            },
                            {
                              "type": "object",
                              "properties": {
                                "advisorInsights": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "amenities": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "approvedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "approvedBy": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "attachments": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "countTravelers": {
                                  "type": "number"
                                },
                                "createdAt": {
                                  "type": "string"
                                },
                                "createdBy": {
                                  "type": "string"
                                },
                                "currency": {
                                  "type": "string"
                                },
                                "details": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "endDateTime": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "groupId": {
                                  "type": "string"
                                },
                                "hash": {
                                  "type": "string"
                                },
                                "id": {
                                  "type": "string",
                                  "minLength": 1
                                },
                                "images": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Attachment"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "isOnSitePayment": {
                                  "type": "boolean"
                                },
                                "lastModifiedBy": {
                                  "type": "string"
                                },
                                "location": {
                                  "anyOf": [
                                    {
                                      "$ref": "#/components/schemas/Location"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "metadata": {
                                  "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {}
                                },
                                "price": {
                                  "type": "number"
                                },
                                "priceInUSD": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "rate": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "startDateTime": {
                                  "type": "string"
                                },
                                "title": {
                                  "type": "string"
                                },
                                "updatedAt": {
                                  "type": "string"
                                },
                                "type": {
                                  "type": "string",
                                  "const": "custom"
                                }
                              },
                              "required": [
                                "title",
                                "type"
                              ]
                            }
                          ]
                        }
                      },
                      "required": [
                        "operation"
                      ]
                    }
                  ]
                }
              }
            },
            "required": [
              "operations"
            ]
          },
          {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "const": "delete"
                    },
                    "segment": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id"
                      ]
                    }
                  },
                  "required": [
                    "operation",
                    "segment"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "const": "update"
                    },
                    "segment": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "flight"
                            },
                            "baggageCharges": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBaggageCharge"
                              }
                            },
                            "brandFeatures": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                              }
                            },
                            "cabin": {
                              "type": "string",
                              "enum": [
                                "BUSINESS",
                                "ECONOMY",
                                "FIRST",
                                "PREMIUM_ECONOMY"
                              ]
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "fareRules": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                              }
                            },
                            "flightIndex": {
                              "type": "string"
                            },
                            "flightType": {
                              "type": "string",
                              "enum": [
                                "one-way",
                                "round-trip",
                                "multi-city"
                              ]
                            },
                            "inbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItineraryInput"
                              }
                            },
                            "outbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItineraryInput"
                              }
                            },
                            "owner": {
                              "$ref": "#/components/schemas/FlightCarrierSnapshot"
                            },
                            "passengers": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightPassengerSnapshot"
                              }
                            },
                            "policies": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/QuotePolicy"
                              }
                            },
                            "priceSnapshot": {
                              "$ref": "#/components/schemas/BookingPriceSnapshot"
                            },
                            "rules": {
                              "$ref": "#/components/schemas/FlightRules"
                            },
                            "ticketingDeadline": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "lodging"
                            },
                            "bookingOccupancy": {
                              "type": "object",
                              "properties": {
                                "rooms": {
                                  "minItems": 1,
                                  "maxItems": 8,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "adults": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 8
                                      },
                                      "children": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "childrenAges": {
                                        "maxItems": 6,
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 17
                                        }
                                      }
                                    },
                                    "required": [
                                      "adults",
                                      "children",
                                      "childrenAges"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "rooms"
                              ],
                              "additionalProperties": false
                            },
                            "checkinDate": {
                              "type": "string"
                            },
                            "checkoutDate": {
                              "type": "string"
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "lodge": {
                              "type": "object",
                              "properties": {
                                "checkin": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkout": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "guests": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "name": {
                                  "type": "string"
                                },
                                "rooms": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Room"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "stars": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                }
                              },
                              "required": [
                                "name"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "car_rental"
                            },
                            "carType": {
                              "type": "string"
                            },
                            "dropoff": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "engine": {
                              "type": "string",
                              "enum": [
                                "ELECTRIC",
                                "HYBRID",
                                "GASOLINE",
                                "DIESEL"
                              ]
                            },
                            "insurance": {
                              "type": "string"
                            },
                            "model": {
                              "type": "string"
                            },
                            "pickup": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "transmission": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "AUTOMATIC"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "transportation"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "guests": {
                              "type": "number"
                            },
                            "transportationType": {
                              "type": "string",
                              "enum": [
                                "ground_transportation",
                                "train",
                                "bus",
                                "automobile"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "cruise"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "stop": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Location"
                              }
                            },
                            "suites": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Suite"
                              }
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "activity"
                            },
                            "additionalInfo": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bookingQuestions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "cancellationPolicy": {
                              "type": "object",
                              "properties": {
                                "cancelIfBadWeather": {
                                  "type": "boolean"
                                },
                                "freeDeadline": {
                                  "type": "string"
                                },
                                "isCancellable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "isCancellable"
                              ]
                            },
                            "dropoffInstructions": {
                              "type": "string"
                            },
                            "dropoffLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "dropoffTime": {
                              "type": "string"
                            },
                            "durationMinutes": {
                              "type": "number"
                            },
                            "durationText": {
                              "type": "string"
                            },
                            "exclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "freeCancellation": {
                              "type": "boolean"
                            },
                            "inclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "instantConfirmation": {
                              "type": "boolean"
                            },
                            "itinerarySteps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "admissionIncluded": {
                                    "type": "string",
                                    "enum": [
                                      "YES",
                                      "NO",
                                      "NOT_APPLICABLE"
                                    ]
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "durationMinutes": {
                                    "type": "number"
                                  },
                                  "durationText": {
                                    "type": "string"
                                  },
                                  "location": {
                                    "$ref": "#/components/schemas/Location"
                                  },
                                  "passByWithoutStopping": {
                                    "type": "boolean"
                                  },
                                  "title": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "title"
                                ]
                              }
                            },
                            "languages": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "maxTravelersPerBooking": {
                              "type": "number"
                            },
                            "minTravelersPerBooking": {
                              "type": "number"
                            },
                            "mobileTicket": {
                              "type": "boolean"
                            },
                            "pickupInstructions": {
                              "type": "string"
                            },
                            "pickupLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "pickupTime": {
                              "type": "string"
                            },
                            "privateTour": {
                              "type": "boolean"
                            },
                            "provider": {
                              "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                              "type": "string"
                            },
                            "providerBookingRef": {
                              "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductCode": {
                              "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductUrl": {
                              "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "reviews": {
                              "type": "object",
                              "properties": {
                                "averageRating": {
                                  "type": "number"
                                },
                                "totalReviews": {
                                  "type": "number"
                                }
                              }
                            },
                            "skipTheLine": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "supplierName": {
                              "type": "string"
                            },
                            "supplierReference": {
                              "type": "string"
                            },
                            "timeZone": {
                              "type": "string"
                            },
                            "travelers": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "restaurant"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "custom"
                            }
                          },
                          "required": [
                            "id"
                          ],
                          "additionalProperties": {}
                        }
                      ]
                    },
                    "unset": {
                      "description": "Clear unknown end times without sending JSON null through the Gateway. Omitted fields otherwise stay unchanged.",
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "endDateTime"
                        ]
                      }
                    }
                  },
                  "required": [
                    "operation",
                    "segment"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "operation": {
                      "type": "string",
                      "const": "add"
                    },
                    "segment": {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "flight"
                            },
                            "baggageCharges": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBaggageCharge"
                              }
                            },
                            "brandFeatures": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
                              }
                            },
                            "cabin": {
                              "type": "string",
                              "enum": [
                                "BUSINESS",
                                "ECONOMY",
                                "FIRST",
                                "PREMIUM_ECONOMY"
                              ]
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "fareRules": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightFareRuleSnapshot"
                              }
                            },
                            "flightIndex": {
                              "type": "string"
                            },
                            "flightType": {
                              "type": "string",
                              "enum": [
                                "one-way",
                                "round-trip",
                                "multi-city"
                              ]
                            },
                            "inbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItineraryInput"
                              }
                            },
                            "outbound": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightItineraryInput"
                              }
                            },
                            "owner": {
                              "$ref": "#/components/schemas/FlightCarrierSnapshot"
                            },
                            "passengers": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/FlightPassengerSnapshot"
                              }
                            },
                            "policies": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/QuotePolicy"
                              }
                            },
                            "priceSnapshot": {
                              "$ref": "#/components/schemas/BookingPriceSnapshot"
                            },
                            "rules": {
                              "$ref": "#/components/schemas/FlightRules"
                            },
                            "ticketingDeadline": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "flightType"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "lodging"
                            },
                            "bookingOccupancy": {
                              "type": "object",
                              "properties": {
                                "rooms": {
                                  "minItems": 1,
                                  "maxItems": 8,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "adults": {
                                        "type": "integer",
                                        "minimum": 1,
                                        "maximum": 8
                                      },
                                      "children": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 6
                                      },
                                      "childrenAges": {
                                        "maxItems": 6,
                                        "type": "array",
                                        "items": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 17
                                        }
                                      }
                                    },
                                    "required": [
                                      "adults",
                                      "children",
                                      "childrenAges"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "rooms"
                              ],
                              "additionalProperties": false
                            },
                            "checkinDate": {
                              "type": "string"
                            },
                            "checkoutDate": {
                              "type": "string"
                            },
                            "commercialSnapshot": {
                              "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
                              "$ref": "#/components/schemas/BookingCommercialSnapshot"
                            },
                            "lodge": {
                              "type": "object",
                              "properties": {
                                "checkin": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "checkout": {
                                  "anyOf": [
                                    {
                                      "type": "string"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "guests": {
                                  "type": "array",
                                  "items": {
                                    "type": "string"
                                  }
                                },
                                "name": {
                                  "type": "string"
                                },
                                "rooms": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "$ref": "#/components/schemas/Room"
                                      }
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "stars": {
                                  "type": "number"
                                },
                                "status": {
                                  "type": "string",
                                  "enum": [
                                    "proposed",
                                    "hold",
                                    "booked",
                                    "cancelled"
                                  ]
                                }
                              },
                              "required": [
                                "name"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "checkinDate",
                            "checkoutDate",
                            "lodge"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "car_rental"
                            },
                            "carType": {
                              "type": "string"
                            },
                            "dropoff": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "engine": {
                              "type": "string",
                              "enum": [
                                "ELECTRIC",
                                "HYBRID",
                                "GASOLINE",
                                "DIESEL"
                              ]
                            },
                            "insurance": {
                              "type": "string"
                            },
                            "model": {
                              "type": "string"
                            },
                            "pickup": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "transmission": {
                              "type": "string",
                              "enum": [
                                "MANUAL",
                                "AUTOMATIC"
                              ]
                            }
                          },
                          "required": [
                            "type",
                            "dropoff",
                            "pickup"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "transportation"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "guests": {
                              "type": "number"
                            },
                            "transportationType": {
                              "type": "string",
                              "enum": [
                                "ground_transportation",
                                "train",
                                "bus",
                                "automobile"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "cruise"
                            },
                            "arrivalDateTime": {
                              "type": "string"
                            },
                            "arrivalLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "arrivalTimezone": {
                              "type": "string"
                            },
                            "departureDateTime": {
                              "type": "string"
                            },
                            "departureLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "departureTimezone": {
                              "type": "string"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "stop": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Location"
                              }
                            },
                            "suites": {
                              "type": "array",
                              "items": {
                                "$ref": "#/components/schemas/Suite"
                              }
                            }
                          },
                          "required": [
                            "type",
                            "departureLocation"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "activity"
                            },
                            "additionalInfo": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "bookingQuestions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "cancellationPolicy": {
                              "type": "object",
                              "properties": {
                                "cancelIfBadWeather": {
                                  "type": "boolean"
                                },
                                "freeDeadline": {
                                  "type": "string"
                                },
                                "isCancellable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "isCancellable"
                              ]
                            },
                            "dropoffInstructions": {
                              "type": "string"
                            },
                            "dropoffLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "dropoffTime": {
                              "type": "string"
                            },
                            "durationMinutes": {
                              "type": "number"
                            },
                            "durationText": {
                              "type": "string"
                            },
                            "exclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "freeCancellation": {
                              "type": "boolean"
                            },
                            "inclusions": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "instantConfirmation": {
                              "type": "boolean"
                            },
                            "itinerarySteps": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "admissionIncluded": {
                                    "type": "string",
                                    "enum": [
                                      "YES",
                                      "NO",
                                      "NOT_APPLICABLE"
                                    ]
                                  },
                                  "description": {
                                    "type": "string"
                                  },
                                  "durationMinutes": {
                                    "type": "number"
                                  },
                                  "durationText": {
                                    "type": "string"
                                  },
                                  "location": {
                                    "$ref": "#/components/schemas/Location"
                                  },
                                  "passByWithoutStopping": {
                                    "type": "boolean"
                                  },
                                  "title": {
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "title"
                                ]
                              }
                            },
                            "languages": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "maxTravelersPerBooking": {
                              "type": "number"
                            },
                            "minTravelersPerBooking": {
                              "type": "number"
                            },
                            "mobileTicket": {
                              "type": "boolean"
                            },
                            "pickupInstructions": {
                              "type": "string"
                            },
                            "pickupLocation": {
                              "$ref": "#/components/schemas/Location"
                            },
                            "pickupTime": {
                              "type": "string"
                            },
                            "privateTour": {
                              "type": "boolean"
                            },
                            "provider": {
                              "description": "Which provider the activity comes from (`viator`, `manual`). Answered to Nicer staff only.",
                              "type": "string"
                            },
                            "providerBookingRef": {
                              "description": "The provider's booking reference. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductCode": {
                              "description": "The provider's product code. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "providerProductUrl": {
                              "description": "The provider's product page, where the advisor books it. Answered only to the agency's own advisors and admins and to Nicer staff.",
                              "type": "string"
                            },
                            "reviews": {
                              "type": "object",
                              "properties": {
                                "averageRating": {
                                  "type": "number"
                                },
                                "totalReviews": {
                                  "type": "number"
                                }
                              }
                            },
                            "skipTheLine": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            },
                            "supplierName": {
                              "type": "string"
                            },
                            "supplierReference": {
                              "type": "string"
                            },
                            "timeZone": {
                              "type": "string"
                            },
                            "travelers": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "restaurant"
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "proposed",
                                "hold",
                                "booked",
                                "cancelled"
                              ]
                            }
                          },
                          "required": [
                            "type"
                          ]
                        },
                        {
                          "type": "object",
                          "properties": {
                            "advisorInsights": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "amenities": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "approvedAt": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "approvedBy": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "attachments": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "countTravelers": {
                              "type": "number"
                            },
                            "createdAt": {
                              "type": "string"
                            },
                            "createdBy": {
                              "type": "string"
                            },
                            "currency": {
                              "type": "string"
                            },
                            "details": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "endDateTime": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "groupId": {
                              "type": "string"
                            },
                            "hash": {
                              "type": "string"
                            },
                            "id": {
                              "type": "string",
                              "minLength": 1
                            },
                            "images": {
                              "anyOf": [
                                {
                                  "type": "array",
                                  "items": {
                                    "$ref": "#/components/schemas/Attachment"
                                  }
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "isOnSitePayment": {
                              "type": "boolean"
                            },
                            "lastModifiedBy": {
                              "type": "string"
                            },
                            "location": {
                              "anyOf": [
                                {
                                  "$ref": "#/components/schemas/Location"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "metadata": {
                              "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            },
                            "price": {
                              "type": "number"
                            },
                            "priceInUSD": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "rate": {
                              "anyOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "startDateTime": {
                              "type": "string"
                            },
                            "title": {
                              "type": "string"
                            },
                            "updatedAt": {
                              "type": "string"
                            },
                            "type": {
                              "type": "string",
                              "const": "custom"
                            }
                          },
                          "required": [
                            "title",
                            "type"
                          ]
                        }
                      ]
                    }
                  },
                  "required": [
                    "operation"
                  ]
                }
              ]
            }
          }
        ]
      },
      "TripItinerarySendBody": {
        "type": "object",
        "properties": {
          "emails": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "skipNotification": {
            "type": "boolean"
          }
        }
      },
      "TripItineraryUpdateBody": {
        "type": "object",
        "properties": {
          "itinerary": {
            "type": "object",
            "properties": {
              "attachments": {
                "anyOf": [
                  {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Attachment"
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "note": {
                      "type": "string"
                    },
                    "title": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "id",
                    "note",
                    "title"
                  ]
                }
              }
            }
          },
          "mode": {
            "description": "AUTO sums the segments into the trip cost; CUSTOM keeps tripCost as set. Omit to keep the current mode.",
            "$ref": "#/components/schemas/TripItineraryMode"
          },
          "status": {
            "$ref": "#/components/schemas/TripItineraryStatus"
          },
          "tripCost": {
            "description": "The trip cost in USD, kept while the mode is CUSTOM. Omit to keep the current cost; in AUTO the cost is always the sum of the segments.",
            "type": "number"
          }
        }
      },
      "TripItineraryWebhookBody": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "segment": {
              "$ref": "#/components/schemas/ItinerarySegmentInput"
            }
          },
          "required": [
            "segment"
          ]
        }
      },
      "UserPlacesUpdateBody": {
        "type": "object",
        "properties": {
          "city": {
            "type": "string"
          },
          "country": {
            "type": "string"
          },
          "countryCode": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "fullAddress": {
            "type": "string"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "state": {
            "type": "string"
          },
          "zipCode": {
            "type": "string"
          }
        }
      },
      "BackofficeOrderCurrencyFilter": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/CurrencyCode"
          },
          {
            "type": "string",
            "const": "UNKNOWN"
          }
        ],
        "description": "The currency filter: an ISO 4217 currency code, or UNKNOWN for orders that carry no amount.",
        "examples": [
          "USD",
          "UNKNOWN"
        ]
      },
      "BackofficeOrderEntry": {
        "type": "string",
        "enum": [
          "CHECKOUT",
          "IMPORT",
          "MANUAL",
          "RECORDED"
        ],
        "description": "The entryMethod filter: CHECKOUT, IMPORT or MANUAL for orders of that entry method; RECORDED for every order recorded from a provider (IMPORT and MANUAL)."
      },
      "SabreTicketingQueueInput": {
        "type": "object",
        "properties": {
          "number": {
            "type": "integer",
            "minimum": 0,
            "maximum": 999
          },
          "pcc": {
            "type": "string",
            "pattern": "^[A-Z0-9]{3,4}$"
          },
          "prefatoryInstructionCode": {
            "default": 11,
            "type": "integer",
            "minimum": 0,
            "maximum": 254
          }
        },
        "required": [
          "number"
        ],
        "additionalProperties": false
      },
      "SplitPlanRuleInput": {
        "type": "object",
        "properties": {
          "basis": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "GROSS",
                  "NET_OF_FEES",
                  "NET_OF_HOST"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "beneficiaryId": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "beneficiaryKind": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "HOST",
                  "AGENCY",
                  "ADVISOR",
                  "REFERRER"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "feeBearer": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "HOUSE",
                  "ADVISOR",
                  "PRO_RATA"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "default": "SHARE",
            "type": "string",
            "enum": [
              "SHARE",
              "MARKUP"
            ]
          },
          "priority": {
            "type": "integer",
            "minimum": 0,
            "maximum": 1000
          },
          "ruleId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,64}$"
          },
          "scopeKind": {
            "type": "string",
            "enum": [
              "ALL",
              "CATEGORY",
              "SUPPLIER",
              "ITEM_KIND",
              "IDENTIFIER"
            ]
          },
          "scopeValue": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              {
                "type": "null"
              }
            ]
          },
          "shareBps": {
            "type": "integer",
            "minimum": 0,
            "maximum": 10000
          }
        },
        "required": [
          "basis",
          "beneficiaryId",
          "beneficiaryKind",
          "feeBearer",
          "priority",
          "ruleId",
          "scopeKind",
          "scopeValue",
          "shareBps"
        ],
        "additionalProperties": false
      },
      "AttachmentContentType": {
        "type": "string",
        "enum": [
          "application/pdf",
          "image/jpeg",
          "image/png",
          "message/rfc822",
          "text/csv",
          "text/plain",
          "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
          "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
        ]
      },
      "CheckoutParticipant": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PersonAddress"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's postal address; null when unknown."
          },
          "hotelMembership": {
            "description": "The person's membership number with the hotel chain (chainCode), for a hotel booking; null or left out when there is none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/HotelMembership"
              },
              {
                "type": "null"
              }
            ]
          },
          "birthDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's date of birth, YYYY-MM-DD; null when unknown."
          },
          "contact": {
            "description": "How to reach the person.",
            "$ref": "#/components/schemas/PersonContact"
          },
          "documents": {
            "maxItems": 12,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TravelDocument"
            },
            "description": "The person's travel documents (passport, visa, national ID), up to 12; empty when there are none."
          },
          "frequentFlyerPrograms": {
            "description": "The person's airline loyalty memberships, up to 8, sent with a flight booking.",
            "maxItems": 8,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FrequentFlyerProgram"
            }
          },
          "name": {
            "description": "The person's legal name, as printed on their travel document.",
            "$ref": "#/components/schemas/PersonName"
          },
          "nationalityCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The person's nationality, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "participantId": {
            "type": "string",
            "minLength": 1,
            "description": "An id you make up for this participant, such as P1, unique among the participants of the order."
          },
          "sex": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ParticipantSex"
              },
              {
                "type": "null"
              }
            ],
            "description": "The sex marker printed on the person's travel document; null when unknown."
          },
          "travelerId": {
            "description": "The CRM traveler this participant was filled from, as GET /crm/trips/{travelersTripId} answers it. Leave it out when the details were typed in.",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "address",
          "birthDate",
          "contact",
          "documents",
          "name",
          "nationalityCountryCode",
          "participantId",
          "sex"
        ],
        "additionalProperties": false
      },
      "OfferOrderSource": {
        "type": "object",
        "properties": {
          "reviewChanges": {
            "type": "boolean",
            "const": true
          },
          "acceptedQuoteId": {
            "type": "string",
            "minLength": 1
          },
          "offerReference": {
            "type": "string",
            "minLength": 1,
            "description": "A live offer from getHotelRooms, searchFlights or searchCarRentals."
          },
          "travelersTripId": {
            "type": "string",
            "minLength": 1,
            "description": "The trip, with offerReference (the offer also goes on its itinerary) or directProduct. Never with quoteId: a quote keeps the trip it was quoted for (createBookingQuote takes travelersTripId)."
          },
          "groupId": {
            "type": "string",
            "minLength": 1
          },
          "paymentLink": {
            "type": "object",
            "properties": {
              "audience": {
                "default": "TRAVELER",
                "type": "string",
                "enum": [
                  "SELF",
                  "TRAVELER"
                ]
              },
              "expiresInMinutes": {
                "default": 43200,
                "description": "Can only shorten the link, never lengthen it. A booking's link ends at most 15 minutes from now and, for an order not yet held, 10 minutes after the order was created, because its price holds only that long; past it, the same link still opens for 24 hours and the traveler renews the checkout there at the current price. A planning fee's or an extra payment's link holds no price and lasts until its order expires, 30 days after it was created. The answer's expiresAt says when.",
                "type": "integer",
                "minimum": 15,
                "maximum": 43200
              }
            },
            "additionalProperties": false
          }
        },
        "required": [
          "offerReference"
        ],
        "additionalProperties": false
      },
      "RemittanceLineEdit": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "minimum": -9007199254740991,
            "maximum": 9007199254740991
          },
          "checkIn": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "checkOut": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "clientName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          },
          "confirmationNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "identifierNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 32
              },
              {
                "type": "null"
              }
            ]
          },
          "supplierName": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": false
      },
      "AllocationRequest": {
        "type": "object",
        "properties": {
          "amountMinor": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          },
          "commissionItemId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          }
        },
        "required": [
          "amountMinor",
          "commissionItemId"
        ],
        "additionalProperties": false
      },
      "SupplierProfile": {
        "type": "object",
        "properties": {
          "address": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/SupplierAddress"
              },
              {
                "type": "null"
              }
            ]
          },
          "commissionChannel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CommissionChannel"
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultCommissionBps": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "defaultPaymentTermDays": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 730
              },
              {
                "type": "null"
              }
            ]
          },
          "kind": {
            "$ref": "#/components/schemas/SupplierKind"
          },
          "latitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -90,
                "maximum": 90
              },
              {
                "type": "null"
              }
            ]
          },
          "longitude": {
            "anyOf": [
              {
                "type": "number",
                "minimum": -180,
                "maximum": 180
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "phone": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 64
              },
              {
                "type": "null"
              }
            ]
          },
          "website": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 500
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "kind",
          "name"
        ],
        "additionalProperties": false
      },
      "FamilyMemberInput": {
        "type": "object",
        "properties": {
          "travelerId": {
            "description": "The family member's traveler, one of the family GET /crm/me answers; any other answers 404 ERROR_ITEM_NOT_FOUND.",
            "$ref": "#/components/schemas/TravelerId"
          },
          "update": {
            "description": "The change to the family member's traveler, with the revision read.",
            "$ref": "#/components/schemas/TravelerSelfUpdate"
          }
        },
        "required": [
          "travelerId",
          "update"
        ],
        "additionalProperties": false,
        "description": "A change to one family member the person may fill in for."
      },
      "TravelerDocumentInput": {
        "type": "object",
        "properties": {
          "citizenshipCountry": {
            "description": "The citizenship stated on this document, as an ISO 3166-1 alpha-2 country code; it is not always the person's nationality. Null or absent when the document states none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ]
          },
          "expirationDate": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ],
            "description": "The day the document expires, YYYY-MM-DD; null for one that does not."
          },
          "issueDate": {
            "description": "The day the document was issued, YYYY-MM-DD; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "issuingCountryCode": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CountryCode"
              },
              {
                "type": "null"
              }
            ],
            "description": "The country that issued the document, as an ISO 3166-1 alpha-2 country code; null when unknown."
          },
          "kind": {
            "description": "What the document is.",
            "$ref": "#/components/schemas/TravelDocumentKind"
          },
          "number": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "The document's number, in full, 1 to 100 characters."
          },
          "placeOfBirth": {
            "description": "The place of birth printed on the document; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "placeOfIssue": {
            "description": "Where the document was issued; null or absent when unknown.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 100
              },
              {
                "type": "null"
              }
            ]
          },
          "documentId": {
            "description": "The id of the stored document this one replaces; absent adds a new document.",
            "type": "string",
            "minLength": 1
          },
          "label": {
            "description": "What the document is to people, e.g. \"ESTA\" or \"Schengen\", 1 to 60 characters; null or absent for none.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 60
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expirationDate",
          "issuingCountryCode",
          "kind",
          "number"
        ],
        "additionalProperties": false,
        "description": "A travel document to keep: with the documentId of a stored document to replace it, or without one to add it."
      },
      "ImportantDateInput": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
            "description": "The date, YYYY-MM-DD."
          },
          "dateId": {
            "description": "The id of the stored date this one replaces; absent adds a new date.",
            "type": "string",
            "minLength": 1
          },
          "kind": {
            "description": "What kind of date it is.",
            "$ref": "#/components/schemas/ImportantDateKind"
          },
          "label": {
            "description": "What the date is to people, 1 to 80 characters; null or absent when the kind says enough.",
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "date",
          "kind"
        ],
        "additionalProperties": false,
        "description": "A date to keep: with the dateId of a stored date to replace it, or without one to add it."
      },
      "TravelProfileUpdate": {
        "type": "object",
        "properties": {
          "accessibility": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Accessibility"
              },
              {
                "type": "null"
              }
            ]
          },
          "air": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AirPreferences"
              },
              {
                "type": "null"
              }
            ]
          },
          "dietary": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Dietary"
              },
              {
                "type": "null"
              }
            ]
          },
          "emergencyContacts": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmergencyContact"
            }
          },
          "hotel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/HotelPreferences"
              },
              {
                "type": "null"
              }
            ]
          },
          "interests": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Interests"
              },
              {
                "type": "null"
              }
            ]
          },
          "loyaltyPrograms": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LoyaltyProgram"
            }
          },
          "pets": {
            "maxItems": 5,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pet"
            }
          }
        },
        "additionalProperties": false,
        "description": "Sections of the profile to replace. An omitted section is kept and null clears it."
      },
      "SegmentInput": {
        "type": "object",
        "properties": {
          "filter": {
            "description": "The conditions the segment's travelers meet.",
            "$ref": "#/components/schemas/SegmentFilter"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "The segment's name, 1 to 80 characters."
          },
          "segmentId": {
            "description": "The id of the stored segment this one replaces; left out for a new segment, which gets an id.",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "filter",
          "name"
        ],
        "additionalProperties": false,
        "description": "A segment as an update sends it: a stored one with its segmentId, or a new one without."
      },
      "TaskTemplateInput": {
        "type": "object",
        "properties": {
          "applyOnTripCreated": {
            "type": "boolean",
            "description": "Whether the template is applied to every trip of the agency as soon as the trip is created."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "The template's name, 1 to 80 characters."
          },
          "tasks": {
            "minItems": 1,
            "maxItems": 30,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTemplateStep"
            },
            "description": "The tasks the template adds to a trip, 1 to 30."
          },
          "templateId": {
            "description": "The id of the stored template this one replaces; left out for a new template, which gets an id.",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "applyOnTripCreated",
          "name",
          "tasks"
        ],
        "additionalProperties": false,
        "description": "A task template as an update sends it: a stored one with its templateId, or a new one without."
      },
      "WebhookInput": {
        "type": "object",
        "properties": {
          "events": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CrmEventName"
            },
            "description": "The events to send to it, at least one."
          },
          "isActive": {
            "type": "boolean",
            "description": "Whether events are sent to it; false pauses it."
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri",
            "description": "The HTTPS address the events are posted to, at most 2,048 characters."
          },
          "webhookId": {
            "description": "The id of the stored webhook this one replaces, which keeps its secret and creation time. Left out, or one the agency does not have, the webhook is new: it gets an id and a signing secret, answered once.",
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "events",
          "isActive",
          "url"
        ],
        "additionalProperties": false,
        "description": "A webhook as an update sends it: a stored one with its webhookId, or a new one without."
      },
      "TravelerRelationshipInput": {
        "type": "object",
        "properties": {
          "relatedTravelerId": {
            "description": "The related traveler: one of the agency's, never this traveler.",
            "$ref": "#/components/schemas/TravelerId"
          },
          "relationship": {
            "description": "Who the related traveler is to this one; the other traveler gets the inverse.",
            "$ref": "#/components/schemas/TravelerRelationshipKind"
          }
        },
        "required": [
          "relatedTravelerId",
          "relationship"
        ],
        "additionalProperties": false,
        "description": "A relationship to another traveler of the agency. It is written on both travelers, the other one with the inverse kind."
      },
      "TripTravelerInput": {
        "type": "object",
        "properties": {
          "participant": {
            "description": "A person as a checkout collects them, used when travelerId is left out: for the trip's staff, the agency's traveler with this email or phone when they may see one; otherwise a new traveler of the agency.",
            "$ref": "#/components/schemas/TripParticipant"
          },
          "relationship": {
            "description": "The traveler's part in the trip.",
            "$ref": "#/components/schemas/TravelersTripRelationship"
          },
          "travelerId": {
            "description": "An existing traveler of the agency (TRV…). Required unless participant is sent. Only the trip's staff may name one who is not on the trip yet.",
            "$ref": "#/components/schemas/TravelerId"
          }
        },
        "required": [
          "relationship"
        ],
        "additionalProperties": false,
        "description": "A traveler to keep on a trip: an existing one by travelerId, or a person as a checkout collects them, found by email or phone or added."
      },
      "PreviewEmailName": {
        "type": "string",
        "enum": [
          "hotel-confirmation",
          "flight-confirmation",
          "car-rental-confirmation",
          "payment-receipt",
          "card-request",
          "itinerary-shared",
          "trip-invitation",
          "sign-in-code",
          "hold-pending",
          "payment-declined",
          "booking-cancelled",
          "welcome-traveler",
          "traveler-profile-request"
        ]
      },
      "FlightItineraryInput": {
        "type": "object",
        "properties": {
          "aircraft": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "arrivingAt": {
            "default": null,
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "baggage": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageSnapshot"
            }
          },
          "bookingClass": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "brand": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "code": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  }
                },
                "required": [
                  "code",
                  "name"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "cabin": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "ECONOMY",
              "FIRST",
              "PREMIUM_ECONOMY"
            ]
          },
          "departingAt": {
            "type": "string"
          },
          "destination": {
            "$ref": "#/components/schemas/Location"
          },
          "distance": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "explicitNoFlightNumber": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ]
          },
          "fareBasisCode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "hiddenStops": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightHiddenStopSnapshot"
            }
          },
          "legId": {
            "type": "string"
          },
          "marketingCarrier": {
            "type": "object",
            "properties": {
              "conditionsOfCarriageUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "iataCode": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoLockupUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoSymbolUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "marketingCarrierFlightNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "operatingCarrier": {
            "type": "object",
            "properties": {
              "conditionsOfCarriageUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "iataCode": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoLockupUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "logoSymbolUrl": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "default": null,
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          "operatingCarrierFlightNumber": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "origin": {
            "$ref": "#/components/schemas/Location"
          },
          "providerSegmentReference": {
            "type": "string"
          },
          "seats": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSelectedSeat"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightSelectedService"
            }
          }
        },
        "required": [
          "departingAt",
          "destination",
          "origin"
        ]
      },
      "ItinerarySegmentInput": {
        "oneOf": [
          {
            "$ref": "#/components/schemas/ItineraryFlightSegmentInput"
          },
          {
            "$ref": "#/components/schemas/ItineraryLodgingSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryCarRentalSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryTransportationSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryCruiseSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryActivitySegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryRestaurantSegment"
          },
          {
            "$ref": "#/components/schemas/ItineraryCustomSegment"
          }
        ]
      },
      "ItineraryFlightSegmentInput": {
        "type": "object",
        "properties": {
          "advisorInsights": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "amenities": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "approvedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "approvedBy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "attachments": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "countTravelers": {
            "type": "number"
          },
          "createdAt": {
            "type": "string"
          },
          "createdBy": {
            "type": "string"
          },
          "currency": {
            "type": "string"
          },
          "details": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "endDateTime": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "groupId": {
            "type": "string"
          },
          "hash": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "images": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Attachment"
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "isOnSitePayment": {
            "type": "boolean"
          },
          "lastModifiedBy": {
            "type": "string"
          },
          "location": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Location"
              },
              {
                "type": "null"
              }
            ]
          },
          "metadata": {
            "description": "Keys the writers share (the booking selection, the commerce order state). Its `provider` key, which provider the segment comes from, is answered to Nicer staff only.",
            "type": "object",
            "propertyNames": {
              "type": "string"
            },
            "additionalProperties": {}
          },
          "price": {
            "type": "number"
          },
          "priceInUSD": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ]
          },
          "startDateTime": {
            "type": "string"
          },
          "title": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "updatedAt": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "const": "flight"
          },
          "baggageCharges": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBaggageCharge"
            }
          },
          "brandFeatures": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightBrandFeatureSnapshot"
            }
          },
          "cabin": {
            "type": "string",
            "enum": [
              "BUSINESS",
              "ECONOMY",
              "FIRST",
              "PREMIUM_ECONOMY"
            ]
          },
          "commercialSnapshot": {
            "description": "Expected supplier commission, advisor earning and traveler reward, with their calculation inputs, as quoted. Answered only to the agency's own advisors and admins and to Nicer staff; absent for travelers and anonymous readers.",
            "$ref": "#/components/schemas/BookingCommercialSnapshot"
          },
          "fareRules": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightFareRuleSnapshot"
            }
          },
          "flightIndex": {
            "type": "string"
          },
          "flightType": {
            "type": "string",
            "enum": [
              "one-way",
              "round-trip",
              "multi-city"
            ]
          },
          "inbound": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightItineraryInput"
            }
          },
          "outbound": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightItineraryInput"
            }
          },
          "owner": {
            "$ref": "#/components/schemas/FlightCarrierSnapshot"
          },
          "passengers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FlightPassengerSnapshot"
            }
          },
          "policies": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/QuotePolicy"
            }
          },
          "priceSnapshot": {
            "$ref": "#/components/schemas/BookingPriceSnapshot"
          },
          "rules": {
            "$ref": "#/components/schemas/FlightRules"
          },
          "ticketingDeadline": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "type",
          "flightType"
        ]
      },
      "PeriodComparison": {
        "type": "string",
        "enum": [
          "PREVIOUS_PERIOD",
          "SAME_PERIOD_LAST_YEAR",
          "NONE"
        ]
      },
      "FlightSort": {
        "type": "string",
        "enum": [
          "best",
          "price",
          "-price",
          "duration",
          "departure",
          "-departure",
          "arrival",
          "-arrival",
          "stops"
        ],
        "description": "How results are listed: best match, price (or -price), shortest duration, earliest (or latest, with -) departure or arrival, or fewest stops. best weighs 10% over the lowest price like 20% over the shortest duration or one more stop.",
        "examples": [
          "best"
        ]
      }
    },
    "securitySchemes": {
      "discoveryBearer": {
        "description": "Optional verified Cognito identity for public company discovery.",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      },
      "bearerAuth": {
        "bearerFormat": "JWT",
        "description": "Access token issued to your integration. Users who belong to several companies pick one with the `x-nicer-company` header.",
        "scheme": "bearer",
        "type": "http"
      },
      "webhookSignature": {
        "description": "Signature over the raw request body, verified by the handler. This route sits outside the authorizer because the caller is a provider, not a person; it is not anonymous. The header and algorithm depend on the provider, so see the operation description.",
        "in": "header",
        "name": "x-nicer-webhook-signature",
        "type": "apiKey"
      },
      "companyHeader": {
        "description": "Company slug for anonymous channel calls.",
        "in": "header",
        "name": "x-nicer-company",
        "type": "apiKey"
      }
    }
  },
  "info": {
    "description": "Travel platform API. Operations are grouped by service; each one lists the auth it accepts.",
    "license": {
      "name": "UNLICENSED"
    },
    "title": "Nicer API",
    "version": "1.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/agent/chat/{chatId}/suggestions": {
      "get": {
        "x-forge-group-name": "agent.chat.suggestions",
        "x-forge-method-name": "list",
        "description": "Suggests places to add to a trip's itinerary from one message of its chat (conversationId): the assistant reads that message and the ones before it, the trip's destinations and its itinerary, steered by ask when it is sent, runs one place search and answers up to three places the itinerary does not have yet, as activity segments, or null when none came back. Computed on every call and never stored. Only a participant of the chat may call it, for a chat of a trip that has an itinerary. Errors: 403 ERROR_UNAUTHORIZED for a caller who is not a participant or a chat without a trip; 409 ERROR_INVALID_REQUEST for a trip without an itinerary.",
        "operationId": "agent.chat.suggestions.list",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The message to suggest places for: its conversationId in this chat. The suggestions read it with the messages before it.",
            "in": "query",
            "name": "conversationId",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "description": "The message to suggest places for: its conversationId in this chat. The suggestions read it with the messages before it."
            }
          },
          {
            "description": "What the advisor wants suggested, in their own words, such as rooftop bars. Steers the place search.",
            "in": "query",
            "name": "ask",
            "required": false,
            "schema": {
              "description": "What the advisor wants suggested, in their own words, such as rooftop bars. Steers the place search.",
              "type": "string",
              "maxLength": 500
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentChatSuggestionsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Suggest places for a chat message",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.chat.suggestions.list({\n  \"chatId\": \"string\",\n  \"conversationId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent chat suggestions list --chat-id 'string' --conversation-id 'string'"
          }
        ]
      }
    },
    "/agent/documents": {
      "post": {
        "x-forge-group-name": "agent.documents",
        "x-forge-method-name": "create",
        "description": "Renders the given content as a PDF, Markdown, text or CSV file in the caller's private document storage and returns its name, key and media type. Only the caller can open it, through `POST /agent/documents/download`. Any signed-in person may call it.",
        "operationId": "agent.documents.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentDocumentsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentDocumentsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a private downloadable document",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.documents.create({\n  \"name\": \"string\",\n  \"content\": \"string\",\n  \"format\": \"pdf\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent documents create --input - <<'JSON'\n{\n  \"name\": \"string\",\n  \"content\": \"string\",\n  \"format\": \"pdf\"\n}\nJSON"
          }
        ]
      }
    },
    "/agent/documents/download": {
      "post": {
        "x-forge-group-name": "agent.documents",
        "x-forge-method-name": "download",
        "description": "Returns a download link, valid for five minutes, for a document the caller made with the assistant (`POST /agent/documents`), by its key. Any signed-in person may call it, for their own documents only. Errors: 403 ERROR_UNAUTHORIZED for a key of another person's document.",
        "operationId": "agent.documents.download",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentDocumentsDownloadBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDownloadLink"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an assistant document's download link",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.documents.download({\n  \"key\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent documents download --input - <<'JSON'\n{\n  \"key\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/agent/email-connection": {
      "post": {
        "x-forge-group-name": "agent",
        "x-forge-method-name": "emailConnection",
        "description": "Connects the caller's email to the email assistant, reports whether it is connected, or disconnects it, by action: status answers whether it is connected; start checks the captcha token and emails the caller a six-digit code, answering a session; finish takes that session and the code and, when they match the caller's account, keeps a sign-in for the email assistant on the server; disconnect ends it. The sign-in it keeps is encrypted on the server and never sent back. Any signed-in person with an email on their account may call it, for their own email only. Errors: 400 ERROR_EMAIL_REQUIRED for an account without an email; 403 ERROR_UNAUTHORIZED for a captcha that fails or a code of another account; 400 ERROR_INVALID_CODE for a code that expired.",
        "operationId": "agent.emailConnection",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentEmailConnectionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentEmailConnectionResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Connect the email assistant with an email code",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.emailConnection({\n  \"action\": \"status\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent email-connection --input - <<'JSON'\n{\n  \"action\": \"status\"\n}\nJSON"
          }
        ]
      }
    },
    "/agent/knowledge": {
      "get": {
        "x-forge-group-name": "agent.knowledge",
        "x-forge-method-name": "list",
        "description": "Searches what Nicer knows as a whole, rather than what it knows about one traveler: itineraries that advisors actually built and sent, community threads where somebody answered a question, and Nicer's own product documentation, narrowed to one kind of source when kind says so. Ask it in words, the way you would ask a colleague (\"four nights in Cartagena with two children\", \"how do I send a proposal for approval\"), and quote what comes back rather than inventing around it. Any signed-in person may call it, travelers included: results come only from the caller's own agencies and what is public, and no argument reaches another agency's knowledge.",
        "operationId": "agent.knowledge.list",
        "parameters": [
          {
            "description": "Narrow to one sort of source: `itinerary` for trips that were built, `thread` for community conversations, `doc` for Nicer's product documentation.",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "description": "Narrow to one sort of source: `itinerary` for trips that were built, `thread` for community conversations, `doc` for Nicer's product documentation.",
              "type": "string",
              "enum": [
                "itinerary",
                "thread",
                "doc"
              ]
            }
          },
          {
            "description": "What to look for, in words, as you would ask a colleague.",
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 1000,
              "description": "What to look for, in words, as you would ask a colleague."
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentKnowledgeListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search Nicer's knowledge",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.knowledge.list({\n  \"query\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent knowledge list --query 'string'"
          }
        ]
      }
    },
    "/agent/mcp/authorizations/{requestId}": {
      "get": {
        "x-forge-group-name": "agent.mcp.authorizations",
        "x-forge-method-name": "get",
        "description": "Reads what an AI client asks for, for the portal's consent page: the client's name and client id as the client states them, the host its code would be sent to (`redirectHost`) and whether that is a program on the person's own computer (`isLocalRedirect`), the MCP server it would open (`surface`), the access its scopes preselect (`access`, `READ` or `WRITE`) and when the request expires. `requestId` is the last segment of the consent page's address, where Nicer's authorization server sent the person. Any signed-in person may read it with their own session, never with a token minted from a connection. Errors: 404 `ERROR_ITEM_NOT_FOUND` for a request that does not exist, has expired (ten minutes after the client made it) or was already approved or denied; 403 `ERROR_MCP_SESSION_REQUIRED` for a token minted from a connection.",
        "operationId": "agent.mcp.authorizations.get",
        "parameters": [
          {
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMcpAuthorizationsGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an MCP authorization request",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.mcp.authorizations.get({\n  \"requestId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent mcp authorizations get --request-id 'string'"
          }
        ]
      },
      "post": {
        "x-forge-group-name": "agent.mcp.authorizations",
        "x-forge-method-name": "update",
        "description": "Approves or denies what an AI client asks for, as the signed-in person; the person's normal session token is the only way to approve. The answer is `redirectUrl`, where the consent page sends the browser next: the client's redirect URI with `code`, `state` and `iss` when approved, or with `error=access_denied`, `state` and `iss` when denied. The code works once, within 60 seconds, and only for this client, redirect URI, PKCE challenge and server; the connection exists once the client trades it at `https://mcp.<env>/token`, and acts as the person who approved. `access` is what the person picked on the consent page, `READ`, `WRITE` or `MONEY`, whatever the client's scopes asked; left out, the preselected access (`READ` or `WRITE`) is granted, so `MONEY` is granted only when sent. A request is decided once. An `INTERNAL` request opens `mcp.<env>/internal` and may be approved or denied only by Nicer staff with the superadmin platform role, on the same consent page in the portal. A person holds at most 20 connections: Nicer never removes one to make room, not even the oldest unused one, so at the limit the approval fails and the request stays open until the person revokes one or it expires. Errors: 400 `ERROR_BODY_VALIDATION` for an `access` with `DENY`; 404 `ERROR_ITEM_NOT_FOUND` for a request that does not exist, has expired or was already decided; 403 `ERROR_MCP_SESSION_REQUIRED` for a token minted from a connection; 403 `ERROR_FORBIDDEN` for deciding an `INTERNAL` request as anyone but a platform superadmin; 409 `ERROR_MCP_CONNECTION_LIMIT` for approving with 20 connections held; 429 `ERROR_RATE_LIMIT` past 10 decisions an hour.",
        "operationId": "agent.mcp.authorizations.update",
        "parameters": [
          {
            "in": "path",
            "name": "requestId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentMcpAuthorizationsUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMcpAuthorizationsUpdateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Approve or deny an MCP authorization request",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.mcp.authorizations.update({\n  \"requestId\": \"string\",\n  \"access\": \"READ\",\n  \"decision\": \"APPROVE\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent mcp authorizations update --request-id 'string' --input - <<'JSON'\n{\n  \"access\": \"READ\",\n  \"decision\": \"APPROVE\"\n}\nJSON"
          }
        ]
      }
    },
    "/agent/mcp/connections": {
      "get": {
        "x-forge-group-name": "agent.mcp.connections",
        "x-forge-method-name": "list",
        "description": "Lists the AI clients the caller has connected to Nicer's MCP servers, newest first: the client's name and client id, the host it receives its codes at (`redirectHost`), the server it opens (`surface`), the most it may do (`access`), and when it was connected, last used and ends. Connections that have ended are left out. Never a token. Any signed-in person may call it, for their own connections, with their own session: a token minted from a connection gets 403 `ERROR_MCP_SESSION_REQUIRED`.",
        "operationId": "agent.mcp.connections.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMcpConnectionsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my MCP connections",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.mcp.connections.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent mcp connections list"
          }
        ]
      }
    },
    "/agent/mcp/connections/{connectionId}": {
      "delete": {
        "x-forge-group-name": "agent.mcp.connections",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Revoke an MCP connection. This deletes it.",
        "description": "Revokes one of the caller's MCP connections. Its access token and refresh token stop working on their next request: the MCP server checks the token on every request, so a client already connected is refused too, and must be approved again to reconnect. Any signed-in person may call it, for their own connections, with their own session: another person's connection is a 404, and a token minted from a connection gets 403 `ERROR_MCP_SESSION_REQUIRED`.",
        "operationId": "agent.mcp.connections.delete",
        "parameters": [
          {
            "in": "path",
            "name": "connectionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMcpConnectionsDeleteResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Revoke an MCP connection",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.mcp.connections.delete({\n  \"connectionId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent mcp connections delete --connection-id 'string'"
          }
        ]
      }
    },
    "/agent/rephrase": {
      "post": {
        "x-forge-group-name": "agent",
        "x-forge-method-name": "rephrase",
        "description": "Rewrites the text sent (16,000 characters at most), such as an itinerary segment's description, to read more engaging and professional, with one model call and a fixed instruction, and answers only the rewritten text. Nothing is stored. Any signed-in person may call it.",
        "operationId": "agent.rephrase",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRephraseBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRephraseResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Rewrite a description with AI",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.rephrase({\n  \"text\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent rephrase --input - <<'JSON'\n{\n  \"text\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/agent/room-description": {
      "post": {
        "x-forge-group-name": "agent",
        "x-forge-method-name": "roomDescription",
        "description": "Turns a raw hotel room description, often in capitals, into a clean room title and sections of bullet points (highlights, meals, amenities, cancellation, beds, bathroom and the rest), with one model call. Answers are kept for 30 days by description and currency; noCache=true asks for a fresh one. Anyone may call it without a token, so the Pay page can, up to 50 times an hour per IP address.",
        "operationId": "agent.roomDescription",
        "parameters": [
          {
            "in": "query",
            "name": "noCache",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true"
              ]
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AgentRoomDescriptionBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentRoomDescriptionResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Structure a raw hotel room description",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.roomDescription({\n  \"description\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent room-description --input - <<'JSON'\n{\n  \"description\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/agent/skills": {
      "get": {
        "x-forge-group-name": "agent.skills",
        "x-forge-method-name": "list",
        "description": "Returns one of the workflow guides Nicer's assistant follows, by its name, as Markdown: how to plan an itinerary, take a hotel or a flight to a trip, collect a payment, follow up an order, work with the traveler CRM and the rest. The same guides are what the MCP servers serve as skills. Any signed-in person may call it.",
        "operationId": "agent.skills.list",
        "parameters": [
          {
            "in": "query",
            "name": "name",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "hotel-to-trip",
                "recommend-hotels",
                "luxury-travel",
                "flight-search-and-hold",
                "car-rental-to-trip",
                "plan-itinerary",
                "edit-segments",
                "checkout-and-payment-link",
                "guests-and-passengers",
                "order-follow-up",
                "explain-charges",
                "capture-lead",
                "traveler-crm",
                "share-with-traveler",
                "booking-support",
                "daily-briefing",
                "read-commissions",
                "document-workflow",
                "flight-confirmations",
                "web-research",
                "product-guide"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentSkillsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Read an assistant workflow",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.skills.list({\n  \"name\": \"hotel-to-trip\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent skills list --name 'hotel-to-trip'"
          }
        ]
      }
    },
    "/agent/users/{userId}/mcp/connections": {
      "get": {
        "x-forge-group-name": "agent.users.mcp.connections",
        "x-forge-method-name": "list",
        "description": "Lists one person's MCP connections, newest first, for Nicer staff: the client's name and client id, the host it receives its codes at (`redirectHost`), the server each opens (`surface`), the most it may do (`access`), and when it was connected, last used and ends. Connections that have ended are left out. Never a token. A caller without the superadmin platform role gets 403 `ERROR_FORBIDDEN`; a token minted from a connection gets 403 `ERROR_MCP_SESSION_REQUIRED`.",
        "operationId": "agent.users.mcp.connections.list",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMcpConnectionsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a person's MCP connections",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.users.mcp.connections.list({\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent users mcp connections list --user-id 'string'"
          }
        ]
      }
    },
    "/agent/users/{userId}/mcp/connections/{connectionId}": {
      "delete": {
        "x-forge-group-name": "agent.users.mcp.connections",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Revoke a person's MCP connection. This deletes it.",
        "description": "Revokes one person's MCP connection, for Nicer staff: for a lost laptop or a client that should not have access. Its tokens stop working on their next request, because the MCP server checks the token on every request. A connection the person does not hold is a 404. A caller without the superadmin platform role gets 403 `ERROR_FORBIDDEN`; a token minted from a connection gets 403 `ERROR_MCP_SESSION_REQUIRED`.",
        "operationId": "agent.users.mcp.connections.delete",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "connectionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgentMcpConnectionsDeleteResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Revoke a person's MCP connection",
        "tags": [
          "Assistant"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.agent.users.mcp.connections.delete({\n  \"userId\": \"string\",\n  \"connectionId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer agent users mcp connections delete --user-id 'string' --connection-id 'string'"
          }
        ]
      }
    },
    "/assets/create-get-url": {
      "post": {
        "x-forge-group-name": "assets",
        "x-forge-method-name": "createGetUrl",
        "description": "Returns a presigned link, valid for an hour, to download one private file: an itinerary file to a traveler on the trip, its advisor, an admin of its agency or Nicer staff; the caller's own assistant attachment, uploaded ID document or raw avatar; and to Nicer staff any assistant attachment, ID document, avatar, private asset or itinerary import output. Errors: 403 ERROR_UNAUTHORIZED for a file the caller may not download.",
        "operationId": "assets.createGetUrl",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetsCreateGetUrlBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDownloadLink"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a private file's download link",
        "tags": [
          "assets"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.assets.createGetUrl({\n  \"assetType\": \"agentAttachment\",\n  \"key\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer assets create-get-url --input - <<'JSON'\n{\n  \"assetType\": \"agentAttachment\",\n  \"key\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/assets/create-put-url": {
      "post": {
        "x-forge-group-name": "assets",
        "x-forge-method-name": "createPutUrl",
        "description": "Returns a form to upload one file of the given asset type and media type straight to storage: the presigned POST (its url and the fields to send with the file, valid for an hour), the key the file will have and, for a public type, the URL it will be served at; the metadata sent comes back in the answer too. Itinerary types need a tripItineraryId the caller may edit. Any signed-in person may call it. Errors: 400 ERROR_ASSET_INVALID_TYPE for an asset type that cannot be uploaded this way; 400 ERROR_ASSET_INVALID_MEDIA_TYPE for a media type the asset type does not take.",
        "operationId": "assets.createPutUrl",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetsCreatePutUrlResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a file upload form",
        "tags": [
          "assets"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.assets.createPutUrl();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer assets create-put-url"
          }
        ]
      }
    },
    "/assets/public/create-get-url": {
      "post": {
        "x-forge-group-name": "assets.public",
        "x-forge-method-name": "createGetUrl",
        "description": "Returns a presigned link, valid for five minutes, to download a file attached to an itinerary the caller may see: anyone with the shared itinerary while it is visible, its participants and advisor when it is hidden. The file must be listed on the itinerary; intake files and other keys stay private. Anyone may call it, with or without a token. Errors: 403 ERROR_UNAUTHORIZED for a file the caller may not download.",
        "operationId": "assets.public.createGetUrl",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AssetsPublicCreateGetUrlBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FileDownloadLink"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a shared itinerary file's download link",
        "tags": [
          "assets"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.assets.public.createGetUrl({\n  \"assetType\": \"agentAttachment\",\n  \"key\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer assets public create-get-url --input - <<'JSON'\n{\n  \"assetType\": \"agentAttachment\",\n  \"key\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/backoffice/audience": {
      "get": {
        "x-forge-group-name": "backoffice.audience",
        "x-forge-method-name": "list",
        "description": "Returns who is on the platform according to the product analytics tool's people profiles, which a nightly import writes from Identity for every account with a name: how many profiles there are, how many belong to deleted or test accounts, and the live ones (neither) by agency, country, platform role and month the account was created. The figures may be up to 15 minutes old: the analytics tool allows few reads an hour, so the answer is cached. The agency is named by the x-nicer-company header and nothing else: with one named, only the profiles of that agency; with none, every profile. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff; 502 ERROR_ANALYTICS_UNAVAILABLE when the analytics tool does not answer.",
        "operationId": "backoffice.audience.list",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeAudience"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the audience in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.audience.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice audience list"
          }
        ]
      }
    },
    "/backoffice/audience/{userId}": {
      "get": {
        "x-forge-group-name": "backoffice.audience",
        "x-forge-method-name": "get",
        "description": "Returns the people profile the product analytics tool keeps for one person, keyed by their user id and written by a nightly import from Identity: typed, the advisor a traveler plans with and when the profile was last synced; under properties, every other property with the analytics tool's own names and values, personal data included (name, email, phone, photo, location). The agency is named by the x-nicer-company header and nothing else: with one named, a profile of another agency is not found; with none, any profile. Nicer staff only. Errors: 404 ERROR_ITEM_NOT_FOUND when the analytics tool holds no profile for the person, or, with an agency named, the profile belongs to another agency; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff; 502 ERROR_ANALYTICS_UNAVAILABLE when the analytics tool does not answer.",
        "operationId": "backoffice.audience.get",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeAudienceProfile"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a person's analytics profile in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.audience.get({\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice audience get --user-id 'string'"
          }
        ]
      }
    },
    "/backoffice/health": {
      "get": {
        "x-forge-group-name": "backoffice.health",
        "x-forge-method-name": "list",
        "description": "Returns how the platform stands right now, not over a period: every order by current status and currency, whatever its date; the orders of the last 30 days that are NEEDS_ATTENTION or FAILED, as the order list has them (newest first, at most 200); the events Commerce has not yet published; the provider calls of the last 7 days by provider, operation and outcome; Nicer's own charges of the last 7 days by UTC day, status and currency; and how many BOOKED or HELD reservations are overdue for their next check. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's; with none, every agency's. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.health.list",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeHealth"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get platform health in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.health.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice health list"
          }
        ]
      }
    },
    "/backoffice/operations": {
      "get": {
        "x-forge-group-name": "backoffice.operations",
        "x-forge-method-name": "list",
        "description": "Returns the five exception queues a person must clear, each at most 200 rows: unticketed (flights Nicer sold through checkout that are BOOKED with no ticket issued, newest first), staleObservations (BOOKED or HELD orders whose latest read at the provider failed, the latest failure first), uncollected (commission items still UPCOMING, DUE or OVERDUE, the largest balance owed first), unmatchedPayments (Nicer charges that SUCCEEDED on orders that never became a booking, newest first) and duplicates (one payer holding the same product on the same accepted terms on more than one BOOKED or HELD order, the most orders first). Every row names its agency and its order, so it can be opened. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's queues; with none, every agency's. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.operations.list",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeOperations"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the operations queues in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.operations.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice operations list"
          }
        ]
      }
    },
    "/backoffice/orders": {
      "get": {
        "x-forge-group-name": "backoffice.orders",
        "x-forge-method-name": "list",
        "description": "Lists orders for the back office, newest first, 50 a page (limit, at most 100), paged with nextToken; total counts every page. One list serves the orders page, a hotel (hotelReference), a trip (travelersTripId), an advisor (advisorUserId, the advisor credited with the order) and a payer (payerUserId). from and to are UTC days of the order's creation, both included; without them the list reads the last 90 days, or every date when it is narrowed by one of those four ids. status, productType, currency (UNKNOWN for orders without an amount) and entryMethod (RECORDED for every order recorded from a provider) narrow it further, and q searches the order id, provider locator, payer email, hotel reference, product name, supplier confirmation and the names of the people on the order. Lodging orders carry the property facts they were sold with. The agency is named by the x-nicer-company header and nothing else: Nicer staff who name none read every agency's orders; with an agency named, staff and its admins read that agency's. An agency admin may name only an agency they administer, and may leave the header out when they administer one. The providerKey field is answered to Nicer staff only, and the providerKey filter is staff only too. Errors: 400 ERROR_INVALID_QUERY for a bad parameter or a from after to; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named, and for an admin who sends providerKey.",
        "operationId": "backoffice.orders.list",
        "parameters": [
          {
            "description": "Only the orders credited to this advisor: the one assigned to the order, else the one who booked it or whose provider profile it came in on.",
            "in": "query",
            "name": "advisorUserId",
            "required": false,
            "schema": {
              "description": "Only the orders credited to this advisor: the one assigned to the order, else the one who booked it or whose provider profile it came in on.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Only the orders in this currency; UNKNOWN for the orders that carry no amount.",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "description": "Only the orders in this currency; UNKNOWN for the orders that carry no amount.",
              "$ref": "#/components/schemas/BackofficeOrderCurrencyFilter"
            }
          },
          {
            "description": "Only the orders that entered Nicer this way; RECORDED for every order recorded from a provider.",
            "in": "query",
            "name": "entryMethod",
            "required": false,
            "schema": {
              "description": "Only the orders that entered Nicer this way; RECORDED for every order recorded from a provider.",
              "$ref": "#/components/schemas/BackofficeOrderEntry"
            }
          },
          {
            "description": "The first UTC day of the orders' creation, included. When neither from nor to is sent, the last 90 days, unless the list is narrowed by travelersTripId, hotelReference, advisorUserId or payerUserId, which reads every date.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "description": "The first UTC day of the orders' creation, included. When neither from nor to is sent, the last 90 days, unless the list is narrowed by travelersTripId, hotelReference, advisorUserId or payerUserId, which reads every date.",
              "examples": [
                "2026-08-12"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Only the orders at this property.",
            "in": "query",
            "name": "hotelReference",
            "required": false,
            "schema": {
              "description": "Only the orders at this property.",
              "examples": [
                "htl_s_8k2f9"
              ],
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "How many orders a page holds, 1 to 100; 50 by default.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "How many orders a page holds, 1 to 100; 50 by default.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "The nextToken of the previous page, to read the next one.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the previous page, to read the next one.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Only the orders this person pays for.",
            "in": "query",
            "name": "payerUserId",
            "required": false,
            "schema": {
              "description": "Only the orders this person pays for.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Only the orders that sell this product.",
            "in": "query",
            "name": "productType",
            "required": false,
            "schema": {
              "description": "Only the orders that sell this product.",
              "type": "string",
              "enum": [
                "PLANNING_FEE",
                "EXTRA_PAYMENT",
                "HOTEL",
                "FLIGHT",
                "INSURANCE",
                "CAR_RENTAL"
              ]
            }
          },
          {
            "description": "Only the orders booked with this provider. Nicer staff only: an agency admin who sends it gets 403.",
            "in": "query",
            "name": "providerKey",
            "required": false,
            "schema": {
              "description": "Only the orders booked with this provider. Nicer staff only: an agency admin who sends it gets 403.",
              "$ref": "#/components/schemas/ProviderKey"
            }
          },
          {
            "description": "Free text, matched case-insensitively anywhere in the order id, the provider locator, the payer email, the hotel reference, the product name (the route of a flight), the supplier confirmation or the name of any person on the order.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "description": "Free text, matched case-insensitively anywhere in the order id, the provider locator, the payer email, the hotel reference, the product name (the route of a flight), the supplier confirmation or the name of any person on the order.",
              "examples": [
                "MDE",
                "XKTRPL"
              ],
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "description": "Only the orders in this status.",
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "description": "Only the orders in this status.",
              "$ref": "#/components/schemas/OrderLifecycleStatus"
            }
          },
          {
            "description": "The last UTC day of the orders' creation, included; today by default. A from without a to reads up to today; a to without a from reads the 90 days before it.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "description": "The last UTC day of the orders' creation, included; today by default. A from without a to reads up to today; a to without a from reads the 90 days before it.",
              "examples": [
                "2026-11-10"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Only the orders of this trip.",
            "in": "query",
            "name": "travelersTripId",
            "required": false,
            "schema": {
              "description": "Only the orders of this trip.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeOrderList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List orders in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.orders.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice orders list"
          }
        ]
      }
    },
    "/backoffice/orders/{orderId}": {
      "get": {
        "x-forge-group-name": "backoffice.orders",
        "x-forge-method-name": "get",
        "description": "Returns everything Commerce knows about one order: its row (as the order list has it), the people on it (name, email, nationality and role; never documents or birth dates), its flight legs as the provider holds them now, its issued documents, the service as the provider recorded it, the latest successful read of the reservation, its timeline (newest first, at most 500 entries) and the reference exchange rates. The agency is named by the x-nicer-company header and nothing else: Nicer staff who name none reach any order; with an agency named, staff and its admins reach that agency's orders only. An agency admin may name only an agency they administer, and may leave the header out when they administer one. For an agency admin the server leaves out providerKey and the timeline entries of kind PAYMENT_EVENT and PROVIDER. Errors: 404 ERROR_ITEM_NOT_FOUND for an order that does not exist or belongs to another agency; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.",
        "operationId": "backoffice.orders.get",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeOrderDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an order in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.orders.get({\n  \"orderId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice orders get --order-id 'string'"
          }
        ]
      }
    },
    "/backoffice/people/{userId}/balances": {
      "get": {
        "x-forge-group-name": "backoffice.people.balances",
        "x-forge-method-name": "list",
        "description": "Returns a person's ledger balances, as an advisor (what they earn) and as a traveler (their rewards): one row per agency, kind and currency they hold an account in, with what is available, pending and owed back; an overdrawn bucket reads zero and its shortfall is owed back, as everywhere else in Nicer. The person's orders are read with GET /backoffice/orders, by advisorUserId or payerUserId. The agency is named by the x-nicer-company header and nothing else. Nicer staff who name no agency read the person's accounts in every agency's ledger; with an agency named, staff and its admins read that agency's ledger only: the person's accounts there, and nothing of other agencies. An agency admin may name only an agency they administer, and may leave the header out when they administer one. An empty list means the person holds no account in the ledgers read. Errors: 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.",
        "operationId": "backoffice.people.balances.list",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficePersonBalances"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a person's balances in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.people.balances.list({\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice people balances list --user-id 'string'"
          }
        ]
      }
    },
    "/backoffice/providers": {
      "get": {
        "x-forge-group-name": "backoffice.providers",
        "x-forge-method-name": "list",
        "description": "Returns how each provider performed in a period (UTC days, from and to included, the last 90 days by default): the orders created in it by provider, product and currency, whatever their status (value sold, bookings, cancellations, and failures: FAILED or NEEDS_ATTENTION); the calls made to providers in it by provider and operation (how many, succeeded, failed or declined, and the average time); and the commission items on its orders by provider, payment status and currency (expected and received). Sold means BOOKED. Every amount is in its row's own currency, never converted. range is the period read, after the defaults. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's; with none, every agency's. Nicer staff only. Errors: 400 ERROR_INVALID_QUERY for a bad day or a from after to; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.providers.list",
        "parameters": [
          {
            "description": "The period's first UTC day, included; 90 days before to by default.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "description": "The period's first UTC day, included; 90 days before to by default.",
              "examples": [
                "2026-08-12"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "The period's last UTC day, included; today by default.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "description": "The period's last UTC day, included; today by default.",
              "examples": [
                "2026-11-10"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeProviders"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get provider performance in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.providers.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice providers list"
          }
        ]
      }
    },
    "/backoffice/retention": {
      "get": {
        "x-forge-group-name": "backoffice.retention",
        "x-forge-method-name": "list",
        "description": "Returns who comes back, over every date: the customers by the UTC month of their first BOOKED order, with how many of them booked again, and the 200 customers with the most BOOKED orders (then the highest lifetime value), one row per agency, customer and currency. A customer is a payer email at one agency with at least one BOOKED order: the same person at two agencies is two customers. The payer email is personal data. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's customers; with none, every agency's. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.retention.list",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeRetention"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get customer retention in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.retention.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice retention list"
          }
        ]
      }
    },
    "/backoffice/rewards": {
      "get": {
        "x-forge-group-name": "backoffice.rewards",
        "x-forge-method-name": "list",
        "description": "Returns traveler rewards and every earning the platform has booked, over every date: each traveler's reward balance now, by agency and currency (at most 200, the most available first; an overdrawn bucket reads zero and its shortfall moves into receivable), and every earning ever booked by earning kind, beneficiary kind, status and currency, gross: reversals and clawbacks are not subtracted. Amounts are in each row's own currency, never converted. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's ledger; with none, every agency's. Nicer staff only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.rewards.list",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeRewards"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get rewards and earnings in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.rewards.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice rewards list"
          }
        ]
      }
    },
    "/backoffice/sales": {
      "get": {
        "x-forge-group-name": "backoffice.sales",
        "x-forge-method-name": "list",
        "description": "Returns the sales report of a period: of one agency, or of every agency for Nicer staff who name none. The period's sections all describe the orders created in it (UTC days, from and to included, the last 90 days by default), of the productType asked for, in the currency asked for (USD by default): sales by month and by day, the checkout funnel, Nicer's charges, booking values, open commission by status and by product, property and age, earnings, advisor production, flight routes and lead times. currencyTotals shows the period in every currency side by side; advisorBalances is what each advisor is owed now, whatever the period; currencies lists every currency the orders use. Sold means BOOKED and cancelled CANCELLED. The agency is named by the x-nicer-company header and nothing else. An agency admin may name only an agency they administer, and may leave the header out when they administer one. Nicer staff only: agencies, the ranking of agencies, answered only for the whole platform, and providerKey in byMonth and commissions; an admin's rows are not split by provider. Errors: 400 ERROR_INVALID_QUERY for a bad parameter or a from after to; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.",
        "operationId": "backoffice.sales.list",
        "parameters": [
          {
            "description": "The currency the money sections are in; USD by default. currencyTotals shows every currency whatever this is.",
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "USD",
              "description": "The currency the money sections are in; USD by default. currencyTotals shows every currency whatever this is.",
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          {
            "description": "The period's first UTC day, included; 90 days before to by default.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "description": "The period's first UTC day, included; 90 days before to by default.",
              "examples": [
                "2026-08-12"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Only the orders that sell this product, in every section.",
            "in": "query",
            "name": "productType",
            "required": false,
            "schema": {
              "description": "Only the orders that sell this product, in every section.",
              "type": "string",
              "enum": [
                "PLANNING_FEE",
                "EXTRA_PAYMENT",
                "HOTEL",
                "FLIGHT",
                "INSURANCE",
                "CAR_RENTAL"
              ]
            }
          },
          {
            "description": "The period's last UTC day, included; today by default.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "description": "The period's last UTC day, included; today by default.",
              "examples": [
                "2026-11-10"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SalesReport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the sales report in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.sales.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice sales list"
          }
        ]
      }
    },
    "/backoffice/timeline": {
      "get": {
        "x-forge-group-name": "backoffice.timeline",
        "x-forge-method-name": "list",
        "description": "Lists every commercial event of a period across orders, newest first: order actions, payment attempts, payment processor events, provider calls, issued documents, provider records, reservation reads, earnings and external payments, each as an order's timeline has it (GET /backoffice/orders/{orderId}), with the order and agency it belongs to. from and to are UTC days of when the event happened, both included, the last 90 days by default; kind narrows the list to one kind of event, and q searches the order id and the event's title. 100 events a page (limit, at most 500), paged with nextToken. The agency is named by the x-nicer-company header and nothing else: with one named, that agency's events; with none, every agency's. Nicer staff only. Errors: 400 ERROR_INVALID_QUERY for a bad parameter or a from after to; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.timeline.list",
        "parameters": [
          {
            "description": "The first UTC day of the events, included; 90 days before to by default.",
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "description": "The first UTC day of the events, included; 90 days before to by default.",
              "examples": [
                "2026-08-12"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Only the events of this kind.",
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "description": "Only the events of this kind.",
              "$ref": "#/components/schemas/BackofficeTimelineKind"
            }
          },
          {
            "description": "How many events a page holds, 1 to 500; 100 by default.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "description": "How many events a page holds, 1 to 500; 100 by default.",
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "description": "The nextToken of the previous page, to read the next one. Send it with the same filters.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the previous page, to read the next one. Send it with the same filters.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Free text, matched case-insensitively anywhere in the order id or the event's title.",
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "description": "Free text, matched case-insensitively anywhere in the order id or the event's title.",
              "examples": [
                "SABRE TICKET",
                "NICER_CHARGE DECLINED"
              ],
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          {
            "description": "The last UTC day of the events, included; today by default.",
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "description": "The last UTC day of the events, included; today by default.",
              "examples": [
                "2026-11-10"
              ],
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeTimelineList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List the platform timeline in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.timeline.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice timeline list"
          }
        ]
      }
    },
    "/backoffice/trips": {
      "get": {
        "x-forge-group-name": "backoffice.trips",
        "x-forge-method-name": "list",
        "description": "Lists trips for the back office, newest first, with the fields a list shows (read the whole record with GET /backoffice/trips/{travelersTripId}). The agency is named by the x-nicer-company header and nothing else. In an agency: its trips, 50 a page (limit, at most 200), paged with nextToken. Nicer staff who name no agency get the newest trips of every agency in one page, nextToken null; this view returns at most limit trips, so it is capped, not complete. With userId: the trips that person is on, in any relationship, newest first, in one page, each with isArchived (whether they archived it); for an agency admin, only the ones in their agency. Nicer staff may name any agency or none; an agency admin may name only an agency they administer, and may leave the header out when they administer one. Errors: 400 ERROR_INVALID_QUERY for a bad limit or token; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.",
        "operationId": "backoffice.trips.list",
        "parameters": [
          {
            "description": "How many trips a page holds, 1 to 200; 50 by default. Not used with userId.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "How many trips a page holds, 1 to 200; 50 by default. Not used with userId.",
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "description": "The nextToken of the previous page, to read the next one. Only an agency's list has more than one page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the previous page, to read the next one. Only an agency's list has more than one page.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Lists the trips this person is on, in any relationship, instead of the agency's.",
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "description": "Lists the trips this person is on, in any relationship, instead of the agency's.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeTripList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List trips in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.trips.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice trips list"
          }
        ]
      }
    },
    "/backoffice/trips/{travelersTripId}": {
      "get": {
        "x-forge-group-name": "backoffice.trips",
        "x-forge-method-name": "get",
        "description": "Returns a whole trip record and the people on it: each person's relationship to the trip, whether they archived it and when they last read its chat. The agency is named by the x-nicer-company header and nothing else. Nicer staff who name no agency reach any trip; with an agency named, staff and its admins reach that agency's trips only. An agency admin may name only an agency they administer, and may leave the header out when they administer one. Errors: 404 ERROR_ITEM_NOT_FOUND for a trip that does not exist or belongs to another agency; 400 ERROR_COMPANY_REQUIRED for an admin of several agencies who names none; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is neither Nicer staff nor an admin of the agency named.",
        "operationId": "backoffice.trips.get",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeTripDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a trip in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.trips.get({\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice trips get --travelers-trip-id 'string'"
          }
        ]
      }
    },
    "/backoffice/users": {
      "get": {
        "x-forge-group-name": "backoffice.users",
        "x-forge-method-name": "list",
        "description": "Lists the accounts Identity holds, 50 a page (limit, at most 100), paged with nextToken, in user id order (not a meaningful one). Each account carries what the users list shows: name, email, phone, photo, agency and role; name, email, phone and photo are personal data. Deleted accounts are listed too, with deleted true. role narrows the list to one platform role. The agency is named by the x-nicer-company header and nothing else: with one named, only the people with an active membership in it (as advisor, admin or Nicer staff), whatever agency they signed up in; with none, every account. A page narrowed by role or agency may hold fewer accounts than limit, even none, before the last page: read on while nextToken is not null. Nicer staff only. Errors: 400 ERROR_INVALID_QUERY for a bad role, limit or token; 403 ERROR_DO_NOT_HAVE_PERMISSION for a caller who is not Nicer staff.",
        "operationId": "backoffice.users.list",
        "parameters": [
          {
            "description": "The most people a page holds, 1 to 100; 50 by default. A page narrowed by role or agency may hold fewer, even none, before the last one.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "description": "The most people a page holds, 1 to 100; 50 by default. A page narrowed by role or agency may hold fewer, even none, before the last one.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "The nextToken of the previous page, to read the next one. Send it with the same role and agency.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the previous page, to read the next one. Send it with the same role and agency.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Only the people with this platform role: traveler, advisor, admin (an agency admin) or superadmin (Nicer staff).",
            "in": "query",
            "name": "role",
            "required": false,
            "schema": {
              "description": "Only the people with this platform role: traveler, advisor, admin (an agency admin) or superadmin (Nicer staff).",
              "$ref": "#/components/schemas/AuthScope"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BackofficeUserList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List users in the back office",
        "tags": [
          "backoffice"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.backoffice.users.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer backoffice users list"
          }
        ]
      }
    },
    "/booking/car-rentals": {
      "get": {
        "x-forge-group-name": "booking.carRentals",
        "x-forge-method-name": "list",
        "description": "JSON is the default; Accept: text/event-stream or format=stream requests SSE.",
        "operationId": "booking.carRentals.list",
        "parameters": [
          {
            "in": "query",
            "name": "pickup",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 50,
              "pattern": "^(?:[A-Z]{3}|-?\\d+(?:\\.\\d+)?,-?\\d+(?:\\.\\d+)?)$"
            }
          },
          {
            "in": "query",
            "name": "dropoff",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 50,
              "pattern": "^(?:[A-Z]{3}|-?\\d+(?:\\.\\d+)?,-?\\d+(?:\\.\\d+)?)$"
            }
          },
          {
            "in": "query",
            "name": "pickupDate",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "dropoffDate",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "pickupTime",
            "required": false,
            "schema": {
              "default": "12:00",
              "type": "string",
              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
            }
          },
          {
            "in": "query",
            "name": "dropoffTime",
            "required": false,
            "schema": {
              "default": "12:00",
              "type": "string",
              "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$"
            }
          },
          {
            "in": "query",
            "name": "pickupZone",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "in": "query",
            "name": "dropoffZone",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          {
            "in": "query",
            "name": "age",
            "required": false,
            "schema": {
              "default": 30,
              "type": "integer",
              "minimum": 18,
              "maximum": 99
            }
          },
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "USD",
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          {
            "in": "query",
            "name": "suppliers",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 89
            }
          },
          {
            "in": "query",
            "name": "transmission",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 30
            }
          },
          {
            "in": "query",
            "name": "extras",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 49
            }
          },
          {
            "in": "query",
            "name": "minPrice",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "in": "query",
            "name": "maxPrice",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          {
            "in": "query",
            "name": "minLuggage",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20
            }
          },
          {
            "in": "query",
            "name": "minCargo",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 20
            }
          },
          {
            "in": "query",
            "name": "minSeats",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "default": "price",
              "type": "string",
              "enum": [
                "price",
                "-price",
                "commission",
                "-commission"
              ]
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            }
          },
          {
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON snapshot or SSE frames (the schema describes each frame's JSON data).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarDiscoveryResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/BookingCarRentalsListEvent"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "discoveryBearer": []
          }
        ],
        "summary": "DiscoverCarRentals",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.carRentals.list({\n  \"pickup\": \"string\",\n  \"pickupDate\": \"2019-08-24\",\n  \"dropoffDate\": \"2019-08-24\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking car-rentals list --pickup 'string' --pickup-date '2019-08-24' --dropoff-date '2019-08-24'"
          }
        ]
      }
    },
    "/booking/car-rentals/{offerReference}": {
      "get": {
        "x-forge-group-name": "booking.carRentals",
        "x-forge-method-name": "get",
        "description": "JSON is the default; Accept: text/event-stream or format=stream requests SSE.",
        "operationId": "booking.carRentals.get",
        "parameters": [
          {
            "in": "path",
            "name": "offerReference",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON snapshot or SSE frames (the schema describes each frame's JSON data).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarDiscoveryDetails"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/BookingCarRentalsGetEvent"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "discoveryBearer": []
          }
        ],
        "summary": "DiscoverCarRentalDetails",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.carRentals.get({\n  \"offerReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking car-rentals get --offer-reference 'string'"
          }
        ]
      }
    },
    "/booking/flights": {
      "get": {
        "x-forge-group-name": "booking.flights",
        "x-forge-method-name": "list",
        "description": "JSON is the default; Accept: text/event-stream or format=stream requests SSE.",
        "operationId": "booking.flights.list",
        "parameters": [
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AirportCode"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/AirportCode"
            }
          },
          {
            "in": "query",
            "name": "departure",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "return",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "legs",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 137,
              "pattern": "^[A-Z]{3}-[A-Z]{3}-\\d{4}-\\d{2}-\\d{2}(?:,[A-Z]{3}-[A-Z]{3}-\\d{4}-\\d{2}-\\d{2}){1,5}$"
            }
          },
          {
            "in": "query",
            "name": "adults",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 9
            }
          },
          {
            "in": "query",
            "name": "children",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 8
            }
          },
          {
            "in": "query",
            "name": "infants",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 8
            }
          },
          {
            "in": "query",
            "name": "cabin",
            "required": false,
            "schema": {
              "default": "economy",
              "type": "string",
              "enum": [
                "economy",
                "premium-economy",
                "business",
                "first"
              ]
            }
          },
          {
            "in": "query",
            "name": "cabins",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100,
              "pattern": "^(?:economy|premium-economy|business|first)(?:,(?:economy|premium-economy|business|first)){0,5}$"
            }
          },
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "USD",
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          {
            "in": "query",
            "name": "airlines",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 89,
              "pattern": "^[A-Z0-9]{2,3}(?:,[A-Z0-9]{2,3}){0,29}$"
            }
          },
          {
            "in": "query",
            "name": "stops",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[0-2](?:,[0-2]){0,2}$"
            }
          },
          {
            "in": "query",
            "name": "via",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 119,
              "pattern": "^[A-Z]{3}(?:,[A-Z]{3}){0,29}$"
            }
          },
          {
            "in": "query",
            "name": "excludeAirportChanges",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "maxConnections",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 5
            }
          },
          {
            "in": "query",
            "name": "minPrice",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "in": "query",
            "name": "maxPrice",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 9007199254740991
            }
          },
          {
            "in": "query",
            "name": "maxDuration",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10080
            }
          },
          {
            "in": "query",
            "name": "bags",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "refundable",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "commissionable",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "sameCabin",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "changeable",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "maxLayover",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2880
            }
          },
          {
            "in": "query",
            "name": "departureTime",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "arrivalTime",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "default": "price",
              "$ref": "#/components/schemas/FlightSort"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            }
          },
          {
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "default": 20,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "group",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "slice"
              ]
            }
          },
          {
            "in": "query",
            "name": "slices",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 400,
              "pattern": "^slc_[A-Za-z0-9]+(?:,slc_[A-Za-z0-9]+){0,5}$"
            }
          },
          {
            "in": "query",
            "name": "chosenFrom",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 96,
              "pattern": "^flt_[A-Za-z0-9_-]+_\\d+$"
            }
          },
          {
            "description": "Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON snapshot or SSE frames (the schema describes each frame's JSON data).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightDiscoveryResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/BookingFlightsListEvent"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "discoveryBearer": []
          }
        ],
        "summary": "DiscoverFlights",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.flights.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking flights list"
          }
        ]
      }
    },
    "/booking/flights/{offerReference}": {
      "get": {
        "x-forge-group-name": "booking.flights",
        "x-forge-method-name": "get",
        "description": "JSON is the default; Accept: text/event-stream or format=stream requests SSE.",
        "operationId": "booking.flights.get",
        "parameters": [
          {
            "in": "path",
            "name": "offerReference",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON snapshot or SSE frames (the schema describes each frame's JSON data).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightDetailsResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/BookingFlightsGetEvent"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "discoveryBearer": []
          }
        ],
        "summary": "DiscoverFlightDetails",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.flights.get({\n  \"offerReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking flights get --offer-reference 'string'"
          }
        ]
      }
    },
    "/booking/hotels": {
      "get": {
        "x-forge-group-name": "booking.hotels",
        "x-forge-method-name": "list",
        "description": "Public hotel API. Send x-nicer-company when an optional verified Cognito token does not identify one company. No trip or company-registration lookup is required. Accept selects JSON or SSE on this resource; repeat the same criteria URL after partial results. Search and details run in separate Lambdas. Hotel path identifiers are hotelReference values.",
        "operationId": "booking.hotels.list",
        "parameters": [
          {
            "in": "query",
            "name": "checkIn",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "checkOut",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "USD",
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            }
          },
          {
            "description": "Occupancy per room, not the room count. Format adults[:childAge,childAge];nextRoom. One room for 2 adults is '2'; two rooms for 2 adults each is '2;2'; 2 adults and a child age 7 is '2:7'. Sabre multi-room rates require the same adult and child counts per room. Search mixed occupancies separately; each result then covers only its requested room.",
            "in": "query",
            "name": "rooms",
            "required": false,
            "schema": {
              "default": "2",
              "description": "Occupancy per room, not the room count. Format adults[:childAge,childAge];nextRoom. One room for 2 adults is '2'; two rooms for 2 adults each is '2;2'; 2 adults and a child age 7 is '2:7'. Sabre multi-room rates require the same adult and child counts per room. Search mixed occupancies separately; each result then covers only its requested room.",
              "type": "string",
              "pattern": "^[1-8](?::(?:[0-9]|1[0-7])(?:,(?:[0-9]|1[0-7]))*)?(?:;[1-8](?::(?:[0-9]|1[0-7])(?:,(?:[0-9]|1[0-7]))*)?){0,7}$"
            }
          },
          {
            "in": "query",
            "name": "lat",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": -90,
              "maximum": 90
            }
          },
          {
            "in": "query",
            "name": "lng",
            "required": false,
            "schema": {
              "type": "number",
              "minimum": -180,
              "maximum": 180
            }
          },
          {
            "in": "query",
            "name": "radius",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "placeId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Focused property or landmark name. When supplied, type is required: use type='hotel' for a hotel or type='landmark' for a nearby landmark.",
            "in": "query",
            "name": "name",
            "required": false,
            "schema": {
              "description": "Focused property or landmark name. When supplied, type is required: use type='hotel' for a hotel or type='landmark' for a nearby landmark.",
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "description": "Required together with name. Use 'hotel' for a named property and 'landmark' for proximity to a named landmark.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "description": "Required together with name. Use 'hotel' for a named property and 'landmark' for proximity to a named landmark.",
              "type": "string",
              "enum": [
                "hotel",
                "landmark"
              ]
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "distance",
                "price",
                "-price",
                "recommended"
              ]
            }
          },
          {
            "in": "query",
            "name": "rateCodes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "amenities",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "chainNames",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated hotelReference values returned by prior hotel searches. Use this filter to compare the same known property across dates or occupancies; never invent references.",
            "in": "query",
            "name": "hotelReferences",
            "required": false,
            "schema": {
              "description": "Comma-separated hotelReference values returned by prior hotel searches. Use this filter to compare the same known property across dates or occupancies; never invent references.",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "maximumDistanceKm",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "maximumPriceMinor",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "minimumPriceMinor",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "minimumStars",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "maximumStars",
            "required": false,
            "schema": {
              "type": "number"
            }
          },
          {
            "in": "query",
            "name": "breakfastIncludedOnly",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "refundableOnly",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "commissionableOnly",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "requireRateCodeMatch",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "expand",
            "required": false,
            "schema": {
              "type": "string",
              "const": "pins"
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 1,
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            }
          },
          {
            "in": "query",
            "name": "waitMs",
            "required": false,
            "schema": {
              "default": 55000,
              "type": "integer",
              "minimum": 0,
              "maximum": 55000
            }
          },
          {
            "in": "query",
            "name": "size",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "minResults",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 100
            }
          },
          {
            "description": "Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON snapshot or SSE frames (the schema describes each frame's JSON data).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HotelDiscoveryResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/BookingHotelsListEvent"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "discoveryBearer": []
          }
        ],
        "summary": "DiscoverHotels",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.hotels.list({\n  \"checkIn\": \"2019-08-24\",\n  \"checkOut\": \"2019-08-24\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking hotels list --check-in '2019-08-24' --check-out '2019-08-24'"
          }
        ]
      }
    },
    "/booking/hotels/{hotelId}": {
      "get": {
        "x-forge-group-name": "booking.hotels",
        "x-forge-method-name": "get",
        "description": "Public hotel API. Send x-nicer-company when an optional verified Cognito token does not identify one company. No trip or company-registration lookup is required. Accept selects JSON or SSE on this resource; repeat the same criteria URL after partial results. Search and details run in separate Lambdas. Hotel path identifiers are hotelReference values.",
        "operationId": "booking.hotels.get",
        "parameters": [
          {
            "in": "path",
            "name": "hotelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "checkIn",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "checkOut",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "default": "USD",
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            }
          },
          {
            "description": "Occupancy per room, not the room count. Format adults[:childAge,childAge];nextRoom. One room for 2 adults is '2'; two rooms for 2 adults each is '2;2'; 2 adults and a child age 7 is '2:7'. Sabre multi-room rates require the same adult and child counts per room. Search mixed occupancies separately; each result then covers only its requested room.",
            "in": "query",
            "name": "rooms",
            "required": false,
            "schema": {
              "default": "2",
              "description": "Occupancy per room, not the room count. Format adults[:childAge,childAge];nextRoom. One room for 2 adults is '2'; two rooms for 2 adults each is '2;2'; 2 adults and a child age 7 is '2:7'. Sabre multi-room rates require the same adult and child counts per room. Search mixed occupancies separately; each result then covers only its requested room.",
              "type": "string",
              "pattern": "^[1-8](?::(?:[0-9]|1[0-7])(?:,(?:[0-9]|1[0-7]))*)?(?:;[1-8](?::(?:[0-9]|1[0-7])(?:,(?:[0-9]|1[0-7]))*)?){0,7}$"
            }
          },
          {
            "in": "query",
            "name": "rateCodes",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "include",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "content",
                "rates",
                "content,rates"
              ]
            }
          },
          {
            "in": "query",
            "name": "refresh",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "description": "Required when the optional Authorization token does not identify one company. Public context only; no company-registration lookup.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "Accept",
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "JSON snapshot or SSE frames (the schema describes each frame's JSON data).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingHotelsGetResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/BookingHotelsListEvent"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "discoveryBearer": []
          }
        ],
        "summary": "DiscoverHotelDetails",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.hotels.get({\n  \"hotelId\": \"string\",\n  \"checkIn\": \"2019-08-24\",\n  \"checkOut\": \"2019-08-24\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking hotels get --hotel-id 'string' --check-in '2019-08-24' --check-out '2019-08-24'"
          }
        ]
      }
    },
    "/booking/offers/{offerReference}/requirements": {
      "get": {
        "x-forge-group-name": "booking.offers.requirements",
        "x-forge-method-name": "list",
        "description": "Returns the checkout data still required before a live search offer can be booked: primary guest for hotels, driver and license for car rentals, passenger assignments and travel documents for flights. Requires an `x-nicer-company` header and returns 404 `BOOKING_OFFER_NOT_FOUND` when the offer is missing or expired. Hotel member rates include membership requirements; unsupported conditions return `MANUAL_REVIEW`.",
        "operationId": "booking.offers.requirements.list",
        "parameters": [
          {
            "in": "path",
            "name": "offerReference",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingOffersRequirementsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "bearerAuth": []
          }
        ],
        "summary": "List checkout requirements for an offer",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.offers.requirements.list({\n  \"offerReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking offers requirements list --offer-reference 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/booking/quotes": {
      "post": {
        "x-forge-group-name": "booking.quotes",
        "x-forge-method-name": "create",
        "description": "Re-validates a live offer (by `offerReference`, or by an existing `bookingSelectionId`) against the provider and stores an immutable quote with price, payment terms and participant requirements. Requires an `Idempotency-Key` header and an `x-nicer-company` header; the caller may be anonymous. Returns `OK`, `PRICE_CHANGED` (with `previousPrice` and `requiresAcceptance`) or `UNAVAILABLE` with a `reasonCode`. The quote carries the commercial snapshot (expected commission and earnings) only for the agency's advisors and admins and for Nicer staff; travelers and anonymous callers get the quote without it. A Sabre offer books under the advisor's own DK, else the agency's default DK; with neither, the quote is refused with 422 `BOOKING_SABRE_DK_REQUIRED` before Sabre is called.",
        "operationId": "booking.quotes.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateQuoteRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuoteOutcomeResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "companyHeader": []
          },
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a bookable quote from an offer",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.quotes.create({\n  \"offerReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking quotes create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"offerReference\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/booking/sabre/connections": {
      "get": {
        "x-forge-group-name": "booking.sabre.connections",
        "x-forge-method-name": "list",
        "description": "For Nicer staff only: every agency's Sabre connection in one list, on or off, with the office it works in, where and with which credential Nicer signs in, every agency that shares that credential, the products bound to it, live or mock, its agents and the last sign-in test. It reads across agencies, so it takes no `x-nicer-company`; to change one agency's connection, call the settings routes with that agency in `x-nicer-company`. No credential is ever returned, only the secret's name. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for anyone who is not Nicer staff.",
        "operationId": "booking.sabre.connections.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SabreConnectionList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List every agency's Sabre connection",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.booking.sabre.connections.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking sabre connections list"
          }
        ]
      }
    },
    "/booking/sabre/me": {
      "get": {
        "x-forge-group-name": "booking.sabre.me",
        "x-forge-method-name": "list",
        "description": "Tells the signed-in advisor or admin whether the agency they act in (x-nicer-company) books through Sabre, which products it sells there, and whose DK their own searches and bookings carry: their own agent, the agency's default agent, or none. When the agency has no Sabre connection or it is off, it answers 200 with `enabled: false`, never an error. It never returns another person's DK, a PCC or anything about the credential. Errors: 400 ERROR_COMPANY_REQUIRED, 403 ERROR_UNAUTHORIZED for a traveler.",
        "operationId": "booking.sabre.me.list",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MySabre"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get my Sabre agent",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.sabre.me.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking sabre me list --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "booking.sabre.me",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Activate my Sabre agent. This may delete or overwrite what is there.",
        "description": "The signed-in advisor or admin sets the DK their own Sabre searches and bookings carry at the agency they act in (x-nicer-company); sending a different DK later changes it. The caller is always the token's person: there is no user id, PCC, corporate profile or default flag to send, and an admin who activates their own DK books under it like any advisor. A DK that reservation import already found at this agency and nobody owns becomes the caller's, together with the imported bookings made under it. The change reaches searches within about 30 seconds. Errors: 400 ERROR_BODY_VALIDATION (a DK is 1 to 10 letters and digits), 404 BOOKING_PROVIDER_NOT_CONFIGURED when the agency has no Sabre connection that is on, 409 BOOKING_DK_OWNER_CONFLICT when another person at the agency already has that DK, 409 BOOKING_DEFAULT_AGENT_MANAGED when the caller holds the agency's default agent (an admin changes that one in the agency's settings), 422 ASSIGNMENT_MEMBER_REQUIRED when the caller is not an active advisor or admin of the agency.",
        "operationId": "booking.sabre.me.update",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ActivateMySabre"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MySabre"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Activate my Sabre agent",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.sabre.me.update({\n  \"dkNumber\": \"7TZ123\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking sabre me update --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"dkNumber\": \"7TZ123\"\n}\nJSON"
          }
        ]
      }
    },
    "/booking/selections": {
      "post": {
        "x-forge-group-name": "booking.selections",
        "x-forge-method-name": "create",
        "description": "Re-validates a live search offer with the provider and stores it as a selection that stays bookable until `bookableUntil` (retained 30 days). Requires an authenticated company user and an `Idempotency-Key`; replaying the key with a different body returns 409 `BOOKING_SELECTION_IDEMPOTENCY_CONFLICT`, an expired or unknown offer returns 409 `BOOKING_OFFER_UNAVAILABLE`, and a Sabre offer with no DK to book with (the advisor has none and the agency has no default DK) returns 422 `BOOKING_SABRE_DK_REQUIRED`. Returns the selection id and a preview of product, price and payment terms; the preview carries the commercial snapshot (expected commission and earnings) only for the agency's advisors and admins and for Nicer staff, and leaves it out for travelers.",
        "operationId": "booking.selections.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingSelectionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingSelectionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save an offer as a booking selection",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.selections.create({\n  \"offerReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking selections create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"offerReference\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/booking/selections/{selectionId}": {
      "get": {
        "x-forge-group-name": "booking.selections",
        "x-forge-method-name": "get",
        "description": "Returns a stored selection and, when the last refresh is older than 15 minutes, re-prices it against the provider, persists the new price and expiry, and projects them onto the linked itinerary item. Any refresh failure still serves the last stored offer; only a provider that no longer offers the product sets `availability` to `UNAVAILABLE`. Readable by whoever may open the trip it belongs to: the trip's travelers, its advisor of record (the assigned advisor, or the primary traveler of a self-booked trip without one), the agency's admins and Nicer staff; a selection outside any trip by the person who saved it, the agency's admins and Nicer staff. The preview carries the commercial snapshot (expected commission and earnings) only for the agency's advisors and admins and for Nicer staff. Returns 404 `BOOKING_SELECTION_NOT_FOUND` when missing, expired or not readable by the caller, checked before any provider call, and 409 `BOOKING_SELECTION_TRAVEL_PAST` once the travel dates are more than a day past.",
        "operationId": "booking.selections.get",
        "parameters": [
          {
            "in": "path",
            "name": "selectionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingSelectionsGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Read and re-price a booking selection",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.selections.get({\n  \"selectionId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking selections get --selection-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/booking/settings": {
      "get": {
        "x-forge-group-name": "booking.settings",
        "x-forge-method-name": "list",
        "description": "Reads the booking provider settings of the company named in `x-nicer-company`, for an admin of that company or for Nicer staff naming any company. `resource=PROVIDERS` returns the company's connections to that provider, on or off, each with the `products` its default channel binds to it and has on, and for Sabre the `lastTest` of its sign-in from the settings; `advisors` comes back empty. `resource=SABRE_ADVISORS` with a `providerConfigId` returns that connection's Sabre agents, each with its DK in full and masked and `isDefault` marking the agency's default agent, which books for every advisor without one of their own; `providers` comes back empty. `secretName` and `sharedWith` (the other agencies whose connection signs in with the same credential) are present only when Nicer staff ask. Credentials are never returned: `secretConfigured` says whether one is stored and `publicConfiguration.maskedUsername` which one.",
        "operationId": "booking.settings.list",
        "parameters": [
          {
            "in": "query",
            "name": "providerKey",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ProviderKey"
            }
          },
          {
            "in": "query",
            "name": "resource",
            "required": true,
            "schema": {
              "enum": [
                "PROVIDERS",
                "SABRE_ADVISORS"
              ],
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "providerConfigId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingSettingsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List provider configs or advisor profiles",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.settings.list({\n  \"resource\": \"PROVIDERS\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking settings list --resource 'PROVIDERS' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/booking/settings/actions": {
      "post": {
        "x-forge-group-name": "booking.settings.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Save or test booking provider settings. This may delete or overwrite what is there.",
        "description": "Changes the booking settings of the company named in `x-nicer-company`: its booking channel, a provider connection, or an advisor's Sabre agent, with optimistic concurrency through `expectedVersion`. Who may change what: a company admin, on their own company's connection, may turn it on or off and change `sessionPcc`, `credentials`, `domain`, `alias`, the agency and hotel point-of-sale addresses, `agencyProfile` and `products`, and run every agent action; only Nicer staff may send `homePcc` (the PCC the credential signs in to before working in `sessionPcc` through branch access), `secretReference`, `sabreExecutionMode`, `ticketingQueue`, `ticketingPrinter`, `hotelIataOverride` or `excludedAirlineCodes`, save a connection that has a `homePcc`, give an agent of such a connection a `pccOverride`, or run `READ_SABRE_QUEUES`; a company admin who tries any of those gets 403 BOOKING_PROVIDER_MANAGED. `SAVE_PROVIDER` with `credentials` stores them as a new secret and points the connection at it; `products` sets which products the default channel binds to the connection (omitted keeps the bindings, and a connection being created or turned on binds every product its provider sells); its `publicConfiguration` merges key by key (an absent key keeps its stored value, `null` removes it), and versions are the server's, so `configVersion` and `profileVersion` are ignored. `SAVE_SABRE_ADVISOR` with `isDefault: true` makes that agent the agency's default agent, which books for every advisor without one of their own; `DELETE_SABRE_ADVISOR` turns off every agent of an advisor; `TEST_SABRE` opens a Sabre session with the stored credentials, saves nothing else and records the result as the connection's last test; `READ_SABRE_QUEUES` reads what waits on each queue of the connection's office and what was done on it, and changes nothing in Sabre. Every change publishes its event: `booking.provider-connection-saved.v1`, `booking.channel-saved.v1`, `booking.sabre-agent-saved.v1` or `booking.sabre-agent-removed.v1`. Returns `SAVED` with the new version, `DELETED`, `TESTED` with success, latency, any error and when it ran, or `QUEUES_READ` with the office's queues. Conflicts: 409 BOOKING_SETTINGS_VERSION_CONFLICT when `expectedVersion` is not the stored one, 409 BOOKING_DK_OWNER_CONFLICT when another person at the agency already has that DK.",
        "operationId": "booking.settings.actions.create",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingSettingsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingSettingsActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save or test booking provider settings",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.settings.actions.create({\n  \"type\": \"CLAIM_SABRE_PROFILE\",\n  \"providerConfigId\": \"string\",\n  \"profileId\": \"string\",\n  \"expectedVersion\": \"string\",\n  \"advisorUserId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking settings actions create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"type\": \"CLAIM_SABRE_PROFILE\",\n  \"providerConfigId\": \"string\",\n  \"profileId\": \"string\",\n  \"expectedVersion\": \"string\",\n  \"advisorUserId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/booking/trips/{travelersTripId}/insurance-quotes": {
      "post": {
        "x-forge-group-name": "booking.trips.insuranceQuotes",
        "x-forge-method-name": "create",
        "description": "Requests travel-insurance quotes for the trip's insurable itinerary items plus any `customItems`, using the trip's start and end dates as coverage dates. Requires an authenticated company user with access to the trip, an `Idempotency-Key`, and a trip that has both dates (otherwise 409 `INSURANCE_TRIP_DATES_REQUIRED`). Returns the quotes, which segments were insurable and selected, and the per-traveler fields still missing.",
        "operationId": "booking.trips.insuranceQuotes.create",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/BookingTripsInsuranceQuotesCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BookingTripsInsuranceQuotesCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Quote travel insurance for a trip",
        "tags": [
          "Booking"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.booking.trips.insuranceQuotes.create({\n  \"travelersTripId\": \"string\",\n  \"depositDate\": \"2019-08-24\",\n  \"travelers\": [\n    {\n      \"travelerId\": \"string\"\n    }\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer booking trips insurance-quotes create --travelers-trip-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"depositDate\": \"2019-08-24\",\n  \"travelers\": [\n    {\n      \"travelerId\": \"string\"\n    }\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/chat": {
      "get": {
        "x-forge-group-name": "chat",
        "x-forge-method-name": "list",
        "description": "Lists chats ordered by last activity with participant summaries, unread counts, archive state and whether the trip has an open order. `fields` names the parts of a row to return (dotted for nested, `-` to remove one); omitted, a row carries everything but the trip's destination photo galleries, which are three quarters of the body and which no screen reads. The default scope is the caller's own chats; company scope requires a company admin and all-chats scope requires a superadmin, returning 403 otherwise.",
        "operationId": "chat.list",
        "parameters": [
          {
            "description": "The parts of a row to return, comma-separated, dotted for nested ones and applied to every row: title,chat.chatId,travelersTrip.travelersTripId. A leading - removes one. Omitted, a row carries everything but the trip's destination photo galleries.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "description": "The parts of a row to return, comma-separated, dotted for nested ones and applied to every row: title,chat.chatId,travelersTrip.travelersTripId. A leading - removes one. Omitted, a row carries everything but the trip's destination photo galleries.",
              "type": "string"
            }
          },
          {
            "description": "Which of the caller's own chats to include: active (the default) leaves out the ones they archived, archived lists only those, all lists both. Only applies to scope=mine.",
            "in": "query",
            "name": "includeChat",
            "required": false,
            "schema": {
              "description": "Which of the caller's own chats to include: active (the default) leaves out the ones they archived, archived lists only those, all lists both. Only applies to scope=mine.",
              "type": "string",
              "enum": [
                "all",
                "active",
                "archived"
              ]
            }
          },
          {
            "description": "Whose chats to list: mine (the default), the caller's own chats, for every role; company, the whole agency's trip chats, for its admins; all, every trip chat on the platform, for Nicer staff. A broader scope than the caller may read answers 403.",
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "description": "Whose chats to list: mine (the default), the caller's own chats, for every role; company, the whole agency's trip chats, for its admins; all, every trip chat on the platform, for Nicer staff. A broader scope than the caller may read answers 403.",
              "type": "string",
              "enum": [
                "mine",
                "company",
                "all"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List chats in the caller's inbox",
        "tags": [
          "Chat"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.chat.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer chat list"
          }
        ]
      }
    },
    "/chat/{chatId}": {
      "get": {
        "x-forge-group-name": "chat",
        "x-forge-method-name": "get",
        "description": "Returns the chat view, a page of messages with per-participant seen flags, and the user records of participants, past authors and synthetic system senders, and marks the chat read for the caller. The caller must have access to the channel.",
        "operationId": "chat.get",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many messages a page holds, the latest ones: 20 when absent, zero or not a number.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many messages a page holds, the latest ones: 20 when absent, zero or not a number.",
              "type": "string"
            }
          },
          {
            "description": "The nextToken of the previous page, to read older messages.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the previous page, to read older messages.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SingleChatResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a chat with messages and users",
        "tags": [
          "Chat"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.chat.get({\n  \"chatId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer chat get --chat-id 'string'"
          }
        ]
      }
    },
    "/chat/{chatId}/reply": {
      "post": {
        "x-forge-group-name": "chat",
        "x-forge-method-name": "reply",
        "description": "Appends a message, text and/or attachment URLs, to the chat, updates the channel's last-message time and the author's read mark, and emits a conversation-created event. Requires message text or at least one asset; assets must be reachable HTTPS URLs and text is capped at 10,000 characters. Returns the stored row with HTML stripped from the plain text and a rendered HTML copy.",
        "operationId": "chat.reply",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatReplyBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatConversation"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Post a message to a chat",
        "tags": [
          "Chat"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.chat.reply({\n  \"chatId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer chat reply --chat-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/chat/{chatId}/toggle-archive": {
      "post": {
        "x-forge-group-name": "chat",
        "x-forge-method-name": "toggleArchive",
        "description": "Sets the caller's own archive flag: on a trip chat it updates the caller's trip membership row, on a direct chat it adds or removes the caller in the archived-by set. Other participants are unaffected. The caller must be a participant. Echoes the requested state back.",
        "operationId": "chat.toggleArchive",
        "parameters": [
          {
            "in": "path",
            "name": "chatId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatToggleArchiveBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatToggleArchiveResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Archive or unarchive a chat",
        "tags": [
          "Chat"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.chat.toggleArchive({\n  \"chatId\": \"string\",\n  \"isArchived\": true\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer chat toggle-archive --chat-id 'string' --input - <<'JSON'\n{\n  \"isArchived\": true\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/audit-events": {
      "get": {
        "x-forge-group-name": "commerce.auditEvents",
        "x-forge-method-name": "list",
        "description": "The company's commission audit trail, newest first (25 by default, at most 100, keyset-paged by when each row was written): every write and every audited read, with who acted, from where, what changed (a personal field only as changed, never its value) and why. `subjectKind` and `subjectId` together answer one record's Activity tab; `actorUserId`, `action`, `from` and `to` narrow the staff audit search. Agency admins read their own company; finance staff read any, and each of their reads is audited.",
        "operationId": "commerce.auditEvents.list",
        "parameters": [
          {
            "in": "query",
            "name": "action",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "actorUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "subjectId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "subjectKind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "AGENCY_IDENTIFIER",
                "ALLOCATION",
                "AUDIT_TRAIL",
                "COMMISSION_FILE",
                "COMMISSION_INVOICE",
                "COMMISSION_ITEM",
                "COMMISSION_SETTINGS",
                "COMPANY",
                "EXPORT",
                "EXTERNAL_BOOKING",
                "HOST_RELATIONSHIP",
                "ORDER",
                "PAYEE",
                "PAYOUT",
                "PAYOUT_RUN",
                "REMITTANCE",
                "REMITTANCE_LINE",
                "SPLIT_PLAN",
                "STATEMENT",
                "SUPPLIER"
              ]
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceAuditEventsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List audit events",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.auditEvents.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce audit-events list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/checkouts": {
      "post": {
        "x-forge-group-name": "commerce.checkouts",
        "x-forge-method-name": "create",
        "description": "Turns a live search offer into an unpaid order: it re-validates the offer with the provider, prices it, and creates the order on the trip; `paymentUrl` is null, and `createPaymentLink` makes the link. Nothing is paid, held or reserved. Calling it twice for the same offer on the same trip returns the same order rather than a second one — the key is the offer and the trip, so no caller has to invent one. `status` is `OK` with the order, `PRICE_CHANGED` when the provider now charges something else (search again and use the new offer), or `UNAVAILABLE` when the offer is gone.",
        "operationId": "commerce.checkouts.create",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCheckoutsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCheckoutsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Prepare an unpaid checkout from an offer",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.checkouts.create({\n  \"offerReference\": \"string\",\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce checkouts create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"offerReference\": \"string\",\n  \"travelersTripId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/commission-exports": {
      "post": {
        "x-forge-group-name": "commerce.commissionExports",
        "x-forge-method-name": "create",
        "description": "Queues an export of a commission list (items, payments, remittances, statements, suppliers, payees, payouts, commission invoices or earnings) as CSV, XLSX or PDF, with a preset or ad-hoc columns, or AGENCY: everything of the company in one ZIP archive, `<company> commission <YYYY-MM-DD>.zip`, with a CSV file of each list holding all of its columns (AGENCY takes nothing but its subject); and answers it QUEUED. A Rust worker pages through the rows and streams them to the file; GET the export until it is READY to receive a link that works for 15 minutes. The file is kept 7 days. Advisors export their own bookings and statements; agency admins and finance staff anything of the company (payees never with a legal name). Columns must belong to the subject (400), CSV holds 2,000,000 rows (so does each file of an archive), XLSX 1,048,575, PDF 10,000 and an archive 4 GiB (the export fails COMMISSION_EXPORT_TOO_LARGE past them). A company may have 3 exports queued or running, an archive counting as one (429 COMMISSION_RATE_LIMITED). The request and its filter are audited.",
        "operationId": "commerce.commissionExports.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCommissionExportsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionExport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Export a commission list",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionExports.create({\n  \"subject\": \"COMMISSION_ITEMS\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-exports create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"subject\": \"COMMISSION_ITEMS\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "commerce.commissionExports",
        "x-forge-method-name": "list",
        "description": "The company's exports, newest first (25 by default, at most 100, keyset-paged), without download links. Advisors see the exports they requested; agency admins and finance staff all of the company's.",
        "operationId": "commerce.commissionExports.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCommissionExportsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List commission exports",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionExports.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-exports list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-exports/{exportId}": {
      "get": {
        "x-forge-group-name": "commerce.commissionExports",
        "x-forge-method-name": "get",
        "description": "One export and its progress. While READY, each read signs a download link that works for 15 minutes and records the download in the audit log; after 7 days the export answers EXPIRED without a link. Advisors read the exports they requested; agency admins and finance staff any export of the company. Another company's export answers 404.",
        "operationId": "commerce.commissionExports.get",
        "parameters": [
          {
            "in": "path",
            "name": "exportId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionExport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a commission export",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionExports.get({\n  \"exportId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-exports get --export-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-imports": {
      "post": {
        "x-forge-group-name": "commerce.commissionImports",
        "x-forge-method-name": "create",
        "description": "Registers a file of bookings made elsewhere (CSV, TSV, TXT or XLSX, up to 100 MiB) and answers a presigned upload. Once S3 has the file, a worker reads it (status PARSING, then READY with the column names and the rows as the mapping reads them). The same file twice answers 409 COMMISSION_FILE_ALREADY_IMPORTED. Poll `GET /commission-imports/{importId}`. Admins may map the emails a file names to members (`advisors`).",
        "operationId": "commerce.commissionImports.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCommissionImportsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCommissionImportsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Import a file of bookings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionImports.create({\n  \"fileName\": \"string\",\n  \"format\": \"CSV\",\n  \"sha256\": \"string\",\n  \"sizeBytes\": 1\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-imports create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"fileName\": \"string\",\n  \"format\": \"CSV\",\n  \"sha256\": \"string\",\n  \"sizeBytes\": 1\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/commission-imports/{importId}": {
      "get": {
        "x-forge-group-name": "commerce.commissionImports",
        "x-forge-method-name": "get",
        "description": "An import with a page of its rows (50 by default, at most 200, in file order; `status` keeps one kind of row): the cells as read (cleared once the import is committed), the values the mapping makes of them, and why a row is invalid or a duplicate. An advisor gets their own imports only, and of the emails mapped to members (`advisors`) only those mapped to them. Another company's import answers 404.",
        "operationId": "commerce.commissionImports.get",
        "parameters": [
          {
            "in": "path",
            "name": "importId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/ImportRowStatus"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCommissionImportsGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an import of bookings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionImports.get({\n  \"importId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-imports get --import-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-imports/{importId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.commissionImports.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run an action on an import of bookings. This may delete or overwrite what is there.",
        "description": "APPLY_MAPPING re-reads the rows with a new mapping (status PARSING, then READY); MAP_ADVISORS (admins and staff) replaces the emails-to-members map and re-reads the rows; SAVE_PRESET keeps the mapping for the company's next files; COMMIT creates one booking made elsewhere with its commission item per valid row, as a resumable job (status COMMITTING, then COMMITTED; duplicates are skipped and counted; a commit that failed stays COMMITTING and resumes when COMMIT is asked again); DISCARD drops a file that was not committed. Each action is audited.",
        "operationId": "commerce.commissionImports.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "importId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCommissionImportsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionImport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run an action on an import of bookings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionImports.actions.create({\n  \"importId\": \"string\",\n  \"mapping\": {\n    \"columns\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"defaults\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"dateFormat\": \"ISO\",\n    \"decimalSeparator\": \".\",\n    \"headerRow\": 1,\n    \"sheet\": \"string\"\n  },\n  \"type\": \"APPLY_MAPPING\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-imports actions create --import-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"mapping\": {\n    \"columns\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"defaults\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"dateFormat\": \"ISO\",\n    \"decimalSeparator\": \".\",\n    \"headerRow\": 1,\n    \"sheet\": \"string\"\n  },\n  \"type\": \"APPLY_MAPPING\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/commission-invoices": {
      "post": {
        "x-forge-group-name": "commerce.commissionInvoices",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Issue a commission invoice. This may delete or overwrite what is there.",
        "description": "Issues a default (one item) or combined (many items) commission invoice of the company that receives the commission: to the supplier (its balance, the estimate or the gross of each item) or to the client. Every item is the company's to receive, in one currency, and a supplier invoice names one supplier (422 COMMISSION_INVOICE_ITEMS otherwise). `replacesInvoiceId` issues the next version of an invoice. The PDF is rendered right after; the invoice answers its link once ready. Agency admins and finance staff.",
        "operationId": "commerce.commissionInvoices.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCommissionInvoicesCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionInvoiceDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Issue a commission invoice",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionInvoices.create({\n  \"amountBasis\": \"BALANCE\",\n  \"commissionItemIds\": [\n    \"string\"\n  ],\n  \"kind\": \"SUPPLIER\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-invoices create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"amountBasis\": \"BALANCE\",\n  \"commissionItemIds\": [\n    \"string\"\n  ],\n  \"kind\": \"SUPPLIER\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/commission-invoices/{invoiceId}": {
      "get": {
        "x-forge-group-name": "commerce.commissionInvoices",
        "x-forge-method-name": "get",
        "description": "One commission invoice with its lines and a link to its PDF signed for minutes (null until rendered). Agency admins and finance staff; another company's invoice answers 404; every staff read is audited.",
        "operationId": "commerce.commissionInvoices.get",
        "parameters": [
          {
            "in": "path",
            "name": "invoiceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionInvoiceDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a commission invoice",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionInvoices.get({\n  \"invoiceId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-invoices get --invoice-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-overview": {
      "get": {
        "x-forge-group-name": "commerce.commissionOverview",
        "x-forge-method-name": "list",
        "description": "Everything one company's commission tracking holds, in one read: how it is set up (settings, identifiers, the host relationships and split plan assignments in force today, how many payees can be paid out), the current year's production, what suppliers owe today with its aging and the ten suppliers that owe the most, the money received in the last 90 days and the lines still to reconcile, what it owes its payees and the ten owed the most, its statements by status and the next cycle day, the payouts of the last 90 days, and its files in progress or failed. Amounts are integer minor units, per currency; the receivables, the money received and the production also come in the reporting currency (`reporting…` fields, US dollars: each booking at its rate frozen when it was paid, today's until then, and the commission of a paid one what it received). A hosted member's money is received and reconciled by its host: its own remittances count here, and its items' received amounts show what arrived through the host. Admins of the company, and Nicer staff for any company they name in `x-nicer-company` (each staff read is audited).",
        "operationId": "commerce.commissionOverview.list",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionOverview"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a company's commission overview",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionOverview.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-overview list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-reports/{reportKind}": {
      "get": {
        "x-forge-group-name": "commerce.commissionReports",
        "x-forge-method-name": "get",
        "description": "A commission report of the company, keyset-paged (50 rows by default, at most 200), with totals per currency over the whole report. PRODUCTION_BY_SUPPLIER, PRODUCTION_BY_ADVISOR and PRODUCTION_BY_DESTINATION (by the supplier's country) add up the items of whole months, by when their travel ends (`basis` TRAVEL_END, the default), starts (TRAVEL_START, Sion's Check In) or they were booked (BOOKED, Sion's Created At), as they stand when read (an item booked with a supplier since merged counts under the survivor), largest expected first; PRODUCTION_BY_CLIENT reads the items by client name; RECEIVABLES_AGING is what suppliers owe today by aging bucket, largest balance first; RECONCILIATION_EXCEPTIONS lists unmatched and pending-review lines, overpaid items and pending claims, newest first; SUPPLIER_DIRECTORY lists every supplier the company sees (Nicer's shared directory and its own, merged ones under their survivor), first those with items in the period's whole months by revenue in the reporting currency (US dollars), then the others by name, filtered by name, supplier kind, verification, country and city, preferred programs and agency identifiers, with the totals of the period it compares with (`compare`: PREVIOUS_PERIOD, the default, the same number of whole months just before; SAME_PERIOD_LAST_YEAR the same days a year earlier; NONE none), and an exact count of the suppliers up to 10,000. Production and receivables rows also carry their amounts in the reporting currency (`reporting…`) and the report its `reportingTotals`, every currency added up, in `reportingCurrency`, counted as Sion counts them: each item converts on its own and rounds half up, its revenue at its frozen rate (the check-out day's, frozen when its first money arrived or it was written off; the latest rate on or before today until then), its commission what it received once paid (dollars as they arrived), else its expected amount at today's rate. An item that needs today's rate in a currency with none is left out, its row reads null and its currency is in `unconvertedCurrencies`. The period is the current year unless `from` or `to` is given. Advisors read production, receivables and the directory of their own bookings only; the other reports are for agency admins and finance staff (403 otherwise); a parameter the report does not take answers 400. Finance staff may read any company, audited.",
        "operationId": "commerce.commissionReports.get",
        "parameters": [
          {
            "in": "path",
            "name": "reportKind",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "advisorUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "basis",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "TRAVEL_END",
                "BOOKED",
                "TRAVEL_START"
              ]
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "city",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          {
            "in": "query",
            "name": "compare",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/PeriodComparison"
            }
          },
          {
            "in": "query",
            "name": "countryCode",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^[A-Z]{2}$"
            }
          },
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "exception",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "hasBookings",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "identifierId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "programId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "in": "query",
            "name": "supplierId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "supplierKind",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "verified",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionReport"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a commission report",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionReports.get({\n  \"reportKind\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-reports get --report-kind 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-settings": {
      "get": {
        "x-forge-group-name": "commerce.commissionSettings",
        "x-forge-method-name": "list",
        "description": "The company's commission settings (the default payment term, paid tolerance, archive rules, payouts, whether the GDS reservation import records commission, whether its members may use commission tracking, version), its agency identifiers with payment instructions, the host relationships it is part of (memberships, from one day until another), its split plans with their rules and its current and future assignments (to itself, its advisors and its members), and the import and export presets it may use (built in and its own). A company that never wrote a commission answers the defaults. Admins and staff.",
        "operationId": "commerce.commissionSettings.list",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionSettingsDocument"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get commission settings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionSettings.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-settings list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commission-settings/actions": {
      "post": {
        "x-forge-group-name": "commerce.commissionSettings.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Save commission settings. This may delete or overwrite what is there.",
        "description": "Saves one section of the company's commission settings against the version the caller read (SAVE_TERMS, SAVE_ARCHIVE_RULES, SAVE_PAYOUTS — enabling payout transfers is staff work — and SAVE_GDS_IMPORT — whether the GDS reservation import records the commission of the reservations it finds, also staff work — and SAVE_TRACKING — whether the agency's members may use commission tracking at all, staff work too), creates, edits or removes an agency identifier (SAVE_IDENTIFIER, REMOVE_IDENTIFIER — a real IATA, ARC, CLIA, TIDS or TRUE number has one owner), for staff links a member company to a host's identifier from one day until another, the end exclusive, or ends or suspends the link by setting that end (SAVE_HOST_RELATIONSHIP), or manages split plans: CREATE_SPLIT_PLAN writes a plan with its rules, which never change (to change shares or the markup, create another plan and assign it from a day): SHARE rules split money received, a MARKUP rule sets the rate Nicer charges over a net-rate hotel's price (15 % when no plan sets one); ASSIGN_SPLIT_PLAN applies a plan, or none, from a date to the company itself, one advisor or, for staff, a member company the host hosts that day. An advisor's own plan answers before the company's, the markup and each share on their own. SAVE_EXPORT_PRESET keeps an export's columns under a name (replacing the company's preset of that name; an import preset is saved from a mapped file, with SAVE_PRESET on its import or remittance batch), REMOVE_IMPORT_PRESET and REMOVE_EXPORT_PRESET delete one of the company's own (built-in presets cannot be removed: 404). Returns the whole settings document. Admins and staff.",
        "operationId": "commerce.commissionSettings.actions.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCommissionSettingsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionSettingsDocument"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save commission settings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissionSettings.actions.create({\n  \"defaultPaymentTermDays\": 730,\n  \"expectedVersion\": 9007199254740991,\n  \"paidToleranceMinor\": 100000,\n  \"type\": \"SAVE_TERMS\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commission-settings actions create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"defaultPaymentTermDays\": 730,\n  \"expectedVersion\": 9007199254740991,\n  \"paidToleranceMinor\": 100000,\n  \"type\": \"SAVE_TERMS\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/commissions": {
      "get": {
        "x-forge-group-name": "commerce.commissions",
        "x-forge-method-name": "list",
        "description": "The commission list of every booking, whatever its source (Nicer checkout, GDS import, booked elsewhere, file import), with status, balance, due date and aging from `commission_item_status`. Keyset-paged on the date field (travel end by default), newest first; 25 per page, at most 100. Advisors see their own bookings; admins the agency's; `view=RECEIVABLES` lists what the agency receives as the owner of the identifier (a host sees its members' items; admins and staff). Finance staff may read any company, audited.",
        "operationId": "commerce.commissions.list",
        "parameters": [
          {
            "in": "query",
            "name": "advisorUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "agingBucket",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "dateField",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "TRAVEL_END",
                "TRAVEL_START",
                "BOOKED",
                "DUE"
              ]
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "identifierId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "needsReview",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "supplierId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "BOOKINGS",
                "RECEIVABLES"
              ]
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCommissionsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List commission items",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissions.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commissions list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commissions/{commissionItemId}": {
      "get": {
        "x-forge-group-name": "commerce.commissions",
        "x-forge-method-name": "get",
        "description": "One commission item: its status and money, the booking facts, the identifier it was booked under, every revision, notes, attachments, and the actions the caller may run now. An advisor reads their own items; an admin the agency's, and a host the items it receives money for. Another company's item answers 404.",
        "operationId": "commerce.commissions.get",
        "parameters": [
          {
            "in": "path",
            "name": "commissionItemId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionItemDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a commission item",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissions.get({\n  \"commissionItemId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commissions get --commission-item-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commissions/{commissionItemId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.commissions.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run an action on a commission item. This may delete or overwrite what is there.",
        "description": "One action on a commission item. Advisors (on their own items), admins and staff: CHANGE_EXPECTED (on an item of a Nicer checkout it also clears `needsReview`, which such an item carries when its provider marked the rate commissionable without an amount), CHANGE_DATES (the due date follows unless it was set by hand; an item of a booking made elsewhere takes its dates from the booking's PUT, and this answers 400), SET_DUE_DATE, CANCEL, REOPEN a cancellation, CONFIRM_IMPORTED (an imported item only; a Nicer checkout item answers 409 COMMISSION_ITEM_NOT_IMPORTED), SET_FLAG, ADD_NOTE, SET_TAGS, ADD_ATTACHMENT (answers a presigned upload), REPORT_MISSING (after travel, while money is owed: the item is flagged and the note joins its notes, for whoever chases the supplier; 409 COMMISSION_ITEM_NOT_CHASEABLE otherwise). Admins and staff: SET_COMMISSIONABLE (making a Nicer checkout item commissionable with nothing expected or received puts it in review, for its amount to be entered), WRITE_OFF, REOPEN a write-off, REASSIGN_ADVISOR. Changes to money, dates and parties send the `expectationVersion` read and write a revision; a newer change answers 409 COMMISSION_RECORD_CHANGED, a cancelled or written-off item 409 COMMISSION_ITEM_CLOSED, a new identifier once money arrived 409 COMMISSION_IDENTIFIER_LOCKED. An item Nicer collected (`collectedByNicer`: a planning fee, a Smith hotel) takes only SET_FLAG, ADD_NOTE, SET_TAGS and ADD_ATTACHMENT; anything else answers 409 COMMISSION_ITEM_NICER_COLLECTED.",
        "operationId": "commerce.commissions.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "commissionItemId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceCommissionsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCommissionsActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run an action on a commission item",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissions.actions.create({\n  \"commissionItemId\": \"string\",\n  \"expectationVersion\": 9007199254740991,\n  \"reason\": \"string\",\n  \"type\": \"CHANGE_EXPECTED\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commissions actions create --commission-item-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"expectationVersion\": 9007199254740991,\n  \"reason\": \"string\",\n  \"type\": \"CHANGE_EXPECTED\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/commissions/advisors": {
      "get": {
        "x-forge-group-name": "commerce.commissions.advisors",
        "x-forge-method-name": "list",
        "description": "Distinct advisor user IDs with at least one booking in the requested commission view, across all dates. Use these IDs to filter the advisor roster. Access follows the commission list: advisors see only their own ID, and receivables require an admin. IDs are ordered ascending, with 25 per page by default and 100 at most.",
        "operationId": "commerce.commissions.advisors.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "BOOKINGS",
                "RECEIVABLES"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceCommissionsAdvisorsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List advisors with commission bookings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissions.advisors.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commissions advisors list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/commissions/summary": {
      "get": {
        "x-forge-group-name": "commerce.commissions.summary",
        "x-forge-method-name": "list",
        "description": "The commission dashboard for the same filter as the list: totals per currency (expected, received, balance, overdue, due in the next 30 days), counts and amounts by status and by aging bucket, and the ten suppliers that owe the most; and the same in the reporting currency (`reportingTotals`, `reportingByStatus` with the revenue, `reportingByAgingBucket`, `reportingTopSuppliers`, in `reportingCurrency`, US dollars, counted as Sion counts them: each item's revenue at its rate frozen when its first money arrived or it was written off, today's until then; its commission what it received once paid, else its expected amount at today's rate; items needing a rate their currency lacks are left out and named in `unconvertedCurrencies`). Without `from`/`to` the period is the current calendar year on the date field. Cancelled and written-off items count by status but not in balances; an item that earns nothing reads UPCOMING until its travel ends, then PAID.",
        "operationId": "commerce.commissions.summary.list",
        "parameters": [
          {
            "in": "query",
            "name": "advisorUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "agingBucket",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "category",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "dateField",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "TRAVEL_END",
                "TRAVEL_START",
                "BOOKED",
                "DUE"
              ]
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "identifierId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "needsReview",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          },
          {
            "in": "query",
            "name": "source",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "supplierId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CommissionTag"
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "BOOKINGS",
                "RECEIVABLES"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommissionSummary"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the commission summary",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.commissions.summary.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce commissions summary list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/external-bookings": {
      "post": {
        "x-forge-group-name": "commerce.externalBookings",
        "x-forge-method-name": "create",
        "description": "Records a booking made outside Nicer (with a cruise line, a DMC, another platform) and the commission items it earns, in one transaction with their audit rows. The supplier is one from the directory or a name; the identifier defaults to the agency's (a host's for a hosted agency); payment terms resolve from the item, the agency's terms with the supplier, the supplier, the category, then the agency default. The same supplier and confirmation as a booking already tracked answers 409 COMMISSION_DUPLICATE_BOOKING. An advisor books for themselves; admins and staff may name another advisor.",
        "operationId": "commerce.externalBookings.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceExternalBookingsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalBooking"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Record a booking made elsewhere",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.externalBookings.create({\n  \"category\": \"HOTEL\",\n  \"clientName\": \"string\",\n  \"confirmationNumber\": \"string\",\n  \"travelEnd\": \"2019-08-24\",\n  \"travelStart\": \"2019-08-24\",\n  \"currency\": \"string\",\n  \"grossMinor\": 9007199254740991,\n  \"items\": [\n    {\n      \"kind\": \"SUPPLIER_COMMISSION\"\n    }\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce external-bookings create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"category\": \"HOTEL\",\n  \"clientName\": \"string\",\n  \"confirmationNumber\": \"string\",\n  \"travelEnd\": \"2019-08-24\",\n  \"travelStart\": \"2019-08-24\",\n  \"currency\": \"string\",\n  \"grossMinor\": 9007199254740991,\n  \"items\": [\n    {\n      \"kind\": \"SUPPLIER_COMMISSION\"\n    }\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/external-bookings/{externalBookingId}": {
      "get": {
        "x-forge-group-name": "commerce.externalBookings",
        "x-forge-method-name": "get",
        "description": "A booking made elsewhere with its commission items: what the edit form loads. An advisor reads their own bookings; another company's booking answers 404.",
        "operationId": "commerce.externalBookings.get",
        "parameters": [
          {
            "in": "path",
            "name": "externalBookingId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalBooking"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a booking made elsewhere",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.externalBookings.get({\n  \"externalBookingId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce external-bookings get --external-booking-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "commerce.externalBookings",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Edit a booking made elsewhere. This may delete or overwrite what is there.",
        "description": "Edits the facts of a booking made elsewhere (supplier, confirmation, client, dates, quantity, identifier, advisor, trip) with the `bookingVersion` read and a reason. Every item of the booking follows in the same transaction, writing a revision; due dates move with the travel end unless they were set by hand. Money changes go through the item actions. A newer edit answers 409 COMMISSION_RECORD_CHANGED; a new identifier once money arrived 409 COMMISSION_IDENTIFIER_LOCKED.",
        "operationId": "commerce.externalBookings.update",
        "parameters": [
          {
            "in": "path",
            "name": "externalBookingId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceExternalBookingsUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExternalBooking"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Edit a booking made elsewhere",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.externalBookings.update({\n  \"externalBookingId\": \"string\",\n  \"category\": \"HOTEL\",\n  \"clientName\": \"string\",\n  \"confirmationNumber\": \"string\",\n  \"travelEnd\": \"2019-08-24\",\n  \"travelStart\": \"2019-08-24\",\n  \"bookingVersion\": 9007199254740991,\n  \"reason\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce external-bookings update --external-booking-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"category\": \"HOTEL\",\n  \"clientName\": \"string\",\n  \"confirmationNumber\": \"string\",\n  \"travelEnd\": \"2019-08-24\",\n  \"travelStart\": \"2019-08-24\",\n  \"bookingVersion\": 9007199254740991,\n  \"reason\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/external-payments": {
      "post": {
        "x-forge-group-name": "commerce.externalPayments",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Record or reverse an outside payment. This may delete or overwrite what is there.",
        "description": "Books a payment that happened outside the platform, by bank transfer, cash, cheque or card, against an order or an itinerary item, with a receipt asset and its checksum; or reverses a previously recorded one with a reason. Requires an authenticated company user and an `Idempotency-Key`.",
        "operationId": "commerce.externalPayments.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceExternalPaymentsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceExternalPaymentsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Record or reverse an outside payment",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.externalPayments.create({\n  \"amount\": {\n    \"amountMinor\": 100000000,\n    \"currency\": \"string\"\n  },\n  \"target\": {\n    \"kind\": \"ORDER\",\n    \"orderId\": \"string\"\n  },\n  \"paidAt\": \"2019-08-24T14:15:22Z\",\n  \"payee\": \"string\",\n  \"paymentMethod\": \"BANK_TRANSFER\",\n  \"providerReference\": \"string\",\n  \"purpose\": \"DEPOSIT\",\n  \"receipt\": {\n    \"assetKey\": \"string\",\n    \"checksumSha256\": \"string\"\n  },\n  \"type\": \"RECORD\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce external-payments create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"amount\": {\n    \"amountMinor\": 100000000,\n    \"currency\": \"string\"\n  },\n  \"target\": {\n    \"kind\": \"ORDER\",\n    \"orderId\": \"string\"\n  },\n  \"paidAt\": \"2019-08-24T14:15:22Z\",\n  \"payee\": \"string\",\n  \"paymentMethod\": \"BANK_TRANSFER\",\n  \"providerReference\": \"string\",\n  \"purpose\": \"DEPOSIT\",\n  \"receipt\": {\n    \"assetKey\": \"string\",\n    \"checksumSha256\": \"string\"\n  },\n  \"type\": \"RECORD\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/finance/balances": {
      "get": {
        "x-forge-group-name": "commerce.finance.balances",
        "x-forge-method-name": "list",
        "description": "Returns the company's ledger balances by beneficiary and currency, optionally narrowed to one beneficiary or to a beneficiary kind (advisor, company, traveler or the platform). A bucket below zero is money still owed: it counts as receivable, never as a negative balance. Advisors and travelers see their own; admins anyone's of the company, and Nicer staff anyone's of the company they name in `x-nicer-company` (each staff read is audited).",
        "operationId": "commerce.finance.balances.list",
        "parameters": [
          {
            "in": "query",
            "name": "beneficiaryId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "beneficiaryKind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ADVISOR",
                "COMPANY",
                "NICER",
                "TRAVELER"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceFinanceBalancesListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get account balances",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.finance.balances.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce finance balances list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/finance/earnings": {
      "get": {
        "x-forge-group-name": "commerce.finance.earnings",
        "x-forge-method-name": "list",
        "description": "Lists the company's earning entries, the last changed first, optionally filtered by beneficiary and status: a page of `limit` (50 by default, 200 at most), with `nextCursor` to send back as `cursor` while more remain. Advisors and travelers see their own; admins anyone's of the company, and Nicer staff anyone's of the company they name in `x-nicer-company` (each staff read is audited).",
        "operationId": "commerce.finance.earnings.list",
        "parameters": [
          {
            "in": "query",
            "name": "beneficiaryId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "PENDING",
                "AVAILABLE",
                "REVERSED"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceFinanceEarningsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List advisor earnings",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.finance.earnings.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce finance earnings list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/orders": {
      "post": {
        "x-forge-group-name": "commerce.orders",
        "x-forge-method-name": "create",
        "description": "Creates an order from a quote, a direct product, or a hotel, flight or car offer. Offers are revalidated, with one bounded retry for transient hotel-provider failures; optional trip context also updates the itinerary. Optional paymentLink creates checkout in this same request without charging or booking. Each new hotel checkout bypasses cached rates and uses the current price of the exact selected room and rate; a price-only change does not block checkout, where the final amount is shown before confirmation. With reviewChanges, hotel-condition changes or price changes outside hotel checkout return PRICE_CHANGED with the previous price, current quote and termsChanged, without creating an order. Continue with acceptedQuoteId and a new Idempotency-Key to revalidate exactly that reviewed offer. The quote must belong to this actor and source and remain active. Changes requiring review retain 409 BOOKING_PRICE_CHANGED for callers without reviewChanges. Requires an authenticated company user and an Idempotency-Key; replaying that key with the same body returns the original order and active link, and with a different body returns 409 COMMERCE_IDEMPOTENCY_CONFLICT. The order is cut like Get an order for a caller who is not its payer: payment.methods lists only the saved cards the creator may pay with, the funding and wallet of the card that paid reach Nicer staff only, and a payment's Stripe client secret is never sent.",
        "operationId": "commerce.orders.create",
        "parameters": [
          {
            "description": "Include masked hotel memberships and, on imported orders, supplier commission amounts that have no usable currency. The default response omits these fields. The caller's access rules apply to both views.",
            "in": "query",
            "name": "orderView",
            "required": false,
            "schema": {
              "description": "Include masked hotel memberships and, on imported orders, supplier commission amounts that have no usable currency. The default response omits these fields. The caller's access rules apply to both views.",
              "type": "string",
              "const": "extended"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceOrdersCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create an order from a selection",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.orders.create({\n  \"quoteId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"quoteId\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "commerce.orders",
        "x-forge-method-name": "list",
        "description": "Lists orders for the caller's company with filters for status, product kind, advisor, participant, payer, provider locator, trip, creation date range and free text, plus paging and sorting. The default view is the caller's own orders; the company view returns everyone's and requires the company name.",
        "operationId": "commerce.orders.list",
        "parameters": [
          {
            "in": "query",
            "name": "advisorIds",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "companyName",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "createdFrom",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "in": "query",
            "name": "createdTo",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 1500
            }
          },
          {
            "in": "query",
            "name": "hotelReference",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 500
            }
          },
          {
            "in": "query",
            "name": "includeTemporary",
            "required": false,
            "schema": {
              "default": "false",
              "type": "string",
              "enum": [
                "false",
                "true"
              ]
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 50,
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "originAirport",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 3
            }
          },
          {
            "in": "query",
            "name": "participantEmail",
            "required": false,
            "schema": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
            }
          },
          {
            "in": "query",
            "name": "participantPhone",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\+[1-9]\\d{7,14}$"
            }
          },
          {
            "in": "query",
            "name": "participantUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "payerEmail",
            "required": false,
            "schema": {
              "type": "string",
              "format": "email",
              "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
            }
          },
          {
            "in": "query",
            "name": "payerPhone",
            "required": false,
            "schema": {
              "type": "string",
              "pattern": "^\\+[1-9]\\d{7,14}$"
            }
          },
          {
            "in": "query",
            "name": "payerUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "page",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          {
            "in": "query",
            "name": "productKinds",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "providerLocator",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "search",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 200
            }
          },
          {
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "default": "createdAt_desc",
              "type": "string",
              "enum": [
                "createdAt_asc",
                "createdAt_desc"
              ]
            }
          },
          {
            "in": "query",
            "name": "statuses",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "travelersTripId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "view",
            "required": false,
            "schema": {
              "default": "self",
              "type": "string",
              "enum": [
                "self",
                "company"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List and filter orders",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.orders.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/orders/{orderId}": {
      "get": {
        "x-forge-group-name": "commerce.orders",
        "x-forge-method-name": "get",
        "description": "Returns the order with its items, participants, payment state and commercial terms. Reachable without a token so a traveler can open a checkout link, using a live, unrevoked capability for that exact order; authenticated callers need a relationship to the order or an eligible company role. Card data is cut by the server for each caller: everyone who may read the order gets each card's brand, last four digits and expiry; payment.methods lists only the saved cards the caller may pay with; the funding and wallet of the card that paid and a guarantee's holder name and contact go only to the order's payer and Nicer staff; the Stripe client secret of a payment waiting for an action goes only to the payer. The payer is a caller on the pay flow (through the order's payment link or checkout session) or the signed-in user the order records as its payer.",
        "operationId": "commerce.orders.get",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Include masked hotel memberships and, on imported orders, supplier commission amounts that have no usable currency. The default response omits these fields. The caller's access rules apply to both views.",
            "in": "query",
            "name": "orderView",
            "required": false,
            "schema": {
              "description": "Include masked hotel memberships and, on imported orders, supplier commission amounts that have no usable currency. The default response omits these fields. The caller's access rules apply to both views.",
              "type": "string",
              "const": "extended"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an order",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.commerce.orders.get({\n  \"orderId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders get --order-id 'string'"
          }
        ]
      }
    },
    "/commerce/orders/{orderId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.orders.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Submit checkout or create a payment link. This may delete or overwrite what is there.",
        "description": "Runs an authenticated order action. Requires a verified user session, access to the order and an Idempotency-Key. Payment links cannot create links or cancel reservations. Access covers the agency's admins, its advisors on orders they take part in, Nicer staff, and the order's travelers (payer, participants and the trip's people). Travelers may submit checkout, make links, renew, cancel an unpaid order and release a hold; cancelling a booked reservation is refused to them with 403 ERROR_DO_NOT_HAVE_PERMISSION, because it is cancelled with the supplier and refunded. A link meant for another person is made with audience TRAVELER: a SELF link signs whoever opens it in the first minute into the pay page as its creator. RENEW_CHECKOUT reprices an unpaid checkout past its window into a successor order and returns its payment link.",
        "operationId": "commerce.orders.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceOrdersActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Submit checkout or create a payment link",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY },\n});\n\nawait nicer.commerce.orders.actions.create({\n  \"orderId\": \"string\",\n  \"type\": \"EXCHANGE_CHECKOUT_SESSION\",\n  \"code\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders actions create --order-id 'string' --input - <<'JSON'\n{\n  \"type\": \"EXCHANGE_CHECKOUT_SESSION\",\n  \"code\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/orders/{orderId}/advisor": {
      "put": {
        "x-forge-group-name": "commerce.orders.advisor",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Assign an order's responsible advisor. This may delete or overwrite what is there.",
        "description": "Admin-only local assignment with revision checks and audit. Does not call a provider, change its DK, or transfer earned commissions.",
        "operationId": "commerce.orders.advisor.update",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceOrdersAdvisorUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersAdvisorUpdateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Assign an order's responsible advisor",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY },\n});\n\nawait nicer.commerce.orders.advisor.update({\n  \"orderId\": \"string\",\n  \"assignment\": {\n    \"mode\": \"INHERIT\"\n  },\n  \"expectedVersion\": 9007199254740991,\n  \"reason\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders advisor update --order-id 'string' --input - <<'JSON'\n{\n  \"assignment\": {\n    \"mode\": \"INHERIT\"\n  },\n  \"expectedVersion\": 9007199254740991,\n  \"reason\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/orders/{orderId}/checkout-actions": {
      "post": {
        "x-forge-group-name": "commerce.orders.checkoutActions",
        "x-forge-method-name": "create",
        "description": "The pay page's checkout actions on one order. The caller is whoever holds the order's payment link (its token as `Authorization: PaymentLink <token>` or `X-Payment-Link-Token`), a checkout session made from that link, or a signed-in person with access to the order; a link that expired without being revoked may still renew, within 24 hours of its end. SUBMIT_CHECKOUT commits the travelers and the accepted terms, and starts a flight's hold or a booking that needs no payment. CONFIRM_NICER_PAYMENT reports that a payment attempt of the order finished: an authorized or succeeded one sends the order on to be booked. Neither charges a card: `POST /commerce/orders/{orderId}/payments` does. RENEW_CHECKOUT renews expired payment access: an unpaid checkout is priced again into a successor order, and a held flight is verified with the provider and keeps the same order, reservation and payment deadline. EXCHANGE_CHECKOUT_SESSION trades the one-time code of a link its creator made for themselves for a checkout session in that person's name. Order management (payment links, cancellation) is not accepted here: it is `POST /commerce/orders/{orderId}/actions`. Requires an Idempotency-Key; at most 30 calls a minute from one address.",
        "operationId": "commerce.orders.checkoutActions.create",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceOrdersCheckoutActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Submit, confirm or renew a checkout",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY },\n});\n\nawait nicer.commerce.orders.checkoutActions.create({\n  \"orderId\": \"string\",\n  \"type\": \"EXCHANGE_CHECKOUT_SESSION\",\n  \"code\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders checkout-actions create --order-id 'string' --input - <<'JSON'\n{\n  \"type\": \"EXCHANGE_CHECKOUT_SESSION\",\n  \"code\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/orders/{orderId}/confirmation-emails": {
      "post": {
        "x-forge-group-name": "commerce.orders.confirmationEmails",
        "x-forge-method-name": "create",
        "description": "Queues the order's confirmation email to up to ten recipient addresses, deduplicated. Requires an advisor in the order's company and an `Idempotency-Key`, and is rate-limited per company. Returns how many recipients were queued.",
        "operationId": "commerce.orders.confirmationEmails.create",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceOrdersConfirmationEmailsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersConfirmationEmailsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Email an order confirmation",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.orders.confirmationEmails.create({\n  \"orderId\": \"string\",\n  \"emails\": [\n    \"user@example.com\"\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders confirmation-emails create --order-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"emails\": [\n    \"user@example.com\"\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/orders/{orderId}/payments": {
      "post": {
        "x-forge-group-name": "commerce.orders.payments",
        "x-forge-method-name": "create",
        "description": "Submits a payment attempt against the order and returns the outcome, including any next action the client must perform, such as card authentication. Requires an `Idempotency-Key`. Reachable without a token so a traveler can pay from a checkout link.",
        "operationId": "commerce.orders.payments.create",
        "parameters": [
          {
            "in": "path",
            "name": "orderId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceOrdersPaymentsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceOrdersPaymentsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Submit a payment for an order",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY },\n});\n\nawait nicer.commerce.orders.payments.create({\n  \"orderId\": \"string\",\n  \"method\": {\n    \"kind\": \"NEW\"\n  }\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce orders payments create --order-id 'string' --input - <<'JSON'\n{\n  \"method\": {\n    \"kind\": \"NEW\"\n  }\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/payees": {
      "get": {
        "x-forge-group-name": "commerce.payees",
        "x-forge-method-name": "list",
        "description": "The company's payees with their statement cycle, payout method, legal name, tax form, Stripe Connect status, next cycle date and the earnings no statement holds yet (keyset-paged by payee, at most 100). An advisor sees only themselves, with the defaults before anything is configured; agency admins and finance staff see every configured payee.",
        "operationId": "commerce.payees.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "payeeId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "payeeKind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ADVISOR",
                "COMPANY"
              ]
            }
          },
          {
            "in": "query",
            "name": "statementsEnabled",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommercePayeesListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List payees",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.payees.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payees list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/payees/{payeeId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.payees.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run a payee action. This may delete or overwrite what is there.",
        "description": "One action on a payee of the company (an advisor's user id, or the agency's company name). SAVE_SETTINGS (statement cycle — one to four days of the month, 31 for its last day —, statements on or off and from which date, minimum payout, payout method, legal name, tax form status) against the version read, agency admins and finance staff. START_STRIPE_ONBOARDING creates the payee's Stripe Connect Express account when it has none and answers a hosted onboarding link; REFRESH_STRIPE_ACCOUNT reads back whether Stripe lets it receive transfers. The payee runs these two for themselves; admins and staff for anyone. Returns the payee.",
        "operationId": "commerce.payees.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "payeeId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommercePayeesActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommercePayeesActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run a payee action",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.payees.actions.create({\n  \"payeeId\": \"string\",\n  \"payeeKind\": \"ADVISOR\",\n  \"cycleDays\": [\n    1\n  ],\n  \"expectedVersion\": 9007199254740991,\n  \"minimumPayoutMinor\": 100000000,\n  \"statementsEnabled\": true,\n  \"taxFormStatus\": \"MISSING\",\n  \"type\": \"SAVE_SETTINGS\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payees actions create --payee-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"payeeKind\": \"ADVISOR\",\n  \"cycleDays\": [\n    1\n  ],\n  \"expectedVersion\": 9007199254740991,\n  \"minimumPayoutMinor\": 100000000,\n  \"statementsEnabled\": true,\n  \"taxFormStatus\": \"MISSING\",\n  \"type\": \"SAVE_SETTINGS\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/payment-methods/actions": {
      "post": {
        "x-forge-group-name": "commerce.paymentMethods.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "List or set up payment methods. This may delete or overwrite what is there.",
        "description": "Runs a payment-method action: listing the stored methods the caller may use, starting a card setup, creating the link a client opens to authorize a card to the advisor who makes it, or revoking a saved card or an authorization. A verified user session and an Idempotency-Key are required. Repeating the same CREATE_TRIP_CARD_LINK request while the link is active returns its original URL and expiresAt. LIST omits private advisor notes unless the eligible advisor explicitly requests them.",
        "operationId": "commerce.paymentMethods.actions.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommercePaymentMethodsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommercePaymentMethodsActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List or set up payment methods",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY },\n});\n\nawait nicer.commerce.paymentMethods.actions.create({\n  \"type\": \"LIST\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payment-methods actions create --input - <<'JSON'\n{\n  \"type\": \"LIST\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/payment-methods/card-link": {
      "get": {
        "x-forge-group-name": "commerce.paymentMethods.cardLink",
        "x-forge-method-name": "list",
        "description": "Reads a live card authorization link before the card page shows consent: the exact statement the person accepts, when the link expires, and what completing it grants. Whoever holds the link may read it: its capability travels as `Authorization: PaymentLink <token>` or `X-Payment-Link-Token`, as on the completing route, and a signed-in caller changes nothing. Errors: 401 ERROR_AUTHENTICATION_REQUIRED without a capability; 404 COMMERCE_PAYMENT_METHOD_LINK_NOT_FOUND for a link that is missing, expired or revoked, or whose advisor is no longer an active advisor of the agency.",
        "operationId": "commerce.paymentMethods.cardLink.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommercePaymentMethodsCardLinkListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a card authorization link",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.commerce.paymentMethods.cardLink.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payment-methods card-link list"
          }
        ]
      }
    },
    "/commerce/payment-methods/complete-card-link": {
      "post": {
        "x-forge-group-name": "commerce.paymentMethods",
        "x-forge-method-name": "completeCardLink",
        "description": "Completes a single-use card authorization link with the card the card page has just stored: the body names that card (`paymentMethodId`) and echoes the exact statement the page showed, which must still be the link's. No card number travels on this route. Whoever holds the link may complete it: its capability travels as `Authorization: PaymentLink <token>` or `X-Payment-Link-Token`, and a link for a personal card also needs its owner signed in. The card is then authorized to whom the link names (the advisor who made it, its trip, or its owner), and the answer is COMPLETED with the card's paymentMethodId. Requires an Idempotency-Key. Errors: 401 ERROR_AUTHENTICATION_REQUIRED without a capability; 409 COMMERCE_PAYMENT_METHOD_CONSENT_CHANGED when the statement changed since the page showed it; 409 COMMERCE_PAYMENT_METHOD_LINK_CONSUMED for a link already completed with another card.",
        "operationId": "commerce.paymentMethods.completeCardLink",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommercePaymentMethodsCompleteCardLinkBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommercePaymentMethodsActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Complete a card authorization",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY },\n});\n\nawait nicer.commerce.paymentMethods.completeCardLink({\n  \"consentAccepted\": true,\n  \"consentCopy\": \"string\",\n  \"paymentMethodId\": \"string\",\n  \"type\": \"COMPLETE_TRIP_CARD_LINK\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payment-methods complete-card-link --input - <<'JSON'\n{\n  \"consentAccepted\": true,\n  \"consentCopy\": \"string\",\n  \"paymentMethodId\": \"string\",\n  \"type\": \"COMPLETE_TRIP_CARD_LINK\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/payout-runs": {
      "post": {
        "x-forge-group-name": "commerce.payoutRuns",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Create a payout run. This may delete or overwrite what is there.",
        "description": "Pays approved statements of payees paid by Stripe Connect: one payout per statement, then a job sends each as a Stripe Connect transfer from the platform balance (when the company has transfers enabled and the payee finished onboarding). A statement paid by check or by hand is recorded with MARK_PAID on the statement instead; a payee with another payout method answers 422 COMMISSION_PAYOUT_NOT_READY. Every payee needs a legal name and a tax form on file. A statement already in a live payout answers 409 COMMISSION_STATEMENT_ALREADY_PAID. Finance staff only. Poll `GET /payout-runs/{payoutRunId}`.",
        "operationId": "commerce.payoutRuns.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommercePayoutRunsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutRunDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a payout run",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.payoutRuns.create({\n  \"statementIds\": [\n    \"string\"\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payout-runs create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"statementIds\": [\n    \"string\"\n  ]\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "commerce.payoutRuns",
        "x-forge-method-name": "list",
        "description": "The company's payout runs, newest first (25 by default, at most 100, keyset-paged), with their status, payout count and totals paid and failed per currency. Agency admins and finance staff; staff reads are audited.",
        "operationId": "commerce.payoutRuns.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommercePayoutRunsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List payout runs",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.payoutRuns.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payout-runs list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/payout-runs/{payoutRunId}": {
      "get": {
        "x-forge-group-name": "commerce.payoutRuns",
        "x-forge-method-name": "get",
        "description": "One payout run with a page of its payouts (100 by default, at most 500): status, processor reference, failure reason, attempts; and the actions the caller may run. Another company's run answers 404. Agency admins and finance staff.",
        "operationId": "commerce.payoutRuns.get",
        "parameters": [
          {
            "in": "path",
            "name": "payoutRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutRunDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a payout run",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.payoutRuns.get({\n  \"payoutRunId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payout-runs get --payout-run-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/payout-runs/{payoutRunId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.payoutRuns.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run a payout run action. This may delete or overwrite what is there.",
        "description": "One action on a payout run. RETRY (finance staff) sends its failed payouts again: the transfer already made for a payout is looked up before a new one is made, so nothing is paid twice. CANCEL (agency admins and finance staff) drops pending or failed payouts once the run is not being sent (409 COMMISSION_PAYOUT_RUN_BUSY while it is), leaving their statements approved for another run or for MARK_PAID on the statement. Returns the run.",
        "operationId": "commerce.payoutRuns.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "payoutRunId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommercePayoutRunsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PayoutRunDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run a payout run action",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.payoutRuns.actions.create({\n  \"payoutRunId\": \"string\",\n  \"type\": \"RETRY\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce payout-runs actions create --payout-run-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"type\": \"RETRY\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/remittance-batches": {
      "post": {
        "x-forge-group-name": "commerce.remittanceBatches",
        "x-forge-method-name": "create",
        "description": "Registers a remittance file (CSV, TSV, TXT or XLSX, up to 100 MiB: a clearinghouse or chain statement, an EFT detail) and answers a presigned upload. Once S3 has the file, a worker reads it into draft remittances and lines and matches them (status PARSING, then READY); without a preset it stops at UPLOADED with the column names until APPLY_MAPPING. The same file twice answers 409 COMMISSION_FILE_ALREADY_IMPORTED. Poll `GET /remittance-batches/{batchId}`. Agency admins and finance staff.",
        "operationId": "commerce.remittanceBatches.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceRemittanceBatchesCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceRemittanceBatchesCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Upload a remittance file",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittanceBatches.create({\n  \"channel\": \"ARC\",\n  \"fileName\": \"string\",\n  \"format\": \"CSV\",\n  \"sha256\": \"string\",\n  \"sizeBytes\": 1\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittance-batches create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"channel\": \"ARC\",\n  \"fileName\": \"string\",\n  \"format\": \"CSV\",\n  \"sha256\": \"string\",\n  \"sizeBytes\": 1\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "commerce.remittanceBatches",
        "x-forge-method-name": "list",
        "description": "The company's remittance files, newest first (25 by default, at most 100, keyset-paged), each with its status and where its lines stand. Agency admins and finance staff.",
        "operationId": "commerce.remittanceBatches.list",
        "parameters": [
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceRemittanceBatchesListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List remittance files",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittanceBatches.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittance-batches list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/remittance-batches/{batchId}": {
      "get": {
        "x-forge-group-name": "commerce.remittanceBatches",
        "x-forge-method-name": "get",
        "description": "A remittance file with a page of its lines (50 by default, at most 200, in file order; `matchState` keeps the lines of the review tabs), each with the engine's proposals, the chosen match and, once reconciled, its allocations (a line the reconcile matched, excluded or found zero keeps only its chosen proposals, and no cells). Agency admins and finance staff; another company's file answers 404.",
        "operationId": "commerce.remittanceBatches.get",
        "parameters": [
          {
            "in": "path",
            "name": "batchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "matchState",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceRemittanceBatchesGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a remittance file",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittanceBatches.get({\n  \"batchId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittance-batches get --batch-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/remittance-batches/{batchId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.remittanceBatches.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run an action on a remittance file. This may delete or overwrite what is there.",
        "description": "Runs one action on a remittance file under review: APPLY_MAPPING (reads the file again), SAVE_PRESET, EDIT_LINE, EXCLUDE_LINE, INCLUDE_LINE, SET_MATCH (the items a line pays and how much), RESET_MATCHES, RERUN_MATCHING, RECONCILE (posts the money and allocates every chosen match as a resumable job), UNDO_RECONCILE (reverses every allocation and voids the remittances) and DISCARD (before reconciling). Jobs answer at once with `jobId`; poll the file (status COMMITTING while the reconcile runs, then COMMITTED; a reconcile that failed resumes when asked again). A file reconciled once cannot be reconciled again. Agency admins and finance staff; UNDO_RECONCILE Nicer staff only.",
        "operationId": "commerce.remittanceBatches.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "batchId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemittanceBatchAction"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceRemittanceBatchesActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run an action on a remittance file",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittanceBatches.actions.create({\n  \"batchId\": \"string\",\n  \"mapping\": {\n    \"columns\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"defaults\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"dateFormat\": \"ISO\",\n    \"decimalSeparator\": \".\",\n    \"headerRow\": 1,\n    \"sheet\": \"string\"\n  },\n  \"type\": \"APPLY_MAPPING\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittance-batches actions create --batch-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"mapping\": {\n    \"columns\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"defaults\": {\n      \"property1\": \"string\",\n      \"property2\": \"string\"\n    },\n    \"dateFormat\": \"ISO\",\n    \"decimalSeparator\": \".\",\n    \"headerRow\": 1,\n    \"sheet\": \"string\"\n  },\n  \"type\": \"APPLY_MAPPING\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/remittance-lines/{remittanceLineId}/claims": {
      "post": {
        "x-forge-group-name": "commerce.remittanceLines.claims",
        "x-forge-method-name": "create",
        "description": "Claims unmatched money for one of the caller's bookings (07-business-rules.md §12): a line of the caller's own company or of a host it is a member of, not archived for members, with money left. The receiving company approves or rejects the claim from the remittance. Advisors claim for their own bookings; a line the caller may not see answers 404.",
        "operationId": "commerce.remittanceLines.claims.create",
        "parameters": [
          {
            "in": "path",
            "name": "remittanceLineId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceRemittanceLinesClaimsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemittanceClaim"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Claim unmatched money",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittanceLines.claims.create({\n  \"remittanceLineId\": \"string\",\n  \"commissionItemId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittance-lines claims create --remittance-line-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"commissionItemId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/remittance-lines/{remittanceLineId}/suggestions": {
      "get": {
        "x-forge-group-name": "commerce.remittanceLines.suggestions",
        "x-forge-method-name": "list",
        "description": "The commission items a line most likely pays, scored now by the matching engine (07-business-rules.md §6): five by default, at most ten, each with its score, the points every feature added and the amount the line would give it. Agency admins and finance staff of the company that received the money.",
        "operationId": "commerce.remittanceLines.suggestions.list",
        "parameters": [
          {
            "in": "path",
            "name": "remittanceLineId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceRemittanceLinesSuggestionsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Suggest matches for a line",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittanceLines.suggestions.list({\n  \"remittanceLineId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittance-lines suggestions list --remittance-line-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/remittances": {
      "post": {
        "x-forge-group-name": "commerce.remittances",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Record a payment. This may delete or overwrite what is there.",
        "description": "Records a payment by hand: one remittance, posted, with up to 100 lines and where each line's money goes. One atomic write posts the deposit and its fee journal, the allocations, the earnings their split plan gives each party, the audit rows and the events; a line left unallocated stays claimable. Agency admins for the money they received, and finance staff.",
        "operationId": "commerce.remittances.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceRemittancesCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemittanceDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Record a payment",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittances.create({\n  \"channel\": \"ARC\",\n  \"currency\": \"string\",\n  \"lines\": [\n    {\n      \"amountMinor\": -9007199254740991\n    }\n  ],\n  \"payerKind\": \"SUPPLIER\",\n  \"receivedOn\": \"2019-08-24\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittances create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"channel\": \"ARC\",\n  \"currency\": \"string\",\n  \"lines\": [\n    {\n      \"amountMinor\": -9007199254740991\n    }\n  ],\n  \"payerKind\": \"SUPPLIER\",\n  \"receivedOn\": \"2019-08-24\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "commerce.remittances",
        "x-forge-method-name": "list",
        "description": "The money the company received, newest first (25 by default, at most 100, keyset-paged by received date): posted, duplicate and void remittances and the drafts of batches under review, with allocated and unallocated totals computed on read. Agency admins and finance staff; staff reads of another company are audited.",
        "operationId": "commerce.remittances.list",
        "parameters": [
          {
            "in": "query",
            "name": "batchId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "channel",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100
            }
          },
          {
            "in": "query",
            "name": "state",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "unallocated",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "true",
                "false"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceRemittancesListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List remittances",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittances.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittances list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/remittances/{remittanceId}": {
      "get": {
        "x-forge-group-name": "commerce.remittances",
        "x-forge-method-name": "get",
        "description": "One remittance with a page of its lines (100 by default, at most 500, in line order), each line's allocations and their frozen split, the claims on it, notes, tags and the actions the caller may run. Another company's remittance answers 404.",
        "operationId": "commerce.remittances.get",
        "parameters": [
          {
            "in": "path",
            "name": "remittanceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemittanceDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a remittance",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittances.get({\n  \"remittanceId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittances get --remittance-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/remittances/{remittanceId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.remittances.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run an action on a remittance. This may delete or overwrite what is there.",
        "description": "Runs one action on posted money: ALLOCATE a line's unallocated money to commission items, REVERSE_ALLOCATION (all or part; the earnings and journals reverse with it), MARK_DUPLICATE or VOID (every allocation is reversed and the deposit's journal mirrored), UNMARK_DUPLICATE, or APPROVE_CLAIM / REJECT_CLAIM a member's claim. Allocating answers 409 COMMISSION_ALLOCATION_EXCEEDS_LINE past the line and 409 COMMISSION_ALLOCATION_WRONG_RECEIVER for money owed to another company. Reversing, voiding and duplicates are finance staff only.",
        "operationId": "commerce.remittances.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "remittanceId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RemittanceAction"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemittanceDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run an action on a remittance",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.remittances.actions.create({\n  \"remittanceId\": \"string\",\n  \"allocations\": [\n    {\n      \"amountMinor\": 9007199254740991,\n      \"commissionItemId\": \"string\"\n    }\n  ],\n  \"remittanceLineId\": \"string\",\n  \"type\": \"ALLOCATE\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce remittances actions create --remittance-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"allocations\": [\n    {\n      \"amountMinor\": 9007199254740991,\n      \"commissionItemId\": \"string\"\n    }\n  ],\n  \"remittanceLineId\": \"string\",\n  \"type\": \"ALLOCATE\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/settings/actions": {
      "post": {
        "x-forge-group-name": "commerce.settings.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Save the commerce settlement. This may delete or overwrite what is there.",
        "description": "Nicer staff mutation on the company's Stripe settlement account, the account checkout collects into. Agency admins pass the route scope but are refused with 403 ERROR_DO_NOT_HAVE_PERMISSION. Uses `expectedVersion` for optimistic concurrency and returns the new version. Commission shares and the Smith markup are split plans, saved through `POST /commerce/commission-settings/actions` (CREATE_SPLIT_PLAN, ASSIGN_SPLIT_PLAN).",
        "operationId": "commerce.settings.actions.create",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceSettingsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceSettingsActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save the commerce settlement",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.settings.actions.create({\n  \"enabled\": true,\n  \"expectedVersion\": \"string\",\n  \"processorAccountReference\": \"string\",\n  \"settlementVersion\": \"string\",\n  \"type\": \"SAVE_STRIPE_SETTLEMENT\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce settings actions create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"enabled\": true,\n  \"expectedVersion\": \"string\",\n  \"processorAccountReference\": \"string\",\n  \"settlementVersion\": \"string\",\n  \"type\": \"SAVE_STRIPE_SETTLEMENT\"\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/statements": {
      "get": {
        "x-forge-group-name": "commerce.statements",
        "x-forge-method-name": "list",
        "description": "The company's payee statements, newest cycle first (25 by default, at most 100, keyset-paged by cycle date): number, payee, cycle date and period, status, earnings, adjustments and total. Advisors see their own; agency admins every payee of the company; finance staff any company, audited.",
        "operationId": "commerce.statements.list",
        "parameters": [
          {
            "in": "query",
            "name": "currency",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/CurrencyCode"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "from",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "payeeId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            }
          },
          {
            "in": "query",
            "name": "payeeKind",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ADVISOR",
                "COMPANY"
              ]
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "to",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceStatementsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List statements",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.statements.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce statements list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/statements/{statementId}": {
      "get": {
        "x-forge-group-name": "commerce.statements",
        "x-forge-method-name": "get",
        "description": "One statement with a page of its lines (100 by default, at most 500), each with the booking it was earned on, its adjustments and notes, its payout, a link to its PDF signed for minutes, and the actions the caller may run. An advisor reads only their own; another company's statement answers 404. Every staff read is audited.",
        "operationId": "commerce.statements.get",
        "parameters": [
          {
            "in": "path",
            "name": "statementId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 500
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatementDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a statement",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.statements.get({\n  \"statementId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce statements get --statement-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/statements/{statementId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.statements.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run a statement action. This may delete or overwrite what is there.",
        "description": "One action on a statement. ADD_ADJUSTMENT and REMOVE_ADJUSTMENT (a credit or debit, unit amount times quantity, with a description) and RECOMPUTE (picks again the earnings its period covers) while it is OPEN or PENDING_APPROVAL; CLOSE moves an OPEN statement to approval; REOPEN takes it back; APPROVE releases its earnings and makes it payable — a negative total, or one under the payee's minimum payout, is carried to the next statement; VOID cancels an unapproved statement and frees its earnings. MARK_PAID records that an approved statement was paid outside Nicer (a check, a wire, another system) in one step: the day, optionally how and a reference; it becomes PAID with its payout and journal (409 COMMISSION_STATEMENT_ALREADY_PAID once a payout run holds it). ADD_ATTACHMENT (any status but VOID) answers a presigned upload for a document such as the payment's receipt. ADD_NOTE (Markdown, as on an item) at any time. An approved statement accepts no other change (409 COMMISSION_STATEMENT_FINAL). The payee may add notes; agency admins and finance staff run the rest. Returns the statement and, for ADD_ATTACHMENT, its upload link.",
        "operationId": "commerce.statements.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "statementId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceStatementsActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceStatementsActionsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run a statement action",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.statements.actions.create({\n  \"statementId\": \"string\",\n  \"description\": \"string\",\n  \"kind\": \"CREDIT\",\n  \"quantity\": 1,\n  \"type\": \"ADD_ADJUSTMENT\",\n  \"unitAmountMinor\": 1\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce statements actions create --statement-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"description\": \"string\",\n  \"kind\": \"CREDIT\",\n  \"quantity\": 1,\n  \"type\": \"ADD_ADJUSTMENT\",\n  \"unitAmountMinor\": 1\n}\nJSON"
          }
        ]
      }
    },
    "/commerce/suppliers": {
      "post": {
        "x-forge-group-name": "commerce.suppliers",
        "x-forge-method-name": "create",
        "description": "Creates a supplier private to the company (or, for Nicer staff, one in the verified directory). With a Google place id it first answers the supplier that place already names, so a type-ahead miss never creates a duplicate. Returns the supplier as the company sees it.",
        "operationId": "commerce.suppliers.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceSuppliersCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupplierDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a supplier",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.suppliers.create({\n  \"kind\": \"PROPERTY\",\n  \"name\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce suppliers create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"kind\": \"PROPERTY\",\n  \"name\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "commerce.suppliers",
        "x-forge-method-name": "list",
        "description": "Type-ahead over Nicer's global supplier directory and the company's own suppliers, best match first, with Sabre Global Property IDs where available. When fewer than three fit a query of three characters or more and there is no strong Sabre match, it also suggests up to five Google places (lodging for PROPERTY, car rental for CAR_RENTAL). Creating a supplier with a suggestion's `googlePlaceId` reuses the supplier that place already names. Google failing or slow (1.5 s) answers no suggestions, never an error.",
        "operationId": "commerce.suppliers.list",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/SupplierKind"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommerceSuppliersListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search suppliers",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.suppliers.list({\n  \"q\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce suppliers list --q 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/suppliers/{supplierId}": {
      "get": {
        "x-forge-group-name": "commerce.suppliers",
        "x-forge-method-name": "get",
        "description": "One supplier as the company sees it: the shared profile, the company's own terms and contacts, preferred programs, other systems' ids, and what the company booked, received and is owed with it per currency. An advisor gets the production of the bookings attributed to them only. Another company's supplier answers 404.",
        "operationId": "commerce.suppliers.get",
        "parameters": [
          {
            "in": "path",
            "name": "supplierId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupplierDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a supplier",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.suppliers.get({\n  \"supplierId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce suppliers get --supplier-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/commerce/suppliers/{supplierId}/actions": {
      "post": {
        "x-forge-group-name": "commerce.suppliers.actions",
        "x-forge-method-name": "create",
        "x-forge-require-confirmation": "Run an action on a supplier. This may delete or overwrite what is there.",
        "description": "One action on a supplier: UPDATE its profile (agency admins, the company's own; global ones by staff), ADD_CONTACT / REMOVE_CONTACT, SET_PROGRAMS (staff), MERGE into another supplier (admins for their own, staff for global ones). Every action is audited and returns the supplier as the company sees it.",
        "operationId": "commerce.suppliers.actions.create",
        "parameters": [
          {
            "in": "path",
            "name": "supplierId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommerceSuppliersActionsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupplierDetail"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run an action on a supplier",
        "tags": [
          "Commerce"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.commerce.suppliers.actions.create({\n  \"supplierId\": \"string\",\n  \"expectedUpdatedAt\": \"2019-08-24T14:15:22Z\",\n  \"profile\": {\n    \"kind\": \"PROPERTY\",\n    \"name\": \"string\"\n  },\n  \"type\": \"UPDATE\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer commerce suppliers actions create --supplier-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"expectedUpdatedAt\": \"2019-08-24T14:15:22Z\",\n  \"profile\": {\n    \"kind\": \"PROPERTY\",\n    \"name\": \"string\"\n  },\n  \"type\": \"UPDATE\"\n}\nJSON"
          }
        ]
      }
    },
    "/community/auth": {
      "post": {
        "x-forge-group-name": "community",
        "x-forge-method-name": "auth",
        "description": "Opens a session with the realtime service behind the community for the caller: it names them, the agency the request acts for and the channels they are in, always with the agency-wide group, and answers the service's own reply, which holds a session token the portal's realtime client uses as it is. The session carries that agency's channels only. Any member of the agency may call it. Errors: 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.auth",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityAuthResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Open a realtime community session",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.auth();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community auth"
          }
        ]
      }
    },
    "/community/channels": {
      "post": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "create",
        "description": "Creates a channel in the agency's community and answers it with its memberCount. The creator is always a member; initialMemberIds adds people by userId, and autoJoin on a public channel adds everyone active in the agency. private makes it invite-only; writePolicy creator-only lets only the creator and the writers added later with PUT /community/channels/{channelId} post. Publishes app.CommunityChannel.created. Only the agency's admins may call it. Errors: 400 ERROR_UNAUTHORIZED for a caller who is not an admin, or for an initialMemberIds entry who is not an active member of the agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityChannelsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannel"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.create({\n  \"name\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels create --input - <<'JSON'\n{\n  \"name\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "list",
        "description": "Lists the channels of the agency's community that the caller can see: every public channel and the private ones they belong to, 30 a page unless limit says otherwise (100 at most); send the answer's nextCursor back as cursor for the next page, until it is absent. Channels here carry no memberCount. Any member of the agency the request acts for may call it: the x-nicer-company header names it, or the caller's only agency. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency; 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.",
        "operationId": "community.channels.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelPage"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List community channels",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels list"
          }
        ]
      }
    },
    "/community/channels/{channelId}": {
      "get": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "get",
        "description": "Returns one channel of the agency's community with its memberCount, the userIds of its members, and its writers: its creator (isCreator) and anyone granted posting on a creator-only channel. A public channel answers to anyone in the agency, a private one only to its members. Errors: 404 ERROR_ITEM_NOT_FOUND for a channel there is not; 400 ERROR_UNAUTHORIZED for a channel of another agency or a private channel the caller is not in; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.get",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelsGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.get({\n  \"channelId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels get --channel-id 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update a community channel. This may delete or overwrite what is there.",
        "description": "Changes a channel's name or description, or, on a creator-only channel, who may post (writersToAdd and writersToRemove, by userId), and answers the channel without a memberCount. Only the channel's creator or the agency's admins may call it. Errors: 400 ERROR_UNAUTHORIZED for any other caller, for writer changes on a channel where all members post, for removing the creator from the writers, for a writer who is not an active member of the agency, or for a channel of another agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.update",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityChannelsUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannel"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.update({\n  \"channelId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels update --channel-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/community/channels/{channelId}/archive": {
      "post": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "archive",
        "x-forge-require-confirmation": "Delete a community channel. This may delete or overwrite what is there.",
        "description": "Deletes one of the agency's channels for good, with its messages and its member list: nothing is archived, whatever the path says. Publishes app.CommunityChannel.archived and answers archived true. Only the agency's admins may call it. Errors: 400 ERROR_UNAUTHORIZED for a caller who is not an admin or a channel of another agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.archive",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelsArchiveResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.archive({\n  \"channelId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels archive --channel-id 'string'"
          }
        ]
      }
    },
    "/community/channels/{channelId}/join": {
      "post": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "join",
        "description": "Adds the caller to a public channel of the agency's community; joining a channel they are already in changes nothing and still answers joined true. A private channel cannot be joined: one of its members or an admin adds people with POST /community/channels/{channelId}/members. Any member of the agency may call it. Errors: 400 ERROR_UNAUTHORIZED for a private channel or a channel of another agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.join",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelsJoinResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Join a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.join({\n  \"channelId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels join --channel-id 'string'"
          }
        ]
      }
    },
    "/community/channels/{channelId}/leave": {
      "post": {
        "x-forge-group-name": "community.channels",
        "x-forge-method-name": "leave",
        "description": "Removes the caller from a channel of the agency's community and answers left true, also when they were not in it. Any member of the agency may call it. Errors: 400 ERROR_UNAUTHORIZED for a channel of another agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.leave",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelsLeaveResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Leave a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.leave({\n  \"channelId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels leave --channel-id 'string'"
          }
        ]
      }
    },
    "/community/channels/{channelId}/members": {
      "post": {
        "x-forge-group-name": "community.channels.members",
        "x-forge-method-name": "create",
        "description": "Adds people of the agency, by userId (500 at most), to a channel of its community and answers the channel's whole member list. Anyone in the agency may add to a public channel; a private one takes one of its members or an admin. Adding someone already in it changes nothing. Errors: 400 ERROR_UNAUTHORIZED for a caller who may not add to a private channel, for a channel of another agency, or for a userId who is not an active member of the agency, and then nobody is added; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.members.create",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityChannelsMembersCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelMembers"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add people to a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.members.create({\n  \"channelId\": \"string\",\n  \"userIds\": [\n    \"string\"\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels members create --channel-id 'string' --input - <<'JSON'\n{\n  \"userIds\": [\n    \"string\"\n  ]\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "community.channels.members",
        "x-forge-method-name": "list",
        "description": "Returns the userIds of everyone in one channel of the agency's community. A public channel answers to anyone in the agency, a private one only to its members. Errors: 404 ERROR_ITEM_NOT_FOUND for a channel there is not, a channel of another agency or a private channel the caller is not in; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.members.list",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelMembers"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a community channel's members",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.members.list({\n  \"channelId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels members list --channel-id 'string'"
          }
        ]
      }
    },
    "/community/channels/{channelId}/members/{userId}": {
      "delete": {
        "x-forge-group-name": "community.channels.members",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Remove someone from a community channel. This deletes it.",
        "description": "Removes one person (userId) from a channel of the agency's community and publishes app.CommunityChannelMember.removed. On a public channel only an admin removes someone else, and anyone may remove themselves; on a private channel any of its members or an admin may remove anyone. Errors: 400 ERROR_UNAUTHORIZED for a caller who may not, or for a channel of another agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.channels.members.delete",
        "parameters": [
          {
            "in": "path",
            "name": "channelId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelsMembersDeleteResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove someone from a community channel",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.members.delete({\n  \"channelId\": \"string\",\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels members delete --channel-id 'string' --user-id 'string'"
          }
        ]
      }
    },
    "/community/channels/browse": {
      "get": {
        "x-forge-group-name": "community.channels.browse",
        "x-forge-method-name": "list",
        "description": "Lists the agency's public channels, whether or not the caller is in them, to find one to join: 30 a page unless limit says otherwise (100 at most); send the answer's nextCursor back as cursor for the next page, until it is absent. Channels here carry no memberCount. Any member of the agency the request acts for may call it. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency; 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.",
        "operationId": "community.channels.browse.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityChannelPage"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List public community channels",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.channels.browse.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community channels browse list"
          }
        ]
      }
    },
    "/community/dm": {
      "post": {
        "x-forge-group-name": "community.dm",
        "x-forge-method-name": "create",
        "description": "Answers the direct-message conversation between the caller and the people in userIds, creating it when it does not exist yet: the same people always get the same conversation, so calling again never makes a second one. Every participant must be an active member of the agency the request acts for. Any member of the agency may call it. Errors: 400 ERROR_BODY_VALIDATION for a conversation with nobody but the caller; 400 ERROR_UNAUTHORIZED for a participant who is not an active member of the agency; 400 ERROR_COMPANY_REQUIRED and 403 ERROR_DO_NOT_HAVE_PERMISSION as on every community route.",
        "operationId": "community.dm.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CommunityDmCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityDm"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Open a community direct message",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.dm.create({\n  \"userIds\": [\n    \"string\"\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community dm create --input - <<'JSON'\n{\n  \"userIds\": [\n    \"string\"\n  ]\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "community.dm",
        "x-forge-method-name": "list",
        "description": "Lists the direct-message conversations the caller is in at the agency the request acts for, 30 a page unless limit says otherwise (100 at most); send the answer's nextCursor back as cursor for the next page, until it is absent. A conversation with fewer than two people is left out. Any member of the agency may call it. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency; 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.",
        "operationId": "community.dm.list",
        "parameters": [
          {
            "in": "query",
            "name": "cursor",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityDmListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List community direct messages",
        "tags": [
          "Community"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.community.dm.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer community dm list"
          }
        ]
      }
    },
    "/community/webhooks/liveblocks": {
      "post": {
        "x-forge-group-name": "community.webhooks.liveblocks",
        "x-forge-method-name": "create",
        "description": "Receives the events of the realtime service behind the community (new threads and comments, notifications, deleted rooms) and publishes them as community events. Only that service calls it: the handler verifies its signature over the raw request body and refuses anything that fails, so it is not anonymous.",
        "operationId": "community.webhooks.liveblocks.create",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CommunityWebhooksLiveblocksCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "webhookSignature": []
          }
        ],
        "summary": "Receive the community's realtime events",
        "tags": [
          "Community"
        ]
      }
    },
    "/config/{type}": {
      "post": {
        "x-forge-group-name": "config",
        "x-forge-method-name": "update",
        "description": "Creates a platform-wide config row of the given type; AppVersion is the only one. An AppVersion row is the version gate of one app (versionCode, `web` for the web apps): `isUnderMaintenance` puts every user of that app on a maintenance screen and `requiresUpdate` asks the native app to update. A row that already exists is never overwritten. Only Nicer staff may create an AppVersion row; an agency admin gets 403.",
        "operationId": "config.update",
        "parameters": [
          {
            "in": "path",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppVersion"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a platform config row",
        "tags": [
          "Company config"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.config.update({\n  \"type\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer config update --type 'string'"
          }
        ]
      }
    },
    "/config/{type}/{id}": {
      "get": {
        "x-forge-group-name": "config",
        "x-forge-method-name": "get",
        "description": "Returns one platform-wide config row by type and id; AppVersion is the only type, by versionCode (`web` for the web apps). The web apps and the native app read it to show a maintenance screen (`isUnderMaintenance`) or ask for an update (`requiresUpdate`). Any signed-in caller may read it.",
        "operationId": "config.get",
        "parameters": [
          {
            "in": "path",
            "name": "type",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AppVersion"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a platform config row",
        "tags": [
          "Company config"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.config.get({\n  \"type\": \"string\",\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer config get --type 'string' --id 'string'"
          }
        ]
      }
    },
    "/config/promotion": {
      "post": {
        "x-forge-group-name": "config.promotion",
        "x-forge-method-name": "create",
        "description": "Creates a promotion for the agency the request acts for from a title, description, images and button label, with an optional price, tag and date window, and answers it with its promotionId. It is saved as a draft unless status says otherwise; the agency, its author and its last editor come from the caller, never from the body. Only the agency's admins may call it. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency.",
        "operationId": "config.promotion.create",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigPromotionCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigPromotionCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a promotion",
        "tags": [
          "Company config"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.config.promotion.create({\n  \"buttonName\": \"string\",\n  \"description\": \"string\",\n  \"images\": [\n    \"string\"\n  ],\n  \"title\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer config promotion create --input - <<'JSON'\n{\n  \"buttonName\": \"string\",\n  \"description\": \"string\",\n  \"images\": [\n    \"string\"\n  ],\n  \"title\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "config.promotion",
        "x-forge-method-name": "list",
        "description": "Returns the promotions of the agency the request acts for, which its advisors see on the portal's Discover page. The agency's admins get every promotion, drafts and deactivated ones included; anyone else signed in to the agency, travelers included, gets only the published ones that have not ended. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency.",
        "operationId": "config.promotion.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigPromotionListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List promotions",
        "tags": [
          "Company config"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.config.promotion.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer config promotion list"
          }
        ]
      }
    },
    "/config/promotion/{promotionId}": {
      "delete": {
        "x-forge-group-name": "config.promotion",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Delete a promotion. This deletes it.",
        "description": "Deletes one of the agency's promotions for good and answers it as it was. Only the agency's admins may call it. Errors: 400 ERROR_COMPANY_REQUIRED for a request that names no agency.",
        "operationId": "config.promotion.delete",
        "parameters": [
          {
            "in": "path",
            "name": "promotionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigPromotionCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a promotion",
        "tags": [
          "Company config"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.config.promotion.delete({\n  \"promotionId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer config promotion delete --promotion-id 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "config.promotion",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update a promotion. This may delete or overwrite what is there.",
        "description": "Changes any of the editable fields of one of the agency's promotions, leaving the rest as they are, and answers the promotion as saved. Only the agency's admins may call it. Errors: 404 ERROR_ITEM_NOT_FOUND for a promotion the agency does not have; 400 ERROR_COMPANY_REQUIRED for a request that names no agency.",
        "operationId": "config.promotion.update",
        "parameters": [
          {
            "in": "path",
            "name": "promotionId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConfigPromotionUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ConfigPromotionCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a promotion",
        "tags": [
          "Company config"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.config.promotion.update({\n  \"promotionId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer config promotion update --promotion-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/crm/activity": {
      "get": {
        "x-forge-group-name": "crm.activity",
        "x-forge-method-name": "list",
        "description": "Returns what happened to one traveler (travelerId), newest first: changes in the CRM, notes and tasks, trips, bookings, payments, invitations, emails and itineraries sent. Each entry has its type, a one-line summary and the ids it is about in data, never the values that changed. 50 a page unless limit says otherwise; send the answer's nextToken back to read the next page, until it is null. Errors: 400 ERROR_INVALID_QUERY for a missing travelerId, a limit out of range or a nextToken of another list; 404 ERROR_ITEM_NOT_FOUND for a traveler the caller may not see.",
        "operationId": "crm.activity.list",
        "parameters": [
          {
            "description": "How many entries a page holds, 1 to 100; 50 when left out.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many entries a page holds, 1 to 100; 50 when left out.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "The nextToken of the page before, to read the next one; left out for the first page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the page before, to read the next one; left out for the first page.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "The traveler (TRV…) whose timeline to list.",
            "in": "query",
            "name": "travelerId",
            "required": true,
            "schema": {
              "description": "The traveler (TRV…) whose timeline to list.",
              "$ref": "#/components/schemas/TravelerId"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a traveler's timeline",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.activity.list({\n  \"travelerId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm activity list --traveler-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/crm/me": {
      "get": {
        "x-forge-group-name": "crm.me",
        "x-forge-method-name": "list",
        "description": "Returns the signed-in person's own traveler at the agency they act in, as they see and fill it; the family they may fill in for there; and the advisors who serve them at every agency, each with the name and photo of their Nicer account. The caller is a person signed in to Nicer, with their id token as Authorization: Bearer <token>. x-nicer-company names the agency; a person who belongs to one agency may leave it out. The answer holds only the caller's own records: traveler is null before they have one at that agency or when no agency is selected, family lists only the children, spouse or partner related to their traveler there who have no account of their own, and the traveler's documents come with their full numbers. A traveler without an account fills their profile through the profile form link an advisor sends instead. Errors: 401 when the token is missing or invalid, 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to.",
        "operationId": "crm.me.list",
        "parameters": [
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get my travel profile",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.crm.me.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm me list"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.me",
        "x-forge-method-name": "update",
        "description": "Saves the signed-in person's own traveler at the agency they act in, adding it on the first change, and the travelers of the children, spouse or partner they fill in for there, then answers as GET /crm/me does. The caller is a person signed in to Nicer, with their id token as Authorization: Bearer <token>; x-nicer-company names the agency, and a person who belongs to one agency may leave it out. They may change only the sections of TravelerSelfUpdate: identity, contact, documents, important dates and preferences, never the agency's own fields. Send each traveler's revision; the change that adds their own traveler needs name instead. The traveler is saved first and then each family member in the order sent: a refusal stops there and keeps what was saved before it. Errors: 400 ERROR_BODY_VALIDATION, 400 ERROR_COMPANY_REQUIRED without an agency, 401 when the token is missing or invalid, 403 ERROR_DO_NOT_HAVE_PERMISSION for an agency the caller does not belong to, 404 ERROR_ITEM_NOT_FOUND for a family member they may not fill in for, 409 CRM_REVISION_CONFLICT.",
        "operationId": "crm.me.update",
        "parameters": [
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MeUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update my travel profile",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.crm.me.update({});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm me update --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/crm/notes": {
      "post": {
        "x-forge-group-name": "crm.notes",
        "x-forge-method-name": "create",
        "description": "Adds a note about one traveler or one trip. Log a call, an email, a meeting or a message with its kind. Requires an Idempotency-Key header. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_IDEMPOTENCY_CONFLICT.",
        "operationId": "crm.notes.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoteCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Note"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a note",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.notes.create({\n  \"content\": \"Prefers an aisle seat on long flights.\",\n  \"travelerId\": \"TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm notes create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"content\": \"Prefers an aisle seat on long flights.\",\n  \"travelerId\": \"TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "crm.notes",
        "x-forge-method-name": "list",
        "description": "Lists the notes about one traveler (travelerId) or one trip (travelersTripId), newest first, 50 a page unless limit says otherwise; send the answer's nextToken back to read the next page, until it is null. A trip's notes are its staff's: its advisor of record and the agency's admins. Errors: 400 ERROR_INVALID_QUERY for neither or both of travelerId and travelersTripId, a limit out of range or a nextToken of another list; 404 ERROR_ITEM_NOT_FOUND for a traveler or trip the caller may not see.",
        "operationId": "crm.notes.list",
        "parameters": [
          {
            "description": "How many notes a page holds, 1 to 100; 50 when left out.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many notes a page holds, 1 to 100; 50 when left out.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "The nextToken of the page before, to read the next one; left out for the first page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the page before, to read the next one; left out for the first page.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "The traveler (TRV…) whose notes to list. Required unless travelersTripId is sent; never both.",
            "in": "query",
            "name": "travelerId",
            "required": false,
            "schema": {
              "description": "The traveler (TRV…) whose notes to list. Required unless travelersTripId is sent; never both.",
              "$ref": "#/components/schemas/TravelerId"
            }
          },
          {
            "description": "The trip (TT…) whose notes to list. Required unless travelerId is sent; never both.",
            "in": "query",
            "name": "travelersTripId",
            "required": false,
            "schema": {
              "description": "The trip (TT…) whose notes to list. Required unless travelerId is sent; never both.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NoteList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List notes",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.notes.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm notes list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/crm/notes/{noteId}": {
      "delete": {
        "x-forge-group-name": "crm.notes",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Delete a note. This deletes it.",
        "description": "Deletes a note for good and publishes crm.note-changed.v1 with action DELETED. Answers the note's id with deleted set to true; deleting it again answers 404. Errors: 404 ERROR_ITEM_NOT_FOUND for a note there is not, or about a traveler or trip the caller may not see.",
        "operationId": "crm.notes.delete",
        "parameters": [
          {
            "in": "path",
            "name": "noteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a note",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.notes.delete({\n  \"noteId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm notes delete --note-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.notes",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update a note. This may delete or overwrite what is there.",
        "description": "Replaces a note's text, kind or pin. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND.",
        "operationId": "crm.notes.update",
        "parameters": [
          {
            "in": "path",
            "name": "noteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NoteUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Note"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a note",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.notes.update({\n  \"noteId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm notes update --note-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/crm/profile-forms/{token}": {
      "get": {
        "x-forge-group-name": "crm.profileForms",
        "x-forge-method-name": "get",
        "description": "Opens the traveler a profile form link was sent for, without an account, with the name the agency presents itself with. The token is the link's secret. Errors: 404 ERROR_ITEM_NOT_FOUND for an unknown or expired link.",
        "operationId": "crm.profileForms.get",
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileForm"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Open a profile form",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.crm.profileForms.get({\n  \"token\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm profile-forms get --token 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.profileForms",
        "x-forge-method-name": "update",
        "description": "Saves what the traveler filled in a profile form, without an account, and returns it as GET does. Send the revision read. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND for an unknown or expired link, 409 CRM_REVISION_CONFLICT.",
        "operationId": "crm.profileForms.update",
        "parameters": [
          {
            "in": "path",
            "name": "token",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelerSelfUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileForm"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Fill a profile form",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.crm.profileForms.update({\n  \"token\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm profile-forms update --token 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/crm/settings": {
      "get": {
        "x-forge-group-name": "crm.settings",
        "x-forge-method-name": "list",
        "description": "Returns how the agency uses its CRM: the custom fields its travelers carry (the keys and types a traveler's customFields takes), its task templates (the templateId POST /crm/task-templates/{templateId}/apply takes), its saved segments (the segmentId GET /crm/travelers takes), who sees a new traveler by default, and its webhooks with the last four characters of each signing secret, never the secret itself. The revision is the one PUT /crm/settings needs; an agency that never saved its settings reads the defaults at revision 0. The agency's advisors and admins may read them. Errors: 403 ERROR_UNAUTHORIZED for a traveler.",
        "operationId": "crm.settings.list",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmSettings"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the CRM settings",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.settings.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm settings list --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.settings",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update the CRM settings. This may delete or overwrite what is there.",
        "description": "Replaces the sections of the settings the body names (customFields, defaultVisibility, segments, taskTemplates, webhooks) if the settings are still at the revision sent, and answers the settings as GET /crm/settings does, at the next revision. Each list sent replaces the stored one whole: an item sent with its id keeps it, one without is new and gets an id, and a stored item left out is deleted; a section left out stays as it is. A webhook sent without the webhookId of a stored one is new: its signing secret is in this answer, as that webhook's secret, and in no answer again, so store it now. Every delivery to the webhook is signed with it (X-Nicer-Signature). The change publishes crm.settings-updated.v1 with the sections it replaced. Admins only. Errors: 400 ERROR_BODY_VALIDATION, also for a body with the revision alone or two custom fields with one key; 403 ERROR_UNAUTHORIZED for anyone but an admin; 409 CRM_REVISION_CONFLICT when the settings changed since they were read: read them again.",
        "operationId": "crm.settings.update",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CrmSettingsUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmSettings"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update the CRM settings",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.settings.update({\n  \"revision\": 9007199254740991\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm settings update --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"revision\": 9007199254740991\n}\nJSON"
          }
        ]
      }
    },
    "/crm/task-templates/{templateId}/apply": {
      "post": {
        "x-forge-group-name": "crm.taskTemplates",
        "x-forge-method-name": "apply",
        "description": "Applies one of the agency's task templates (templateId from GET /crm/settings, taskTemplates) to a trip: each step of the template becomes a task of the trip, dated its offsetDays from the trip's start, end or creation (undated when the trip lacks that date), with origin TEMPLATE, all written at once. Every task is assigned to the caller, to assignedUserId, or with assignedUserId null to the trip's advisor. Publishes crm.task-changed.v1 with action CREATED for each task, and answers them all, in the template's order, with nextToken null. The caller must be the trip's advisor of record or an agency admin. Requires an Idempotency-Key header: a retry with the same key and body answers the same tasks. Errors: 400 ERROR_BODY_VALIDATION, 400 CRM_TASK_TEMPLATE_NOT_FOUND for a template the agency does not have, 404 ERROR_ITEM_NOT_FOUND for a trip the caller may not write about, 409 CRM_IDEMPOTENCY_CONFLICT for a key used with another body, and for a template already applied to the trip.",
        "operationId": "crm.taskTemplates.apply",
        "parameters": [
          {
            "in": "path",
            "name": "templateId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskTemplateApply"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Apply a task template to a trip",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.taskTemplates.apply({\n  \"templateId\": \"string\",\n  \"travelersTripId\": \"TT01JD4Q9W0Y5X3M2K8B7N6P4R1T\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm task-templates apply --template-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"travelersTripId\": \"TT01JD4Q9W0Y5X3M2K8B7N6P4R1T\"\n}\nJSON"
          }
        ]
      }
    },
    "/crm/tasks": {
      "post": {
        "x-forge-group-name": "crm.tasks",
        "x-forge-method-name": "create",
        "description": "Adds one task about one traveler (travelerId) or one trip (travelersTripId), assigned to the caller unless assignedUserId says otherwise, and publishes crm.task-changed.v1 with action CREATED. Answers the task, named after what it is about (travelerName, or tripName with associatedTripItineraryId). To add the tasks of one of the agency's task templates to a trip, apply the template instead (POST /crm/task-templates/{templateId}/apply). Requires an Idempotency-Key header: a retry with the same key and body answers the same task. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND for a traveler or trip the caller may not write about, 409 CRM_IDEMPOTENCY_CONFLICT for a key used with another body.",
        "operationId": "crm.tasks.create",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a task",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.tasks.create({\n  \"tentativeDate\": \"2026-11-02\",\n  \"title\": \"Call about the passport renewal\",\n  \"travelerId\": \"TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm tasks create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"tentativeDate\": \"2026-11-02\",\n  \"title\": \"Call about the passport renewal\",\n  \"travelerId\": \"TRV01JD4Q9W0Y5X3M2K8B7N6P4R1T\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "crm.tasks",
        "x-forge-method-name": "list",
        "description": "Lists open tasks of exactly one of: the caller (assignedUserId=me), another person (their user id, for an admin), one traveler (travelerId) or one trip (travelersTripId). completed=true lists the done ones instead. 50 a page unless limit says otherwise, each page soonest first and the undated last; send the answer's nextToken back to read the next page, until it is null. Each task names what it is about: travelerName, or tripName with the trip's associatedTripItineraryId. Errors: 400 ERROR_INVALID_QUERY for none or more than one of assignedUserId, travelerId and travelersTripId, a value out of range or a nextToken of another list; 403 ERROR_UNAUTHORIZED for another person's tasks unless the caller is an admin; 404 ERROR_ITEM_NOT_FOUND for a traveler or trip the caller may not see.",
        "operationId": "crm.tasks.list",
        "parameters": [
          {
            "description": "A person's tasks: their user id, or me for yours. Send exactly one of assignedUserId, travelerId and travelersTripId.",
            "in": "query",
            "name": "assignedUserId",
            "required": false,
            "schema": {
              "description": "A person's tasks: their user id, or me for yours. Send exactly one of assignedUserId, travelerId and travelersTripId.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "true lists the done tasks instead of the open ones; false, or left out, the open ones.",
            "in": "query",
            "name": "completed",
            "required": false,
            "schema": {
              "description": "true lists the done tasks instead of the open ones; false, or left out, the open ones.",
              "type": "string"
            }
          },
          {
            "description": "How many tasks a page holds, 1 to 100; 50 when left out.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many tasks a page holds, 1 to 100; 50 when left out.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "The nextToken of the page before, to read the next one; left out for the first page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the page before, to read the next one; left out for the first page.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "A traveler's tasks (TRV…). Send exactly one of assignedUserId, travelerId and travelersTripId.",
            "in": "query",
            "name": "travelerId",
            "required": false,
            "schema": {
              "description": "A traveler's tasks (TRV…). Send exactly one of assignedUserId, travelerId and travelersTripId.",
              "$ref": "#/components/schemas/TravelerId"
            }
          },
          {
            "description": "A trip's tasks (TT…). Send exactly one of assignedUserId, travelerId and travelersTripId.",
            "in": "query",
            "name": "travelersTripId",
            "required": false,
            "schema": {
              "description": "A trip's tasks (TT…). Send exactly one of assignedUserId, travelerId and travelersTripId.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TaskList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List tasks",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.tasks.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm tasks list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/crm/tasks/{taskId}": {
      "delete": {
        "x-forge-group-name": "crm.tasks",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Delete a task. This deletes it.",
        "description": "Deletes a task for good, taking it off its assignee's list and its day's reminders, and publishes crm.task-changed.v1 with action DELETED. Answers the task's id with deleted set to true; deleting it again answers 404. To close a task that was done, mark it completed with PUT /crm/tasks/{taskId} instead. Errors: 404 ERROR_ITEM_NOT_FOUND for a task there is not, or about a traveler or trip the caller may not see.",
        "operationId": "crm.tasks.delete",
        "parameters": [
          {
            "in": "path",
            "name": "taskId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a task",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.tasks.delete({\n  \"taskId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm tasks delete --task-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.tasks",
        "x-forge-method-name": "update",
        "description": "Changes a task: its title, notes, date or assignee, or marks it done. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND.",
        "operationId": "crm.tasks.update",
        "parameters": [
          {
            "in": "path",
            "name": "taskId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TaskUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Task"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a task",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.tasks.update({\n  \"taskId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm tasks update --task-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/crm/travelers": {
      "post": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "create",
        "description": "Adds a traveler to the agency, with or without a Nicer account, and returns it. Only the legal name is required. The new traveler is the caller's; an admin may assign another advisor. The answer always includes possibleDuplicates, the travelers who may be the same person (same email, phone, or name and birth date), so the caller can merge them: finding them is part of adding one, at up to four reads. expand takes the same members as GET /crm/travelers/{travelerId}; on a new traveler they are empty, and asking for them costs no read. Requires an Idempotency-Key header: a retry with the same key and the same body and expand answers the first result. Errors: 400 ERROR_BODY_VALIDATION, 400 ERROR_INVALID_QUERY for an expand name that is not a member, 400 INVALID_HEADERS or INVALID_IDEMPOTENCY_KEY, 409 CRM_IDEMPOTENCY_CONFLICT for a key reused with another body or expand.",
        "operationId": "crm.travelers.create",
        "parameters": [
          {
            "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
            "in": "query",
            "name": "expand",
            "required": false,
            "schema": {
              "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelerCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Traveler"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a traveler",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.create({\n  \"contact\": {\n    \"email\": \"ana@example.com\",\n    \"phone\": \"+525512345678\"\n  },\n  \"name\": {\n    \"familyName\": \"Pérez\",\n    \"givenName\": \"Ana\",\n    \"middleName\": null\n  }\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"contact\": {\n    \"email\": \"ana@example.com\",\n    \"phone\": \"+525512345678\"\n  },\n  \"name\": {\n    \"familyName\": \"Pérez\",\n    \"givenName\": \"Ana\",\n    \"middleName\": null\n  }\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "list",
        "description": "Lists the agency's travelers by name, 50 a page. An advisor sees the travelers they serve (scope=COMPANY adds the ones the agency shares with every advisor); an admin sees them all, or one advisor's with assignedAdvisorUserId. q matches the start of any word of the name, the email or the phone; tag, stage, isArchived and segmentId narrow the list. total counts the whole list, or is null for a search or a segment with dates. Errors: 400 ERROR_INVALID_QUERY.",
        "operationId": "crm.travelers.list",
        "parameters": [
          {
            "in": "query",
            "name": "assignedAdvisorUserId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "isArchived",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "q",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            }
          },
          {
            "in": "query",
            "name": "scope",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "COMPANY",
                "MINE"
              ]
            }
          },
          {
            "in": "query",
            "name": "segmentId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "stage",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TravelerStage"
            }
          },
          {
            "in": "query",
            "name": "tag",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TravelerTag"
            }
          },
          {
            "in": "query",
            "name": "userId",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelerList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List or search travelers",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/crm/travelers/{travelerId}": {
      "delete": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Erase a traveler. This deletes it.",
        "description": "Erases a traveler for good: their profile, documents, dates, relationships, notes, tasks, trips and timeline. Bookings already made keep their own copy of the travelers in commerce. To keep the traveler but hide them, archive them instead (isArchived on update). Answers the traveler's id with deleted set to true. Admins only. Errors: 403 ERROR_UNAUTHORIZED, 404 ERROR_ITEM_NOT_FOUND.",
        "operationId": "crm.travelers.delete",
        "parameters": [
          {
            "in": "path",
            "name": "travelerId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Deleted"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Erase a traveler",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.delete({\n  \"travelerId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers delete --traveler-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "get": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "get",
        "description": "Returns one traveler. Without expand the answer is the traveler's own fields, read in one call. expand adds members, comma-separated, each at the cost of its own reads, all read at the same time: profile (the travel profile, one read), documents (travel documents with their full numbers, one read), importantDates (one read), relationships (up to two reads: the links, then the related travelers' names), trips (one read) and possibleDuplicates (up to four reads: one lookup per email, phone and name with birth date, then the travelers found, among those the caller may see). Ask only for the members you show. Errors: 400 ERROR_INVALID_QUERY for an expand name that is not a member, 404 ERROR_ITEM_NOT_FOUND for a traveler the caller may not see.",
        "operationId": "crm.travelers.get",
        "parameters": [
          {
            "in": "path",
            "name": "travelerId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
            "in": "query",
            "name": "expand",
            "required": false,
            "schema": {
              "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Traveler"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a traveler",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.get({\n  \"travelerId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers get --traveler-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update a traveler. This may delete or overwrite what is there.",
        "description": "Replaces the sections of a traveler the body names and returns the traveler as it is now. Send the revision you read: a traveler changed since answers 409 CRM_REVISION_CONFLICT. An omitted section is kept, null clears it, and a list replaces the stored one; relationships are written on both travelers, and documents is the whole list of travel documents to keep. Only admins change the advisors. Without expand the answer is the traveler's own fields, with no read beyond the one that checks the traveler; expand adds members exactly as on GET /crm/travelers/{travelerId}, each read once the change is saved. Errors: 400 ERROR_BODY_VALIDATION (a documentId or dateId that is not the traveler's included), 400 ERROR_INVALID_QUERY for an expand name that is not a member, 400 CRM_RELATED_TRAVELER_NOT_FOUND, 403 ERROR_UNAUTHORIZED for an advisor changing the advisors, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_REVISION_CONFLICT.",
        "operationId": "crm.travelers.update",
        "parameters": [
          {
            "in": "path",
            "name": "travelerId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
            "in": "query",
            "name": "expand",
            "required": false,
            "schema": {
              "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelerUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Traveler"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a traveler",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.update({\n  \"travelerId\": \"string\",\n  \"revision\": 3,\n  \"tags\": [\n    \"VIP\"\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers update --traveler-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"revision\": 3,\n  \"tags\": [\n    \"VIP\"\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/crm/travelers/{travelerId}/invitation": {
      "post": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "invitation",
        "description": "Invites the traveler by email or SMS: to create a Nicer account (ACCOUNT), or to fill their own profile from a link that works for 14 days without an account (PROFILE_FORM). When they sign up, their account is linked to this traveler. Requires an Idempotency-Key header: a retry with the same key answers the first invitation, without its profileFormToken, which Nicer keeps only as a hash. Errors: 400 CRM_INVITATION_NO_CHANNEL when the traveler has no email or phone for the channel, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_IDEMPOTENCY_CONFLICT.",
        "operationId": "crm.travelers.invitation",
        "parameters": [
          {
            "in": "path",
            "name": "travelerId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelerInvitationCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelerInvitation"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Invite a traveler",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.invitation({\n  \"travelerId\": \"string\",\n  \"channel\": \"EMAIL\",\n  \"kind\": \"PROFILE_FORM\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers invitation --traveler-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"channel\": \"EMAIL\",\n  \"kind\": \"PROFILE_FORM\"\n}\nJSON"
          }
        ]
      }
    },
    "/crm/travelers/{travelerId}/merge": {
      "post": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "merge",
        "x-forge-require-confirmation": "Merge a duplicate into a traveler. This may delete or overwrite what is there.",
        "description": "Merges duplicateTravelerId into this traveler and returns the traveler that stays: it keeps its values, fills its empty fields from the duplicate and takes its documents, notes, tasks, relationships, trips and account; the duplicate is removed and its id answers as this one. Without expand the answer is the traveler's own fields; expand adds members exactly as on GET /crm/travelers/{travelerId}, read once the merge is done. Requires an Idempotency-Key header: a retry with the same key, duplicate and expand answers the first result. Errors: 400 CRM_MERGE_SAME_TRAVELER, 400 ERROR_INVALID_QUERY for an expand name that is not a member, 404 ERROR_ITEM_NOT_FOUND for either traveler, 409 CRM_IDEMPOTENCY_CONFLICT.",
        "operationId": "crm.travelers.merge",
        "parameters": [
          {
            "in": "path",
            "name": "travelerId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
            "in": "query",
            "name": "expand",
            "required": false,
            "schema": {
              "description": "The members to add to the answer, comma-separated, e.g. profile,documents. Without it the answer has none of them. Each member costs its own database reads, and the members asked for are read at the same time: profile, documents, importantDates and trips one read each; relationships up to two (the links, then the related travelers' names); possibleDuplicates up to four (one per email, phone and name with birth date the traveler has, then the travelers found). Ask only for what you show. A name that is not a member is 400 ERROR_INVALID_QUERY.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelerMerge"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Traveler"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Merge a duplicate into a traveler",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.merge({\n  \"travelerId\": \"string\",\n  \"duplicateTravelerId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers merge --traveler-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"duplicateTravelerId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/crm/travelers/import": {
      "post": {
        "x-forge-group-name": "crm.travelers",
        "x-forge-method-name": "import",
        "description": "Adds up to 200 travelers in one call, for example from a spreadsheet. A row whose email or phone belongs to a traveler of the agency is MATCHED, not duplicated; each row reports its own outcome. Requires an Idempotency-Key header. Errors: 400 ERROR_BODY_VALIDATION, 409 CRM_IDEMPOTENCY_CONFLICT.",
        "operationId": "crm.travelers.import",
        "parameters": [
          {
            "description": "Unique key (8–255 chars) per request; replays return the original result.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelerImport"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelerImportResult"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Import travelers",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"Idempotency-Key\": process.env.NICER_IDEMPOTENCY_KEY, \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.travelers.import({\n  \"rows\": [\n    {\n      \"contact\": {\n        \"email\": \"ana@example.com\",\n        \"phone\": \"+525512345678\"\n      },\n      \"name\": {\n        \"familyName\": \"Pérez\",\n        \"givenName\": \"Ana\",\n        \"middleName\": null\n      }\n    }\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm travelers import --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"rows\": [\n    {\n      \"contact\": {\n        \"email\": \"ana@example.com\",\n        \"phone\": \"+525512345678\"\n      },\n      \"name\": {\n        \"familyName\": \"Pérez\",\n        \"givenName\": \"Ana\",\n        \"middleName\": null\n      }\n    }\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/crm/trips": {
      "get": {
        "x-forge-group-name": "crm.trips",
        "x-forge-method-name": "list",
        "description": "Lists the agency's trips by sales stage, soonest first and undated trips last: an advisor's own trips, or for an admin every trip or one advisor's (assignedAdvisorUserId). salesStage keeps one column of the pipeline, NONE the trips without a stage; left out, the list runs stage by stage. Each trip is a CrmTrip without travelers: its primary traveler's id and name, how many travel on it, its itinerary and the revision PUT /crm/trips/{travelersTripId} needs. GET /crm/trips/{travelersTripId} answers who travels on one. 50 a page unless limit says otherwise; send the answer's nextToken back to read the next page, until it is null. The agency's advisors and admins may list. Errors: 400 ERROR_INVALID_QUERY for an unknown parameter, a limit out of range, a salesStage outside the pipeline or a nextToken of another list; 403 ERROR_UNAUTHORIZED for a traveler.",
        "operationId": "crm.trips.list",
        "parameters": [
          {
            "description": "Admins: only this advisor's trips, by user id. An advisor always lists their own trips.",
            "in": "query",
            "name": "assignedAdvisorUserId",
            "required": false,
            "schema": {
              "description": "Admins: only this advisor's trips, by user id. An advisor always lists their own trips.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "How many trips a page holds, 1 to 100; 50 when left out.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many trips a page holds, 1 to 100; 50 when left out.",
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "description": "The nextToken of the page before, to read the next one; left out for the first page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the page before, to read the next one; left out for the first page.",
              "type": "string",
              "minLength": 1
            }
          },
          {
            "description": "One column of the pipeline: a sales stage, or NONE for the trips without one. Left out, every trip, stage by stage.",
            "in": "query",
            "name": "salesStage",
            "required": false,
            "schema": {
              "description": "One column of the pipeline: a sales stage, or NONE for the trips without one. Left out, every trip, stage by stage.",
              "type": "string",
              "enum": [
                "BOOKED",
                "COMPLETED",
                "INQUIRY",
                "LOST",
                "PLANNING",
                "PROPOSAL",
                "TRAVELING",
                "NONE"
              ]
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmTripList"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List the sales pipeline",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.trips.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm trips list --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/crm/trips/{travelersTripId}": {
      "get": {
        "x-forge-group-name": "crm.trips",
        "x-forge-method-name": "get",
        "description": "Returns the trip as a CrmTrip with its travelers: who travels on it, the PRIMARY traveler first, each with the details a checkout needs, and the trip's sales stage, primary traveler, traveler count, itinerary and the revision PUT /crm/trips/{travelersTripId} sends back. The trip's staff (its advisor of record and the agency's admins) and the trip's own members signed in may read it; a payment link never does. Staff read every traveler's documents; a traveler on the trip reads only their own and those of the relatives they fill in for (a child, spouse or partner without an account of their own), and every other companion comes back with no documents. A trip the CRM keeps nothing of yet answers revision 0 and salesStage null. Errors: 404 ERROR_ITEM_NOT_FOUND for a trip that does not exist or that the caller may not read.",
        "operationId": "crm.trips.get",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a trip's travelers",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.trips.get({\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm trips get --travelers-trip-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "crm.trips",
        "x-forge-method-name": "update",
        "description": "Keeps exactly the travelers in the body and moves the trip to salesStage, if the trip is still at the revision sent, and answers the trip with its travelers as GET /crm/trips/{travelersTripId} does, at the next revision. A traveler on the trip left out of travelers leaves it, and stays among the agency's travelers; a body without travelers leaves the list as it is. A traveler sent as a participant, as a checkout collects them, is found by email or phone or added to the agency; a traveler added that way stays the agency's even if the trip's own change then fails. The trip's staff (its advisor of record and the agency's admins) and its members signed in may update its travelers; only staff move its sales stage. The change publishes crm.trip-updated.v1 with the sections it changed. Errors: 400 ERROR_BODY_VALIDATION, also for a body with neither travelers nor salesStage; 403 ERROR_UNAUTHORIZED for a member moving the sales stage; 404 ERROR_ITEM_NOT_FOUND for a trip the caller may not read, or a traveler they may not name; 409 CRM_REVISION_CONFLICT when the trip changed since it was read: read it again.",
        "operationId": "crm.trips.update",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CrmTripUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a trip's travelers or sales stage",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.trips.update({\n  \"travelersTripId\": \"string\",\n  \"revision\": 9007199254740991\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm trips update --travelers-trip-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"revision\": 9007199254740991\n}\nJSON"
          }
        ]
      }
    },
    "/crm/trips/{travelersTripId}/travelers": {
      "post": {
        "x-forge-group-name": "crm.trips.travelers",
        "x-forge-method-name": "create",
        "description": "Puts one existing traveler of the agency on the trip with their part in it, and leaves the trip's other travelers as they are. Nobody is messaged. A traveler already on the trip is left as they are, so the same call again changes nothing and answers the same trip. A trip keeps at most 20 travelers and one PRIMARY. Only the trip's advisor or an agency admin adds a traveler, one they may see in the CRM. Returns the trip with its travelers as GET /crm/trips/{travelersTripId} does; the addition publishes crm.trip-updated.v1. Errors: 400 ERROR_BODY_VALIDATION, also for a trip with 20 travelers already or a second PRIMARY; 404 ERROR_ITEM_NOT_FOUND for a trip or a traveler the caller may not see; 409 CRM_REVISION_CONFLICT only when other changes to the trip kept landing through three tries.",
        "operationId": "crm.trips.travelers.create",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "header",
            "name": "X-Nicer-CRM-Contract",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "resource"
              ]
            },
            "example": "resource"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripTravelerAdd"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CrmTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a traveler to a trip",
        "tags": [
          "Notes and tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.crm.trips.travelers.create({\n  \"travelersTripId\": \"string\",\n  \"relationship\": \"BILLING_CONTACT\",\n  \"travelerId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer crm trips travelers create --travelers-trip-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"relationship\": \"BILLING_CONTACT\",\n  \"travelerId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/cruises/sso-url": {
      "post": {
        "x-forge-group-name": "cruises",
        "x-forge-method-name": "ssoUrl",
        "description": "Signs in to the cruise booking partner with Nicer's own credentials and answers a single sign-on link that opens its booking tool as the caller. Any signed-in person may call it. The body is accepted but ignored: the program is fixed and userId is never read. When the partner fails, the answer is a 500 error.",
        "operationId": "cruises.ssoUrl",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CruisesSsoUrlResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a cruise booking sign-on link",
        "tags": [
          "Cruises"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.cruises.ssoUrl();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer cruises sso-url"
          }
        ]
      }
    },
    "/favorites": {
      "delete": {
        "x-forge-group-name": "favorites",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Remove a saved place. This deletes it.",
        "description": "Removes a saved place from the caller's list. Removing a place that is not saved succeeds too, so a double tap never errors.",
        "operationId": "favorites.delete",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/FavoriteKind"
            }
          },
          {
            "in": "query",
            "name": "reference",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 512
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoritesDeleteResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove a saved place",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.delete({\n  \"kind\": \"HOTEL\",\n  \"reference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites delete --kind 'HOTEL' --reference 'string'"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "favorites",
        "x-forge-method-name": "list",
        "description": "Returns the places the caller saved, newest first, optionally narrowed to one kind. Always the caller's own list — there is no way to read another user's.",
        "operationId": "favorites.list",
        "parameters": [
          {
            "in": "query",
            "name": "kind",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/FavoriteKind"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoritesListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List the caller's saved places",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites list"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "favorites",
        "x-forge-method-name": "update",
        "description": "Saves a place for the caller, or refreshes its snapshot when it is already saved — saving twice never creates a second entry.",
        "operationId": "favorites.update",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FavoritesUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Favorite"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Save a place",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.update({\n  \"name\": \"string\",\n  \"kind\": \"HOTEL\",\n  \"reference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites update --input - <<'JSON'\n{\n  \"name\": \"string\",\n  \"kind\": \"HOTEL\",\n  \"reference\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/favorites/share": {
      "delete": {
        "x-forge-group-name": "favorites.share",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Stop sharing the caller's saved list. This deletes it.",
        "description": "Stops sharing the caller's saved list: the link stops working at once, and sharing again creates a new one. Idempotent.",
        "operationId": "favorites.share.delete",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoritesShareDeleteResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Stop sharing the caller's saved list",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.share.delete();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites share delete"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "favorites.share",
        "x-forge-method-name": "list",
        "description": "Returns the link id of the caller's shared list and the photo it greets with, or nulls when they are not sharing it.",
        "operationId": "favorites.share.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoritesShareListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the caller's shared list link",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.share.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites share list"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "favorites.share",
        "x-forge-method-name": "update",
        "description": "Shares the caller's saved list through a link and returns its id. One link per person: sharing again returns the same link, with the greeting name and photo refreshed. Anyone with the link can read the list.",
        "operationId": "favorites.share.update",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FavoritesShareUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoritesShareUpdateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Share the caller's saved list",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.share.update({});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites share update --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/favorites/shared/{shareId}": {
      "get": {
        "x-forge-group-name": "favorites.shared",
        "x-forge-method-name": "get",
        "description": "Returns a shared saved list, newest first, with its owner's first name and photo. Reachable without a token: the link id is the only credential, and it stops working the moment its owner stops sharing.",
        "operationId": "favorites.shared.get",
        "parameters": [
          {
            "in": "path",
            "name": "shareId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FavoritesSharedGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Get a shared saved list",
        "tags": [
          "favorites"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.favorites.shared.get({\n  \"shareId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer favorites shared get --share-id 'string'"
          }
        ]
      }
    },
    "/identity/{userId}/invite/{inviteId}": {
      "delete": {
        "x-forge-group-name": "identity.invite",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Cancel a staff invitation. This deletes it.",
        "description": "Cancels a pending staff invitation of the acting agency and frees its email and phone lookup rows when nothing else uses them. An admin cancels any of the agency's; anyone else only one they sent. Answers the invitation as it was.",
        "operationId": "identity.invite.delete",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "inviteId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Invite"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Cancel a staff invitation",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.invite.delete({\n  \"userId\": \"string\",\n  \"inviteId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity invite delete --user-id 'string' --invite-id 'string'"
          }
        ]
      }
    },
    "/identity/{userId}/referrals": {
      "get": {
        "x-forge-group-name": "identity.referrals",
        "x-forge-method-name": "list",
        "description": "Lists the people someone referred to the agency the request acts for: those they invited who joined (type User) and their invitations not accepted yet (type Invite), each with its date and name. Pages with limit and nextToken. Advisors and admins read their own; an admin also those of an active member of the agency, and Nicer staff anyone's. Errors: 400 ERROR_UNAUTHORIZED for someone else's referrals the caller may not read.",
        "operationId": "identity.referrals.list",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "How many rows a page reads: 1000 when absent. The agency and where apply after the read, so a page can hold fewer.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many rows a page reads: 1000 when absent. The agency and where apply after the read, so a page can hold fewer.",
              "type": "string"
            }
          },
          {
            "description": "Where the page starts: the nextToken of the previous page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "Where the page starts: the nextToken of the previous page.",
              "type": "string"
            }
          },
          {
            "description": "ASC, the default, reads the rows in ascending order; any other value in descending order.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "description": "ASC, the default, reads the rows in ascending order; any other value in descending order.",
              "type": "string"
            }
          },
          {
            "description": "Which rows to keep, on top of the agency the request acts for. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: type:eq:User.",
            "in": "query",
            "name": "where",
            "required": false,
            "schema": {
              "description": "Which rows to keep, on top of the agency the request acts for. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: type:eq:User.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityReferralsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a person's referrals",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.referrals.list({\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity referrals list --user-id 'string'"
          }
        ]
      }
    },
    "/identity/admin/hosts": {
      "get": {
        "x-forge-group-name": "identity.admin.hosts",
        "x-forge-method-name": "list",
        "description": "Every agency hostname on the platform (booking sites, portals and Pay), for support, filtered by app and status when they are sent. Nicer staff only.",
        "operationId": "identity.admin.hosts.list",
        "parameters": [
          {
            "in": "query",
            "name": "app",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/HostApp"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/HostStatus"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityAdminHostsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List booking-site hostnames",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.admin.hosts.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity admin hosts list"
          }
        ]
      }
    },
    "/identity/admin/user/{id}": {
      "put": {
        "x-forge-group-name": "identity.admin.user",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Change a member's settings or role in an agency. This may delete or overwrite what is there.",
        "description": "Changes a person's membership in the agency the request acts for (x-nicer-company): the settings noLeads, bookingAccessEnabled, hasAdvisorPortalAccess and isTestUser, and the role, between advisor and admin. It never changes the person's account, their contact details or their memberships in other agencies. Only the agency's admins and Nicer staff may call it, and staff must name the agency. The legacy company-level superadmin membership is Nicer staff's: only staff change its settings, and its role stays. The agency always keeps at least one admin; an admin may change themself under the same rule. A change of role publishes identity.company-member-role-changed.v1, a change of a setting identity.company-member-settings-changed.v1, and turning an advisor's portal access off app.CompanyMember.removed; the person's next token reflects the membership as it now stands. A request that changes nothing writes nothing. Answers the membership as it now stands. Errors: 400 ERROR_MALFORMED_BODY (not JSON), 400 ERROR_BODY_VALIDATION (an unknown field, a value of the wrong type, or nothing to change), 404 ERROR_ITEM_NOT_FOUND (the person is not an active member of this agency's staff), 403 ERROR_DO_NOT_HAVE_PERMISSION (the caller is neither an admin of the agency nor Nicer staff, or an agency admin changing the legacy superadmin membership), 409 ERROR_IDENTITY_INVALID_ROLE (a role change on the legacy superadmin membership), 409 ERROR_LAST_ADMIN (the agency would be left without an admin), 409 ERROR_CONDITIONAL_CHECK_FAILED (the membership kept changing while this change was made: read it again).",
        "operationId": "identity.admin.user.update",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompanyMembershipChange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMembership"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Change a member's settings or role in an agency",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.admin.user.update({\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity admin user update --id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/identity/agreement": {
      "post": {
        "x-forge-group-name": "identity.agreement",
        "x-forge-method-name": "create",
        "description": "Publishes a new version of the advisor agreement of the agency the request acts for, with the text sent: it is numbered after the existing versions, every earlier draft or published version is terminated, and every advisor must sign the new one. Answers the new version. Agency admins and Nicer staff only.",
        "operationId": "identity.agreement.create",
        "parameters": [
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityAgreementCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Agreement"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Publish an advisor agreement",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.agreement.create({\n  \"content\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity agreement create --input - <<'JSON'\n{\n  \"content\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "identity.agreement",
        "x-forge-method-name": "list",
        "description": "Returns the published advisor agreement of the agency the caller acts for, with its text and version; items is empty while the agency has none. Any signed-in member of the agency the request acts for may read it.",
        "operationId": "identity.agreement.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityAgreementListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List the published advisor agreements",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.agreement.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity agreement list"
          }
        ]
      }
    },
    "/identity/agreement/sign": {
      "post": {
        "x-forge-group-name": "identity.agreement",
        "x-forge-method-name": "sign",
        "description": "Signs the agency's published agreement for the calling advisor: stores their signature (their name as they typed it), their IP address and the signed PDF. An agreement is signed once. Answers the signature without the IP address or where the PDF is stored. Advisors and admins of the agency the request acts for sign for themselves. Errors: 400 ERROR_ITEM_NOT_FOUND for an agreement the agency does not have, 400 AGREEMENT_NOT_PUBLISHED for a version that is not the published one, 400 AGREEMENT_ALREADY_ACCEPTED when the caller signed it already.",
        "operationId": "identity.agreement.sign",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityAgreementSignBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityAgreementSignResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Sign the advisor agreement",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.agreement.sign({\n  \"agreementId\": \"string\",\n  \"signature\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity agreement sign --input - <<'JSON'\n{\n  \"agreementId\": \"string\",\n  \"signature\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/agreement/user/{userId}": {
      "get": {
        "x-forge-group-name": "identity.agreement.user",
        "x-forge-method-name": "get",
        "description": "Lists every agreement version of the active agency with whether the given user signed it, their acceptance and a short-lived link to the signed PDF. Agency admins and Nicer staff only.",
        "operationId": "identity.agreement.user.get",
        "parameters": [
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityAgreementUserGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a member's agreement signatures",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.agreement.user.get({\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity agreement user get --user-id 'string'"
          }
        ]
      }
    },
    "/identity/booking-site": {
      "get": {
        "x-forge-group-name": "identity.bookingSite",
        "x-forge-method-name": "list",
        "description": "The active agency's booking site: theme, switches, advisor-pages policy, the link the caller shares, and the agency's hostnames, each with the app it opens (booking site, portal or Pay). Advisors and admins of the agency: an admin sees every hostname and every advisor page, an advisor the agency's booking-site hostnames and their own page's.",
        "operationId": "identity.bookingSite.list",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityBookingSiteListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the booking site",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.bookingSite.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity booking-site list --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "identity.bookingSite",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update the booking site. This may delete or overwrite what is there.",
        "description": "Updates the active agency's booking-site theme, advisor-pages policy, Nicer subdomain or on/off switch, and answers the booking site as it now stands. branding replaces the whole theme. Agency admins and Nicer staff only.",
        "operationId": "identity.bookingSite.update",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityBookingSiteUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityBookingSiteListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update the booking site",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.bookingSite.update({});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity booking-site update --company \"$NICER_COMPANY\" --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/identity/booking-site/hosts": {
      "post": {
        "x-forge-group-name": "identity.bookingSite.hosts",
        "x-forge-method-name": "create",
        "description": "Adds a Nicer subdomain or a custom domain to the agency's booking site, or to an advisor's site when the agency allows advisor pages. A custom domain may instead open the agency's portal or Pay (`app`), which only its admins add. A custom domain starts in PENDING_DNS with the CNAME target to create. Admins add any hostname for the agency; an advisor adds one only for their own page, while the agency allows advisor pages.",
        "operationId": "identity.bookingSite.hosts.create",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityBookingSiteHostsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteHostView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a booking-site hostname",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.bookingSite.hosts.create({\n  \"handle\": \"string\",\n  \"kind\": \"SUBDOMAIN\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity booking-site hosts create --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"handle\": \"string\",\n  \"kind\": \"SUBDOMAIN\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/booking-site/hosts/{host}": {
      "delete": {
        "x-forge-group-name": "identity.bookingSite.hosts",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Remove a booking-site hostname. This deletes it.",
        "description": "Removes a hostname. A Nicer subdomain becomes an alias (handles are never released); a custom domain moves to REMOVING while its certificate and delivery setup are deleted. Admins remove any of the agency's hostnames, a portal or Pay domain included; an advisor removes only their own page's, while the agency allows advisor pages.",
        "operationId": "identity.bookingSite.hosts.delete",
        "parameters": [
          {
            "in": "path",
            "name": "host",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteHostView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove a booking-site hostname",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.bookingSite.hosts.delete({\n  \"host\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity booking-site hosts delete --host 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/identity/booking-site/hosts/{host}/retry": {
      "post": {
        "x-forge-group-name": "identity.bookingSite.hosts",
        "x-forge-method-name": "retry",
        "description": "Restarts provisioning of a custom domain that failed (FAILED_DNS or FAILED_CERT), or checks the DNS of one waiting for it (PENDING_DNS) right away instead of at its next poll and answers with what it shows instead of the CNAME in `lastError`. Admins retry any of the agency's custom domains, a portal or Pay domain included; an advisor retries only their own page's, while the agency allows advisor pages.",
        "operationId": "identity.bookingSite.hosts.retry",
        "parameters": [
          {
            "in": "path",
            "name": "host",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SiteHostView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Retry a custom domain",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.bookingSite.hosts.retry({\n  \"host\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity booking-site hosts retry --host 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/identity/booking-site/pages/{advisorUserId}": {
      "put": {
        "x-forge-group-name": "identity.bookingSite.pages",
        "x-forge-method-name": "update",
        "description": "Turns an advisor's own booking page on or off: an advisor their own, while the agency offers advisor pages; an admin any advisor's.",
        "operationId": "identity.bookingSite.pages.update",
        "parameters": [
          {
            "in": "path",
            "name": "advisorUserId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityBookingSitePagesUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityBookingSiteListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Turn an advisor page on or off",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.bookingSite.pages.update({\n  \"advisorUserId\": \"string\",\n  \"enabled\": true\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity booking-site pages update --advisor-user-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"enabled\": true\n}\nJSON"
          }
        ]
      }
    },
    "/identity/company": {
      "post": {
        "x-forge-group-name": "identity.company",
        "x-forge-method-name": "create",
        "description": "Creates an agency, active, with the companyName and displayName sent and an optional starting config, makes the caller its first member, and publishes both. Answers the new agency. Nicer staff only. Errors: 400 COMPANY_ALREADY_EXISTS for a companyName already taken.",
        "operationId": "identity.company.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityCompanyCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create an agency",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.create({\n  \"companyName\": \"string\",\n  \"displayName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company create --input - <<'JSON'\n{\n  \"companyName\": \"string\",\n  \"displayName\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "identity.company",
        "x-forge-method-name": "list",
        "description": "Lists the agencies the caller is an active member of, each with their role in it and its company record, and names the agency the request acts for. The record carries the email sending domain only for the agencies where the caller is an admin; Nicer staff get every agency, each whole.",
        "operationId": "identity.company.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityCompanyListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my agencies",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company list"
          }
        ]
      }
    },
    "/identity/company/{companyName}": {
      "get": {
        "x-forge-group-name": "identity.company",
        "x-forge-method-name": "get",
        "description": "Returns an agency's company record: display name, status and configuration (locale, timezone, branding, booking-site switches, and for its admins and Nicer staff the email sending domain). Any active member of the agency, and Nicer staff.",
        "operationId": "identity.company.get",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get an agency",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.get({\n  \"companyName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company get --company-name 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "identity.company",
        "x-forge-method-name": "update",
        "description": "Changes the agency's display name and its card: of config, only locale, timezone and the branding's logoUrl, faviconUrl and primaryColor are written, and those three are replaced by what is sent, so one left out is cleared. The rest of the theme, the booking-site switches and the email sending domain are kept: they change through their own routes. Only Nicer staff change status (active or suspended). Publishes the change and answers the agency as it now stands. Agency admins and Nicer staff, for the agency the request acts for only. Errors: 403 ERROR_DO_NOT_HAVE_PERMISSION for a status change by anyone but Nicer staff, 400 ERROR_ITEM_NOT_FOUND for another agency or one there is not.",
        "operationId": "identity.company.update",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityCompanyUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Company"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update an agency",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.update({\n  \"companyName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company update --company-name 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/identity/company/{companyName}/agreements": {
      "get": {
        "x-forge-group-name": "identity.company.agreements",
        "x-forge-method-name": "list",
        "description": "Lists the agreement acceptances of an agency, each with the signer's name and email and a short-lived link to the signed PDF. Agency admins for their own agency, and Nicer staff for any.",
        "operationId": "identity.company.agreements.list",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "The most signatures a page holds; 1000 when absent.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "The most signatures a page holds; 1000 when absent.",
              "type": "string"
            }
          },
          {
            "description": "The nextToken of the previous page, to read the next one.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The nextToken of the previous page, to read the next one.",
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityCompanyAgreementsListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List agreement signatures",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.agreements.list({\n  \"companyName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company agreements list --company-name 'string'"
          }
        ]
      }
    },
    "/identity/company/{companyName}/member/{userId}": {
      "delete": {
        "x-forge-group-name": "identity.company.member",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Remove a member from an agency. This deletes it.",
        "description": "Removes a person from an agency's staff. The membership is kept with status removed, so the person's next token, when it is issued or refreshed, no longer carries the agency, and app.CompanyMember.removed is published, which tells the CRM to leave the travelers they served for an admin to reassign. The person's account, and their memberships in other agencies, are untouched. Only an admin of the agency, or Nicer staff, may call it; staff must name the agency, and companyName in the path must be the agency the request acts for (x-nicer-company). The legacy company-level superadmin membership is Nicer staff's, and only staff remove it. An admin may remove themself unless they are the agency's last admin. Errors: 404 ERROR_ITEM_NOT_FOUND (the person is not an active member of this agency's staff, or the path names another agency), 403 ERROR_DO_NOT_HAVE_PERMISSION (the caller is neither an admin of the agency nor Nicer staff, or an agency admin removing the legacy superadmin membership), 409 ERROR_LAST_ADMIN (the agency would be left without an admin), 409 ERROR_CONDITIONAL_CHECK_FAILED (the membership kept changing while it was removed: read it again).",
        "operationId": "identity.company.member.delete",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMemberRemoved"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove a member from an agency",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.company.member.delete({\n  \"companyName\": \"string\",\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company member delete --company-name 'string' --user-id 'string' --company \"$NICER_COMPANY\""
          }
        ]
      },
      "get": {
        "x-forge-group-name": "identity.company.member",
        "x-forge-method-name": "get",
        "description": "Returns a person's membership in an agency with the onboarding flags the portal reads: role, status, settings, documents, and whether they must still sign the current agreement, with its text. A person reads their own in the agency they act for; an admin or Nicer staff anyone's there.",
        "operationId": "identity.company.member.get",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "userId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyMemberResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a member's settings",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.member.get({\n  \"companyName\": \"string\",\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company member get --company-name 'string' --user-id 'string'"
          }
        ]
      }
    },
    "/identity/company/{companyName}/switch": {
      "post": {
        "x-forge-group-name": "identity.company",
        "x-forge-method-name": "switch",
        "description": "Makes an agency the one the caller acts for: checks they are an active member with portal access (Nicer staff enter any agency, a suspended one included), writes it as their active company and role on their account and publishes the switch. The portal refreshes its token afterwards. Any signed-in person, for themself. Errors: 400 COMPANY_NOT_AVAILABLE for an agency there is not or one that is suspended, 400 ERROR_UNAUTHORIZED for an agency the caller is not an active member of or whose portal is closed to them.",
        "operationId": "identity.company.switch",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityCompanySwitchResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Switch the active agency",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.switch({\n  \"companyName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company switch --company-name 'string'"
          }
        ]
      }
    },
    "/identity/company/users": {
      "get": {
        "x-forge-group-name": "identity.company.users",
        "x-forge-method-name": "list",
        "description": "Lists the active agency's staff (advisors and admins) with their membership settings, and its pending staff invitations. Agency admins; Nicer staff may name another agency with companyName.",
        "operationId": "identity.company.users.list",
        "parameters": [
          {
            "description": "The agency to list, by its companyName. Nicer staff may name any agency; anyone else gets only the agency the request acts for.",
            "in": "query",
            "name": "companyName",
            "required": false,
            "schema": {
              "description": "The agency to list, by its companyName. Nicer staff may name any agency; anyone else gets only the agency the request acts for.",
              "type": "string"
            }
          },
          {
            "description": "How many roster rows, people and invitations together, a page reads: 30 when absent. Removed members are left out after the read, so a page can hold fewer.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many roster rows, people and invitations together, a page reads: 30 when absent. Removed members are left out after the read, so a page can hold fewer.",
              "type": "string"
            }
          },
          {
            "description": "Where the page starts: the nextToken of the previous page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "Where the page starts: the nextToken of the previous page.",
              "type": "string"
            }
          },
          {
            "description": "Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.",
            "in": "header",
            "name": "x-nicer-company",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityCompanyUsersListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List the agency's team",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.company.users.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity company users list"
          }
        ]
      }
    },
    "/identity/email-domain": {
      "delete": {
        "x-forge-group-name": "identity.emailDomain",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Remove the email sending domain. This deletes it.",
        "description": "Stops sending from the agency's own domain: its emails come from Nicer's domain again and the domain is removed from the email service, so using it again means setting it and adding its DNS records anew. Answers status NONE. Agency admins only.",
        "operationId": "identity.emailDomain.delete",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Remove the email sending domain",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.emailDomain.delete();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity email-domain delete --company \"$NICER_COMPANY\""
          }
        ]
      },
      "get": {
        "x-forge-group-name": "identity.emailDomain",
        "x-forge-method-name": "list",
        "description": "The agency's own email sending domain: the DKIM records to add at its DNS provider and whether the email service has verified them. Asks the email service again while the domain is pending. Agency admins only.",
        "operationId": "identity.emailDomain.list",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the email sending domain",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.emailDomain.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity email-domain list --company \"$NICER_COMPANY\""
          }
        ]
      },
      "put": {
        "x-forge-group-name": "identity.emailDomain",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Set the email sending domain. This may delete or overwrite what is there.",
        "description": "Starts sending the agency's emails from its own domain: registers the domain with the email service under a sender identity of the agency's own and returns the three DKIM records to add. Emails keep coming from Nicer's domain until they verify. A different domain replaces the current one; the same domain again changes nothing. Agency admins only.",
        "operationId": "identity.emailDomain.update",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityEmailDomainUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailDomainView"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Set the email sending domain",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.emailDomain.update({\n  \"domain\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity email-domain update --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"domain\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/email-preview/{templateName}": {
      "get": {
        "x-forge-group-name": "identity.emailPreview",
        "x-forge-method-name": "get",
        "description": "Renders one of the agency's traveler emails with its current brand and sample data: subject, sender, Reply-To, HTML and plain text. Agency admins only.",
        "operationId": "identity.emailPreview.get",
        "parameters": [
          {
            "in": "path",
            "name": "templateName",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityEmailPreviewGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Preview a branded email",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.emailPreview.get({\n  \"templateName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity email-preview get --template-name 'string' --company \"$NICER_COMPANY\""
          }
        ]
      }
    },
    "/identity/email-test": {
      "post": {
        "x-forge-group-name": "identity",
        "x-forge-method-name": "emailTest",
        "description": "Sends one of the agency's traveler emails, with its brand and sample data, to the caller's own email address. Agency admins only.",
        "operationId": "identity.emailTest",
        "parameters": [
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityEmailTestBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityEmailTestResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send a test email",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.identity.emailTest({\n  \"templateName\": \"hotel-confirmation\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity email-test --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"templateName\": \"hotel-confirmation\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/flag": {
      "get": {
        "x-forge-group-name": "identity.flag",
        "x-forge-method-name": "list",
        "description": "Returns the feature flags that apply to the caller (their own, their active agency's and the global ones), one per flag, with a true value winning. Any signed-in person, for themself.",
        "operationId": "identity.flag.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityFlagListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List my feature flags",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.flag.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity flag list"
          }
        ]
      }
    },
    "/identity/invitations/registration/accept": {
      "post": {
        "x-forge-group-name": "identity.invitations.registration",
        "x-forge-method-name": "accept",
        "description": "Accepts a portal invitation for the signed-in person after their email or phone was verified with a one-time code: records their name and acceptance of the terms and makes them a member of the inviting agency with the invited role.",
        "operationId": "identity.invitations.registration.accept",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityInvitationsRegistrationAcceptBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityInvitationsRegistrationAcceptResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Accept a portal invitation after email OTP verification",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.invitations.registration.accept({\n  \"invitationId\": \"string\",\n  \"verificationReference\": \"string\",\n  \"givenName\": \"string\",\n  \"familyName\": \"string\",\n  \"termsAccepted\": true\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity invitations registration accept --input - <<'JSON'\n{\n  \"invitationId\": \"string\",\n  \"verificationReference\": \"string\",\n  \"givenName\": \"string\",\n  \"familyName\": \"string\",\n  \"termsAccepted\": true\n}\nJSON"
          }
        ]
      }
    },
    "/identity/invitations/registration/lookup": {
      "post": {
        "x-forge-group-name": "identity.invitations.registration",
        "x-forge-method-name": "lookup",
        "description": "Tells the invitation sign-up page which agency and role a current portal invitation is for, once the signed-in invitee has verified that email or phone number with a one-time code. A contact the caller has not verified gets the same `available: false` as one with no invitation.",
        "operationId": "identity.invitations.registration.lookup",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityInvitationsRegistrationLookupBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityInvitationsRegistrationLookupResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Find the portal invitation for a contact the caller verified",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.invitations.registration.lookup({\n  \"verificationReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity invitations registration lookup --input - <<'JSON'\n{\n  \"verificationReference\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/invite": {
      "post": {
        "x-forge-group-name": "identity.invite",
        "x-forge-method-name": "create",
        "description": "Invites a person to the staff of the agency the request acts for, as an advisor or an admin (role), by email, phoneNumber, givenName and familyName, and sends them the invitation unless sendMessage is false. A person who already has a staff account joins the agency at once instead, with the role sent, and the answer is that membership with alreadyMember true; otherwise the answer is the pending invitation. Travelers are invited from the CRM (POST /crm/travelers/{travelerId}/invitation), and a contact that belongs to a traveler's account is refused with 409 ERROR_USER_IS_TRAVELER unless that account was opened from a staff invitation. A body that fails the schema, such as one with another role or with no phone, email or name, is refused with 400 ERROR_BODY_VALIDATION. Agency admins only; only Nicer staff name another agency with companyName.",
        "operationId": "identity.invite.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityInviteCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityInviteCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Invite a person to the agency's staff",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.invite.create({\n  \"role\": \"advisor\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity invite create --input - <<'JSON'\n{\n  \"role\": \"advisor\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/invite/resend": {
      "post": {
        "x-forge-group-name": "identity.invite",
        "x-forge-method-name": "resend",
        "description": "Sends a pending staff invitation of the agency the request acts for again, found by the email or the phoneNumber it went to, and gives it seven more days; at most four times. Agency admins only. Errors: 400 ERROR_MALFORMED_BODY without an email or a phone number, 400 ERROR_BODY_VALIDATION for a body that is not an object or a contact that is not text, 404 ERROR_ITEM_NOT_FOUND without a pending staff invitation for it that the caller may resend, 403 ERROR_UNAUTHORIZED for a caller who is not an admin, 409 ERROR_INVITE_RESEND_LIMIT_EXCEEDED past the fourth time.",
        "operationId": "identity.invite.resend",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityInviteResendBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityInviteResendResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Resend a staff invitation",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.invite.resend({});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity invite resend --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/identity/join/registration/status": {
      "post": {
        "x-forge-group-name": "identity.join.registration",
        "x-forge-method-name": "status",
        "description": "Tells the Join page whether a paid application, found by its private browser reference, is ready to register, still pending or expired; once it is ready, registrationUrl is the address where the applicant registers. Anyone holding the reference may call it, without a token.",
        "operationId": "identity.join.registration.status",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityJoinRegistrationStatusBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityJoinRegistrationStatusResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Check a paid application using its private browser reference",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.join.registration.status({\n  \"reference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity join registration status --input - <<'JSON'\n{\n  \"reference\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/member/search": {
      "get": {
        "x-forge-group-name": "identity.member.search",
        "x-forge-method-name": "list",
        "description": "Searches the active agency's advisors and admins by part of their name, email, phone, username or id and returns their names and avatars, led by the agency's AI assistant user. Any signed-in caller with an active agency.",
        "operationId": "identity.member.search.list",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "text",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 100
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityMemberSearchListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search the agency's advisors",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.member.search.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity member search list"
          }
        ]
      }
    },
    "/identity/onboarding/status": {
      "get": {
        "x-forge-group-name": "identity.onboarding.status",
        "x-forge-method-name": "list",
        "description": "Returns the caller's onboarding status at the agency they act for, computed on read: profile complete, documents uploaded, the current agreement signed and when, onboarding completed and the Join fee paid. Any signed-in person, for themself, at the agency the request acts for.",
        "operationId": "identity.onboarding.status.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityOnboardingStatusListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get my onboarding status",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.onboarding.status.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity onboarding status list"
          }
        ]
      }
    },
    "/identity/public/company/{companyName}": {
      "get": {
        "x-forge-group-name": "identity.public.company",
        "x-forge-method-name": "get",
        "description": "Returns an agency's display name, booking-site theme and addresses (its booking site, portal and Pay, on its own domains once live) to anyone, for the Pay page and booking site that paint the agency and link to its other apps before anyone signs in. Anyone may call it, without a token. Errors: 404 ERROR_ITEM_NOT_FOUND for an agency there is not.",
        "operationId": "identity.public.company.get",
        "parameters": [
          {
            "in": "path",
            "name": "companyName",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCompany"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Get an agency's public profile",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.public.company.get({\n  \"companyName\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity public company get --company-name 'string'"
          }
        ]
      }
    },
    "/identity/public/site/{host}": {
      "get": {
        "x-forge-group-name": "identity.public.site",
        "x-forge-method-name": "get",
        "description": "Resolves a live hostname to the app it opens (booking site, portal or Pay), its agency, theme, addresses and, on a booking site, its advisor. With `ref`, a booking site also returns that advisor's card when they are an active member of the site's agency. Anyone may call it, without a token; the answer is cached at the edge.",
        "operationId": "identity.public.site.get",
        "parameters": [
          {
            "in": "path",
            "name": "host",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "ref",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 64
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityPublicSiteGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Resolve a booking site",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.public.site.get({\n  \"host\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity public site get --host 'string'"
          }
        ]
      }
    },
    "/identity/referral/claim": {
      "post": {
        "x-forge-group-name": "identity.referral",
        "x-forge-method-name": "claim",
        "description": "Links the signed-in traveler to the referring advisor of a booking site when the traveler has no deliberate advisor yet; a traveler who already has one is never moved. result says what happened, and companyChanged that the session must be refreshed before the next call. Any signed-in person, for themself.",
        "operationId": "identity.referral.claim",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityReferralClaimBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityReferralClaimResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Claim a booking-site referral",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.referral.claim({\n  \"host\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity referral claim --input - <<'JSON'\n{\n  \"host\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/identity/user": {
      "get": {
        "x-forge-group-name": "identity.user",
        "x-forge-method-name": "list",
        "description": "Returns the signed-in person's own account profile: names, contact, avatar, biography, location, time zone, and the agency and role of their last switch.",
        "operationId": "identity.user.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get my account",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.user.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity user list"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "identity.user",
        "x-forge-method-name": "update",
        "description": "Changes the signed-in person's own account: givenName, familyName, email, biography, calendarUrl, instagram, location, zoneinfo and tourProgress; companyName, only as the agency the request acts for; and their bookingAccessEnabled and onboardingCompleted settings at that agency, which need it to be named (403 ERROR_DO_NOT_HAVE_PERMISSION otherwise). A new email is also the one they sign in with, in every agency. Any other field, or a value of the wrong type, is refused with 400 ERROR_BODY_VALIDATION. Answers the account as it now stands. Any signed-in person, for their own account only.",
        "operationId": "identity.user.update",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update my account",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.user.update({});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity user update --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/identity/user/{id}": {
      "get": {
        "x-forge-group-name": "identity.user",
        "x-forge-method-name": "get",
        "description": "Returns a person's profile by user id. Anyone, signed in or not, gets their name, avatar, biography and Instagram, as a shared itinerary shows the advisor behind it. Their email, phone, agency and role go only to the person themself, to Nicer staff, and to the advisors and admins of an agency the person is an active member of.",
        "operationId": "identity.user.get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityUserGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a person's profile",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.user.get({\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity user get --id 'string'"
          }
        ]
      },
      "delete": {
        "x-forge-group-name": "identity.user",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Close an account. This deletes it.",
        "description": "Closes a person's account everywhere: marks it deleted, removes their sign-in, frees their email and phone number, and publishes their removal from every agency they worked for, which leaves the travelers they served there for its admins to reassign. Answers the account as it was marked. A person may close their own account; an agency admin only the account of someone who belongs to the agency the request acts for and to no other; Nicer staff anyone's. Errors: 403 ERROR_UNAUTHORIZED for an account the caller may not close.",
        "operationId": "identity.user.delete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Close an account",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.user.delete({\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity user delete --id 'string'"
          }
        ]
      }
    },
    "/identity/users": {
      "get": {
        "x-forge-group-name": "identity.users",
        "x-forge-method-name": "list",
        "description": "Lists people of the agency the request acts for, a page at a time with limit and nextToken; hasMore says whether another page follows. An admin gets the agency's users, each with their membership settings there, and its pending invitations in items; an advisor gets the accounts of the travelers they serve at the agency. For an admin, the where and fields query parameters narrow the rows and the fields each one carries. Advisors and admins only. Errors: 400 ERROR_UNAUTHORIZED for any other caller.",
        "operationId": "identity.users.list",
        "parameters": [
          {
            "description": "For an admin: the attributes each row carries, comma-separated, where a dotted path reaches inside one. type, userId, companyName, invitedBy and tenantId come too where the row has them, and so do a person's settings in the agency whenever they are a member. A person is listed only with a fullName of two or more characters, so fields without fullName list invitations alone.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "description": "For an admin: the attributes each row carries, comma-separated, where a dotted path reaches inside one. type, userId, companyName, invitedBy and tenantId come too where the row has them, and so do a person's settings in the agency whenever they are a member. A person is listed only with a fullName of two or more characters, so fields without fullName list invitations alone.",
              "type": "string"
            }
          },
          {
            "description": "How many rows a page reads: 30 when absent, at most 500 for an advisor. Filters apply after the read, so a page can hold fewer.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "How many rows a page reads: 30 when absent, at most 500 for an advisor. Filters apply after the read, so a page can hold fewer.",
              "type": "string"
            }
          },
          {
            "description": "Where the page starts: the nextToken of the previous page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "Where the page starts: the nextToken of the previous page.",
              "type": "string"
            }
          },
          {
            "description": "For an admin: ASC, the default, reads the rows in ascending order; any other value in descending order.",
            "in": "query",
            "name": "orderBy",
            "required": false,
            "schema": {
              "description": "For an admin: ASC, the default, reads the rows in ascending order; any other value in descending order.",
              "type": "string"
            }
          },
          {
            "description": "For an admin: which rows to keep. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: and(deleted:neq:true;role:eq:advisor).",
            "in": "query",
            "name": "where",
            "required": false,
            "schema": {
              "description": "For an admin: which rows to keep. A condition is field:operator:value with eq, neq, gt, gte, lt, lte, like, beginsWith, exists, inq or between (inq and between take values joined by |), several of one object joined by commas; and(…;…) and or(…;…) combine them. Example: and(deleted:neq:true;role:eq:advisor).",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityUsersListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List the agency's people",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.users.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity users list"
          }
        ]
      }
    },
    "/identity/users/resolve": {
      "post": {
        "x-forge-group-name": "identity.users",
        "x-forge-method-name": "resolve",
        "description": "Returns the names and avatars of up to 200 users by id, with the agency's AI assistant user first when its id is among them. Only the caller and the people who share an active agency with them are resolved (anyone for Nicer staff); the other ids are left out, as unknown ones are.",
        "operationId": "identity.users.resolve",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityUsersResolveBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityUsersResolveResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get the names of users",
        "tags": [
          "identity"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.identity.users.resolve({\n  \"userIds\": [\n    \"string\"\n  ]\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer identity users resolve --input - <<'JSON'\n{\n  \"userIds\": [\n    \"string\"\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/internova": {
      "get": {
        "x-forge-group-name": "internova",
        "x-forge-method-name": "list",
        "description": "Lists the hotels of the preferred hotel programs (program SELECT or CURATED) as the nightly catalog sync stores them, filtered by the encoded `where` tree the portal sends, reduced to the attributes in `fields` (comma-separated), 10 a page unless `limit` says otherwise, with `nextToken` the page number counted from 0. The answer carries the page's items, `nextToken` and `prevToken` (null at either end), the total count (`countHotel`), the number of pages (`countPages`) and how many items it shows (`showing`). Reads the whole catalog on every call. Any signed-in person may call it.",
        "operationId": "internova.list",
        "parameters": [
          {
            "description": "The attributes to keep on each hotel, comma-separated; a dotted path (hotelDetails.ratingNumber) keeps that part of an attribute. type is always kept. Every attribute when absent.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "description": "The attributes to keep on each hotel, comma-separated; a dotted path (hotelDetails.ratingNumber) keeps that part of an attribute. type is always kept. Every attribute when absent.",
              "type": "string"
            }
          },
          {
            "description": "Hotels a page: its leading digits, at least 1. 10 when absent or not a number.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "Hotels a page: its leading digits, at least 1. 10 when absent or not a number.",
              "type": "string"
            }
          },
          {
            "description": "The page to answer, counted from 0: the nextToken or prevToken of another page. The first page when absent or not a number.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "The page to answer, counted from 0: the nextToken or prevToken of another page. The first page when absent or not a number.",
              "type": "string"
            }
          },
          {
            "description": "The filter tree: and(…;…) and or(…;…) groups around field:operator:value conditions joined by commas, each value URL-encoded and a list of values joined by |. Operators: eq (also an unknown or missing one), neq, lt, lte, gt, gte, inq, between, like (every value a substring of the attribute, or a member of a list attribute), beginsWith and exists. Every hotel when absent.",
            "in": "query",
            "name": "where",
            "required": false,
            "schema": {
              "description": "The filter tree: and(…;…) and or(…;…) groups around field:operator:value conditions joined by commas, each value URL-encoded and a list of values joined by |. Operators: eq (also an unknown or missing one), neq, lt, lte, gt, gte, inq, between, like (every value a substring of the attribute, or a member of a list attribute), beginsWith and exists. Every hotel when absent.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternovaListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List preferred hotels",
        "tags": [
          "internova"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.internova.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer internova list"
          }
        ]
      }
    },
    "/internova/{internovaId}": {
      "get": {
        "x-forge-group-name": "internova",
        "x-forge-method-name": "get",
        "description": "Returns one hotel of the preferred hotel programs (program SELECT or CURATED), as the nightly catalog sync stores it, with an absolute URL for each photo. Any signed-in person may call it. Errors: 404 ERROR_ITEM_NOT_FOUND when no hotel has that id.",
        "operationId": "internova.get",
        "parameters": [
          {
            "in": "path",
            "name": "internovaId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InternovaGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a preferred hotel",
        "tags": [
          "internova"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.internova.get({\n  \"internovaId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer internova get --internova-id 'string'"
          }
        ]
      }
    },
    "/maintenance-tasks/send-email": {
      "post": {
        "x-forge-group-name": "maintenanceTasks",
        "x-forge-method-name": "sendEmail",
        "description": "With type welcome-email-advisor, sends the advisor welcome email to userId, an advisor of the caller's company, once per advisor however often it is asked; the join app calls it after sign-up. The reservation-confirmation-email type is retired and always answers 410 BOOKING_EMAIL_RETIRED.",
        "operationId": "maintenanceTasks.sendEmail",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MaintenanceTasksSendEmailBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send an advisor's welcome email",
        "tags": [
          "maintenance-tasks"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.maintenanceTasks.sendEmail({\n  \"type\": \"welcome-email-advisor\",\n  \"userId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer maintenance-tasks send-email --input - <<'JSON'\n{\n  \"type\": \"welcome-email-advisor\",\n  \"userId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/search/carriers": {
      "get": {
        "x-forge-group-name": "search.carriers",
        "x-forge-method-name": "list",
        "description": "Airlines by name, IATA or ICAO code from the travel reference, ranked with exact codes first. Airlines that stopped flying are left out. Anonymous calls share one budget across the search routes, 600 per hour per IP; a valid bearer token lifts it.",
        "operationId": "search.carriers.list",
        "parameters": [
          {
            "description": "An airline name, or its IATA or ICAO code.",
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100,
              "description": "An airline name, or its IATA or ICAO code."
            }
          },
          {
            "description": "Maximum airlines after ranking.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Maximum airlines after ranking.",
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CarriersResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search airlines",
        "tags": [
          "Search"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.search.carriers.list({\n  \"q\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer search carriers list --q 'string'"
          }
        ]
      }
    },
    "/search/flights/{flightNumber}": {
      "get": {
        "x-forge-group-name": "search.flights",
        "x-forge-method-name": "get",
        "description": "Resolves a flight number and a date to its scheduled legs, with airports from the travel reference, so a flight can be added to an itinerary without running a full search. Anonymous calls share one budget across the search routes, 600 per hour per IP; a valid bearer token lifts it.",
        "operationId": "search.flights.get",
        "parameters": [
          {
            "in": "path",
            "name": "flightNumber",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Departure date, YYYY-MM-DD.",
            "in": "query",
            "name": "date",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
              "description": "Departure date, YYYY-MM-DD."
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FlightLookupResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Look up a flight by number",
        "tags": [
          "Search"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.search.flights.get({\n  \"flightNumber\": \"string\",\n  \"date\": \"2019-08-24\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer search flights get --flight-number 'string' --date '2019-08-24'"
          }
        ]
      }
    },
    "/search/places": {
      "get": {
        "x-forge-group-name": "search.places",
        "x-forge-method-name": "list",
        "description": "Search hotels, cities, airports and places by text. Hotels come from the Smith and shared catalogs first, then Google; cities and airports from the travel reference. Anonymous calls share one budget across the search routes, 600 per hour per IP; a valid bearer token lifts it. `Accept: text/event-stream` streams ranked snapshots as sources finish.",
        "operationId": "search.places.list",
        "parameters": [
          {
            "description": "Free text: a hotel, city, airport or venue name.",
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2,
              "maxLength": 100,
              "description": "Free text: a hotel, city, airport or venue name."
            }
          },
          {
            "description": "Comma-separated kinds to return: hotel, city, airport, place. All kinds when omitted.",
            "in": "query",
            "name": "kinds",
            "required": false,
            "schema": {
              "description": "Comma-separated kinds to return: hotel, city, airport, place. All kinds when omitted.",
              "type": "string",
              "pattern": "^(?:hotel|city|airport|place)(?:,(?:hotel|city|airport|place))*$"
            }
          },
          {
            "description": "Google place type filter for `place` results, for example restaurant or tourist_attraction.",
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "description": "Google place type filter for `place` results, for example restaurant or tourist_attraction.",
              "type": "string",
              "minLength": 1,
              "maxLength": 40,
              "pattern": "^[a-z_]+$"
            }
          },
          {
            "description": "Maximum items after ranking.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 10,
              "description": "Maximum items after ranking.",
              "type": "integer",
              "minimum": 1,
              "maximum": 50
            }
          },
          {
            "description": "Photos per item in the list. The place details resource carries the full album.",
            "in": "query",
            "name": "photos",
            "required": false,
            "schema": {
              "default": 0,
              "description": "Photos per item in the list. The place details resource carries the full album.",
              "type": "integer",
              "minimum": 0,
              "maximum": 3
            }
          },
          {
            "description": "application/json (default) for one document, text/event-stream for ordered snapshots as sources finish.",
            "in": "header",
            "name": "Accept",
            "required": false,
            "schema": {
              "enum": [
                "application/json",
                "text/event-stream"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacesResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "type": "string"
                },
                "x-event-schema": {
                  "$ref": "#/components/schemas/PlacesStreamEvent"
                }
              }
            },
            "description": "JSON, or SSE frames when the request accepts text/event-stream (the event schema describes each frame's JSON data)."
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search places",
        "tags": [
          "Search"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.search.places.list({\n  \"q\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer search places list --q 'string'"
          }
        ]
      }
    },
    "/search/places/{placeId}": {
      "get": {
        "x-forge-group-name": "search.places",
        "x-forge-method-name": "get",
        "description": "The full record of one place from a places search: every image, amenities, description and reference data. Use it when creating a segment; the list is intentionally light. Anonymous calls share one budget across the search routes, 600 per hour per IP; a valid bearer token lifts it.",
        "operationId": "search.places.get",
        "parameters": [
          {
            "in": "path",
            "name": "placeId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlaceDetails"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get place details",
        "tags": [
          "Search"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.search.places.get({\n  \"placeId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer search places get --place-id 'string'"
          }
        ]
      }
    },
    "/stripe-support/webhook": {
      "post": {
        "x-forge-group-name": "stripeSupport",
        "x-forge-method-name": "webhook",
        "description": "Receives Stripe's event notifications: verifies the Stripe-Signature header over the raw body with the webhook secret and publishes each event on the event bus. Answers 400 when the payload or the signature is missing or does not verify.",
        "operationId": "stripeSupport.webhook",
        "parameters": [],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "webhookSignature": []
          }
        ],
        "summary": "Receive payment processor events",
        "tags": [
          "stripe-support"
        ]
      }
    },
    "/tokenization": {
      "post": {
        "x-forge-group-name": "tokenization",
        "x-forge-method-name": "create",
        "description": "Opens a card envelope the checkout sealed in the browser to the card intake key, validates the card and stores it encrypted, and answers its brand, last four digits and payment method id. Any signed-in person may call it: commerce authorizes the card for them before the envelope is opened. The same handler serves `POST /tokenization/payment-link` for a payment-link session.",
        "operationId": "tokenization.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TokenizationCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenizationCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Tokenize a sealed card",
        "tags": [
          "tokenization"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tokenization.create({\n  \"sealed\": {\n    \"v\": 1,\n    \"alg\": \"RSA-OAEP-256+A256GCM\",\n    \"kid\": \"string\",\n    \"wrappedKey\": \"string\",\n    \"nonce\": \"string\",\n    \"ciphertext\": \"string\"\n  }\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer tokenization create --input - <<'JSON'\n{\n  \"sealed\": {\n    \"v\": 1,\n    \"alg\": \"RSA-OAEP-256+A256GCM\",\n    \"kid\": \"string\",\n    \"wrappedKey\": \"string\",\n    \"nonce\": \"string\",\n    \"ciphertext\": \"string\"\n  }\n}\nJSON"
          }
        ]
      }
    },
    "/tokenization/intake-key": {
      "get": {
        "x-forge-group-name": "tokenization.intakeKey",
        "x-forge-method-name": "list",
        "description": "Returns the public key the checkout seals card data to before calling the tokenization routes, with the algorithm and key id the envelope must carry. Cacheable for an hour. Anyone may call it, without a token: the key is public.",
        "operationId": "tokenization.intakeKey.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenizationIntakeKeyListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [],
        "summary": "Card intake public key",
        "tags": [
          "tokenization"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tokenization.intakeKey.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer tokenization intake-key list"
          }
        ]
      }
    },
    "/tour-viator/destinations": {
      "get": {
        "x-forge-group-name": "tourViator.destinations",
        "x-forge-method-name": "list",
        "description": "Text search over the activities provider destinations, optionally bounded by a radius, used to anchor an activity search to a place.",
        "operationId": "tourViator.destinations.list",
        "parameters": [
          {
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 2
            }
          },
          {
            "in": "query",
            "name": "radiusKm",
            "required": false,
            "schema": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 200
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search tour destinations",
        "tags": [
          "Tours and activities"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tourViator.destinations.list({\n  \"query\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer tour-viator destinations list --query 'string'"
          }
        ]
      }
    },
    "/tour-viator/products": {
      "post": {
        "x-forge-group-name": "tourViator.products",
        "x-forge-method-name": "create",
        "description": "Searches the the activities provider catalogue for tours and activities and returns them already shaped as itinerary activity segments, with paging and the currency the prices are quoted in.",
        "operationId": "tourViator.products.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TourViatorProductsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TourViatorProductsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Search tours and activities",
        "tags": [
          "Tours and activities"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tourViator.products.create({\n  \"destinationId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer tour-viator products create --input - <<'JSON'\n{\n  \"destinationId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/tour-viator/products/{productCode}": {
      "get": {
        "x-forge-group-name": "tourViator.products",
        "x-forge-method-name": "get",
        "description": "Returns one the activities provider product by its product code, shaped as an itinerary activity segment. Because the provider's detail call carries no pricing, pass the price seen in search results to have it preserved on the segment.",
        "operationId": "tourViator.products.get",
        "parameters": [
          {
            "in": "path",
            "name": "productCode",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ItineraryActivitySegment"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a tour or activity",
        "tags": [
          "Tours and activities"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tourViator.products.get({\n  \"productCode\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer tour-viator products get --product-code 'string'"
          }
        ]
      }
    },
    "/travelers-trip": {
      "post": {
        "x-forge-group-name": "travelersTrip",
        "x-forge-method-name": "create",
        "description": "Opens a trip: the container every itinerary, proposal, message and order hangs off. Send at least a title, the travel dates and one destination. The trip is created together with its itinerary and its conversation, so a single call is enough to start planning. Dates accept any parseable date string and are stored as `YYYY-MM-DD`; the start date cannot be in the past and the end date must come after it. Any signed-in person may call it.",
        "operationId": "travelersTrip.create",
        "parameters": [],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelersTripCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Create a trip",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.create({\n  \"destinations\": [\n    {}\n  ],\n  \"hasFlexibleDates\": true,\n  \"tripEndDate\": \"string\",\n  \"tripStartDate\": \"string\",\n  \"tripTitle\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip create --input - <<'JSON'\n{\n  \"destinations\": [\n    {}\n  ],\n  \"hasFlexibleDates\": true,\n  \"tripEndDate\": \"string\",\n  \"tripStartDate\": \"string\",\n  \"tripTitle\": \"string\"\n}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "travelersTrip",
        "x-forge-method-name": "list",
        "description": "Returns one page of the trips the caller belongs to, newest first — 20 by default, at most 100, with `nextToken` for the next page. Travelers see their own trips; advisors and staff see the trips of the company they are signed in to. Each item carries the same derived `status` and `isArchived` as the single-trip endpoint, and trips whose end date has passed are archived as they are listed.",
        "operationId": "travelersTrip.list",
        "parameters": [
          {
            "description": "Comma-separated item fields to return, dotted for nested ones — for example `travelersTripId,tripTitle,destinations.name`; a leading `-` removes a path from what is kept. `nextToken` is always answered. Omitted, an item carries every projected field except the destination photo galleries, which are more than half the body: ask for `destinations.photos` to get them.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "description": "Comma-separated item fields to return, dotted for nested ones — for example `travelersTripId,tripTitle,destinations.name`; a leading `-` removes a path from what is kept. `nextToken` is always answered. Omitted, an item carries every projected field except the destination photo galleries, which are more than half the body: ask for `destinations.photos` to get them.",
              "type": "string"
            }
          },
          {
            "description": "URL-encoded `field=value` expressions joined by `&`, applied to the page after it is read — for example `status=PROPOSAL&isArchived=false`.",
            "in": "query",
            "name": "filter",
            "required": false,
            "schema": {
              "description": "URL-encoded `field=value` expressions joined by `&`, applied to the page after it is read — for example `status=PROPOSAL&isArchived=false`.",
              "type": "string"
            }
          },
          {
            "description": "Trips per page. Defaults to 20, at most 100.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "description": "Trips per page. Defaults to 20, at most 100.",
              "type": "string"
            }
          },
          {
            "description": "Cursor from the previous response. Omit for the first page.",
            "in": "query",
            "name": "nextToken",
            "required": false,
            "schema": {
              "description": "Cursor from the previous response. Omit for the first page.",
              "type": "string"
            }
          },
          {
            "description": "Order by creation time. Defaults to newest first.",
            "in": "query",
            "name": "sort",
            "required": false,
            "schema": {
              "description": "Order by creation time. Defaults to newest first.",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTripListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List trips",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip list"
          }
        ]
      }
    },
    "/travelers-trip/{travelersTripId}": {
      "get": {
        "x-forge-group-name": "travelersTrip",
        "x-forge-method-name": "get",
        "description": "Returns a single trip with its destinations, dates, travelers and the ids of the itinerary and conversation attached to it. `status` is derived on read from the trip dates and whether anything has been booked yet, so it is always current. Readable by the people on the trip, its advisor of record, the admins of the agency that owns it and Nicer staff; anyone else is refused (ERROR_UNAUTHORIZED), whatever the id.",
        "operationId": "travelersTrip.get",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTripGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a trip",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.get({\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip get --travelers-trip-id 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "travelersTrip",
        "x-forge-method-name": "update",
        "description": "Edits a trip in place. Every field is optional; only what you send changes. Moving `tripStartDate` or `tripEndDate` is checked against the segments already in the itinerary, so a date change that would orphan a booked segment is rejected instead of silently breaking the trip. The trip's primary traveler, its advisor of record (or the advisor who booked it for themselves), the admins of the agency that owns it and Nicer staff may call it; anyone else is refused (ERROR_UNAUTHORIZED).",
        "operationId": "travelersTrip.update",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelersTripUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a trip",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.update({\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip update --travelers-trip-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/travelers-trip/{travelersTripId}/header-photos": {
      "post": {
        "x-forge-group-name": "travelersTrip.headerPhotos",
        "x-forge-method-name": "create",
        "description": "Gives each destination of the trip a header photo it can show: a destination without a photo, with a place photo that expires, with the old picker's 500 px thumbnail or with a photo the media CDN can no longer serve gets a landscape photo picked for the place, saved on the trip. An advisor's own upload is kept while it loads. Anyone who can see the trip may call it; nothing they send is stored, and the answer is the trip as it is now.",
        "operationId": "travelersTrip.headerPhotos.create",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Refresh a trip's header photos",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.headerPhotos.create({\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip header-photos create --travelers-trip-id 'string'"
          }
        ]
      }
    },
    "/travelers-trip/{travelersTripId}/invite": {
      "post": {
        "x-forge-group-name": "travelersTrip",
        "x-forge-method-name": "invite",
        "description": "Invites a travel companion to a trip. A phone number, an email address or a name is enough. A person with a Nicer account joins the trip at once; a person without one becomes a traveler of the agency on the trip in the CRM, and joins the trip when they sign up, so a group can be assembled before everyone has an account. Returns the trip. Anyone who can see the trip may call it: the people on it, its advisor of record, the admins of the agency that owns it and Nicer staff.",
        "operationId": "travelersTrip.invite",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelersTripInviteBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTrip"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Invite a traveler to a trip",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.invite({\n  \"travelersTripId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip invite --travelers-trip-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/travelers-trip/{travelersTripId}/toggle-archive": {
      "post": {
        "x-forge-group-name": "travelersTrip",
        "x-forge-method-name": "toggleArchive",
        "description": "Archives or restores a trip for the caller only. Archiving hides the trip from their list and their inbox; everyone else on the trip keeps seeing it. Nothing is deleted. Anyone who can see the trip may call it: the people on it, its advisor of record, the admins of the agency that owns it and Nicer staff.",
        "operationId": "travelersTrip.toggleArchive",
        "parameters": [
          {
            "in": "path",
            "name": "travelersTripId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TravelersTripToggleArchiveBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TravelersTripToggleArchiveResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Archive or restore a trip",
        "tags": [
          "Trips"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.travelersTrip.toggleArchive({\n  \"travelersTripId\": \"string\",\n  \"isArchived\": true\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer travelers-trip toggle-archive --travelers-trip-id 'string' --input - <<'JSON'\n{\n  \"isArchived\": true\n}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary": {
      "get": {
        "x-forge-group-name": "tripItinerary",
        "x-forge-method-name": "list",
        "description": "Returns the itineraries the caller can see, each paired with its trip: ids, name, status, mode, counts, cost and the trip's title and dates, newest first. One page of 20 by default (`limit`, at most 100; `nextToken` for the next), so a caller never receives the whole account at once. The plan itself is not included — ask for `fields=itinerary.segments` to add it, or fetch one itinerary with GET /trip-itinerary/{tripItineraryId}. Segments follow that route's rule: commission and the provider's references for the agency's own advisors and admins and Nicer staff, which provider a segment comes from for Nicer staff only. `fields` names the parts of an item to return (dotted for nested, `-` to remove one; `nextToken` is always answered), `filter` takes `field||$op||value` expressions and `search` matches the itinerary or trip title.",
        "operationId": "tripItinerary.list",
        "parameters": [],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List trip itineraries",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.list();"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary list"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}": {
      "get": {
        "x-forge-group-name": "tripItinerary",
        "x-forge-method-name": "get",
        "description": "Returns an itinerary with each segment once — priced in USD, with its image URLs and the purchase behind it — plus the trip it belongs to and the policies that govern the traveler-facing view. Reachable without a token so a traveler can open a shared itinerary link, in which case the itinerary id is the only credential. A segment's commission (`commercialSnapshot`) and the provider's references are answered only to the agency's own advisors and admins and to Nicer staff, and which provider it comes from (`provider`, `metadata.provider`) only to Nicer staff.",
        "operationId": "tripItinerary.get",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Comma-separated response fields to return, dotted for nested ones and applied to every array element — for example `status,tripCost,travelersTrip.tripTitle,itinerary.segments.purchase`. A leading `-` removes a path from what is kept (`itinerary.segments,-itinerary.segments.rate`). Only the reads those fields need are made. Omit for the whole response.",
            "in": "query",
            "name": "fields",
            "required": false,
            "schema": {
              "description": "Comma-separated response fields to return, dotted for nested ones and applied to every array element — for example `status,tripCost,travelersTrip.tripTitle,itinerary.segments.purchase`. A leading `-` removes a path from what is kept (`itinerary.segments,-itinerary.segments.rate`). Only the reads those fields need are made. Omit for the whole response.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Get a trip itinerary",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.get({\n  \"tripItineraryId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary get --trip-itinerary-id 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "tripItinerary",
        "x-forge-method-name": "update",
        "x-forge-require-confirmation": "Update a trip itinerary. This may delete or overwrite what is there.",
        "description": "Changes the itinerary's status, mode, trip cost, notes or attachments, and re-synchronizes the trip's start and end dates with the segments. A field left out keeps its stored value; in AUTO mode the trip cost is always the sum of the segments. Requires an advisor.",
        "operationId": "tripItinerary.update",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItineraryUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryUpdateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a trip itinerary",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.update({\n  \"tripItineraryId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary update --trip-itinerary-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/agent-view": {
      "get": {
        "x-forge-group-name": "tripItinerary.agentView",
        "x-forge-method-name": "list",
        "description": "A compact view of one trip: its dates, destinations and travellers, plus one line per segment with the reason it is frozen when it is. A frozen segment has been paid for, held or booked — plan around it, never change or remove it. Carries no prices, commissions or provider payloads.",
        "operationId": "tripItinerary.agentView.list",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryAgentViewListResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Compact itinerary with lock reasons",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.agentView.list({\n  \"tripItineraryId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary agent-view list --trip-itinerary-id 'string'"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/documents": {
      "post": {
        "x-forge-group-name": "tripItinerary.documents",
        "x-forge-method-name": "create",
        "description": "Starts importing an itinerary PDF: returns a presigned S3 form that the browser posts one PDF of up to 25 MB to. Once it is uploaded, the segments read from the PDF are added to the itinerary (mode merge) or replace its segments (mode replace). Requires the trip's advisor or an admin.",
        "operationId": "tripItinerary.documents.create",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItineraryDocumentsCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryDocumentsCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Upload an itinerary PDF for import",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.documents.create({\n  \"tripItineraryId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary documents create --trip-itinerary-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/offers": {
      "post": {
        "x-forge-group-name": "tripItinerary.offers",
        "x-forge-method-name": "create",
        "description": "Adds a live offer (hotel room, flight or car rental) to the itinerary as a bookable segment: it re-validates the offer with the provider, saves it as a booking selection and writes the segment, in one call. Adding the same offer to the same trip again returns the segment already there. `status` is `OK` with the segment id, or `UNAVAILABLE` when the offer is gone (search again). A Sabre offer with no DK to book with (the advisor has none and the agency has no default DK) is refused with 422 `BOOKING_SABRE_DK_REQUIRED`.",
        "operationId": "tripItinerary.offers.create",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Company context. Authentication and tenant membership are validated by the API.",
            "in": "header",
            "name": "x-nicer-company",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItineraryOffersCreateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryOffersCreateResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add a live offer to the itinerary",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n  headers: { \"x-nicer-company\": process.env.NICER_COMPANY },\n});\n\nawait nicer.tripItinerary.offers.create({\n  \"tripItineraryId\": \"string\",\n  \"offerReference\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary offers create --trip-itinerary-id 'string' --company \"$NICER_COMPANY\" --input - <<'JSON'\n{\n  \"offerReference\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/public/approve-segment": {
      "post": {
        "x-forge-group-name": "tripItinerary.public",
        "x-forge-method-name": "approveSegment",
        "description": "Marks one segment of a shared itinerary as approved by the traveler. Reachable without a token so it works from the traveler's itinerary link, where the itinerary id is the only credential, and rate-limited per IP address.",
        "operationId": "tripItinerary.public.approveSegment",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItineraryPublicApproveSegmentBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryPublicApproveSegmentResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Approve a segment from a shared link",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.public.approveSegment({\n  \"tripItineraryId\": \"string\",\n  \"segmentId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary public approve-segment --trip-itinerary-id 'string' --input - <<'JSON'\n{\n  \"segmentId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/public/select-option-segment": {
      "post": {
        "x-forge-group-name": "tripItinerary.public",
        "x-forge-method-name": "selectOptionSegment",
        "x-forge-require-confirmation": "Choose an option from a shared link. This may delete or overwrite what is there.",
        "description": "Records the traveler's choice among the options offered on a segment of a shared itinerary. Reachable without a token so it works from the traveler's itinerary link, where the itinerary id is the only credential, and rate-limited per IP address.",
        "operationId": "tripItinerary.public.selectOptionSegment",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItineraryPublicSelectOptionSegmentBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItineraryPublicSelectOptionSegmentResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          },
          "429": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {},
          {
            "bearerAuth": []
          }
        ],
        "summary": "Choose an option from a shared link",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.public.selectOptionSegment({\n  \"tripItineraryId\": \"string\",\n  \"segmentId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary public select-option-segment --trip-itinerary-id 'string' --input - <<'JSON'\n{\n  \"segmentId\": \"string\"\n}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/segment": {
      "post": {
        "x-forge-group-name": "tripItinerary",
        "x-forge-method-name": "segment",
        "x-forge-require-confirmation": "Add, edit or remove segments. This may delete or overwrite what is there.",
        "description": "Applies a list of operations to one itinerary's segments and re-synchronises the trip dates. `add` may omit the segment id — the API derives a stable one from the content, so repeating the same add is a no-op rather than a duplicate. A segment that is paid, held or booked is frozen: `update` and `delete` on it are refused. Prices are minor units (cents).",
        "operationId": "tripItinerary.segment",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItinerarySegmentBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItinerarySegmentResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Add, edit or remove segments",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.segment({\n  \"tripItineraryId\": \"string\",\n  \"body\": {\n    \"operations\": [\n      {\n        \"operation\": \"delete\",\n        \"segment\": {\n          \"id\": \"string\"\n        }\n      }\n    ]\n  }\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary segment --trip-itinerary-id 'string' --input - <<'JSON'\n{\n  \"operations\": [\n    {\n      \"operation\": \"delete\",\n      \"segment\": {\n        \"id\": \"string\"\n      }\n    }\n  ]\n}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/send": {
      "post": {
        "x-forge-group-name": "tripItinerary",
        "x-forge-method-name": "send",
        "description": "Emails the itinerary to the travelers and records the delivery, returning the itinerary together with the addresses it went to. Requires an advisor.",
        "operationId": "tripItinerary.send",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItinerarySendBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TripItinerarySendResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Send an itinerary to travelers",
        "tags": [
          "Trip itinerary"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.tripItinerary.send({\n  \"tripItineraryId\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer trip-itinerary send --trip-itinerary-id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      }
    },
    "/trip-itinerary/{tripItineraryId}/webhook": {
      "post": {
        "x-forge-group-name": "tripItinerary",
        "x-forge-method-name": "webhook",
        "description": "Appends segments to a trip itinerary on behalf of an integration partner and re-synchronizes the trip dates. Not anonymous: the request must carry `x-nicer-webhook-timestamp`, `x-nicer-webhook-signature` and `Idempotency-Key`, and the handler verifies an HMAC-SHA256 signature over the raw body, rejecting anything outside a five-minute window with 401 `WEBHOOK_SIGNATURE_INVALID`. A segment id already present on the itinerary returns 409 `WEBHOOK_SEGMENT_ALREADY_EXISTS`.",
        "operationId": "tripItinerary.webhook",
        "parameters": [
          {
            "in": "path",
            "name": "tripItineraryId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TripItineraryWebhookBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "webhookSignature": []
          }
        ],
        "summary": "Add itinerary segments from a partner",
        "tags": [
          "Trip itinerary"
        ]
      }
    },
    "/user-places/{id}": {
      "delete": {
        "x-forge-group-name": "userPlaces",
        "x-forge-method-name": "delete",
        "x-forge-require-confirmation": "Delete a gallery photo. This deletes it.",
        "description": "Deletes one of the caller's own gallery photos for good, with its image, and answers the place as it was. Only the photo's owner may call it: the place is looked up under the caller.",
        "operationId": "userPlaces.delete",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPlaceModel"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Delete a gallery photo",
        "tags": [
          "User places"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.userPlaces.delete({\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer user-places delete --id 'string'"
          }
        ]
      },
      "put": {
        "x-forge-group-name": "userPlaces",
        "x-forge-method-name": "update",
        "description": "Corrects where one of the caller's own gallery photos was taken (city, state, country, country code, street address, postal code, latitude and longitude) or its description, and answers the place as stored. A changed country is looked up again for the photo's album. Only the photo's owner may call it: the place is looked up under the caller.",
        "operationId": "userPlaces.update",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UserPlacesUpdateBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPlaceModel"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Update a gallery photo's place",
        "tags": [
          "User places"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.userPlaces.update({\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer user-places update --id 'string' --input - <<'JSON'\n{}\nJSON"
          }
        ]
      },
      "get": {
        "x-forge-group-name": "userPlaces",
        "x-forge-method-name": "get",
        "description": "Lists the places of a person's travel gallery (userId): each photo they uploaded with where it was taken. With format byCountry the answer is one album per country, each with its cities, its last visit date and a representative location; otherwise it is one list with a total count. Any signed-in person may read anyone's gallery by userId: only its owner gets where each photo was taken exactly (latitude, longitude, street address and postal code), anyone else gets the city, state and country.",
        "operationId": "userPlaces.get",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "byCountry answers one album per country; any other value, or none, answers every photo in one list.",
            "in": "query",
            "name": "format",
            "required": false,
            "schema": {
              "description": "byCountry answers one album per country; any other value, or none, answers every photo in one list.",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserPlacesGetResponse"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "$ref": "#/components/responses/Error"
          },
          "401": {
            "$ref": "#/components/responses/Error"
          },
          "403": {
            "$ref": "#/components/responses/Error"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "List a person's travel gallery",
        "tags": [
          "User places"
        ],
        "x-codeSamples": [
          {
            "lang": "javascript",
            "label": "JavaScript SDK",
            "source": "import { createClient } from \"@nicertravel/sdk\";\n\nconst nicer = createClient({\n  baseUrl: \"https://api.nicer.travel\",\n  token: process.env.NICER_TOKEN,\n});\n\nawait nicer.userPlaces.get({\n  \"id\": \"string\"\n});"
          },
          {
            "lang": "bash",
            "label": "Nicer CLI",
            "source": "nicer user-places get --id 'string'"
          }
        ]
      }
    }
  },
  "servers": [
    {
      "description": "prod",
      "url": "https://api.nicer.travel"
    }
  ],
  "tags": [
    {
      "name": "backoffice"
    },
    {
      "name": "favorites"
    },
    {
      "name": "identity"
    },
    {
      "name": "maintenance-tasks"
    },
    {
      "name": "tokenization"
    },
    {
      "name": "assets"
    },
    {
      "name": "internova"
    },
    {
      "name": "stripe-support"
    },
    {
      "description": "Trips: the container every itinerary, conversation and order belongs to.",
      "name": "Trips"
    },
    {
      "description": "Search travel inventory, hold an offer as a selection and quote it before it becomes an order.",
      "name": "Booking"
    },
    {
      "description": "Orders, payments, payment methods and the finance ledger behind them.",
      "name": "Commerce"
    },
    {
      "description": "Build a trip itinerary, share it with travelers and collect their approvals. An itinerary is created with its trip, so every route here works on one that already exists.",
      "name": "Trip itinerary"
    },
    {
      "description": "Public lookups used by pickers: cities, flight numbers, venues and exchange rates.",
      "name": "Search"
    },
    {
      "description": "Tours and activities from the activities provider, shaped as itinerary segments.",
      "name": "Tours and activities"
    },
    {
      "description": "AI assistant: trip conversations, suggestions and text helpers.",
      "name": "Assistant"
    },
    {
      "description": "Messaging between advisors and travelers, per trip or direct.",
      "name": "Chat"
    },
    {
      "description": "Company-wide channels and direct messages, backed by the realtime service.",
      "name": "Community"
    },
    {
      "description": "Notes and tasks kept against a trip or a traveler.",
      "name": "Notes and tasks"
    },
    {
      "description": "Company configuration, currently promotions.",
      "name": "Company config"
    },
    {
      "description": "Places a user has saved, grouped into albums.",
      "name": "User places"
    },
    {
      "description": "Single sign-on into the cruise partner's booking tool.",
      "name": "Cruises"
    }
  ]
}
