# Схема: prepare\_manual\_sale: inputSchema

Source: <https://telegafirst.com/docs/schema-6020e7c26568a9eea5bc7ab1ec0a690b9632e8b42ea4bdb604384bf2387da5a1>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: 0a1a7f57f089da9a87e80ff8030507505cb21b108be449b065799e5aff7d62a4
Version: 2

# Схема: prepare\_manual\_sale: inputSchema

| Поле | Значение |
| - | - |
| $schema | "<https://json-schema.org/draft/2020-12/schema>" |
| anyOf.0.additionalProperties | false |
| anyOf.0.description | "Value for input option." |
| anyOf.0.properties.bot.description | "Optional slug of the bot you expect to act on (get\_active\_bot). If the active bot differs, the call is refused with ACTIVE\_BOT\_CHANGED and nothing runs." |
| anyOf.0.properties.bot.maxLength | 128 |
| anyOf.0.properties.bot.minLength | 1 |
| anyOf.0.properties.bot.type | "string" |
| anyOf.0.properties.comment.description | "Value for comment." |
| anyOf.0.properties.comment.maxLength | 2000 |
| anyOf.0.properties.comment.minLength | 1 |
| anyOf.0.properties.comment.type | "string" |
| anyOf.0.properties.delivery\_method\_id.description | "Value for delivery method id." |
| anyOf.0.properties.delivery\_method\_id.maximum | 2147483647 |
| anyOf.0.properties.delivery\_method\_id.minimum | 1 |
| anyOf.0.properties.delivery\_method\_id.type | "integer" |
| anyOf.0.properties.lines.description | "Value for lines." |
| anyOf.0.properties.lines.items.additionalProperties | false |
| anyOf.0.properties.lines.items.description | "Value for lines item." |
| anyOf.0.properties.lines.items.properties.booking\_slot.additionalProperties | false |
| anyOf.0.properties.lines.items.properties.booking\_slot.description | "Value for booking slot." |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.end\_at.description | "Value for end at." |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.end\_at.format | "date-time" |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.end\_at.pattern | "^(?:(?:\\\d\\\d\[2468]\[048]\|\\\d\\\d\[13579]\[26]\|\\\d\\\d0\[48]\|\[02468]\[048]00\|\[13579]\[26]00)-02-29\|\\\d{4}-(?:(?:0\[13578]\|1\[02])-(?:0\[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))$" |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.end\_at.type | "string" |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.resource\_id.description | "Value for resource id." |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.resource\_id.maximum | 2147483647 |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.resource\_id.minimum | 1 |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.resource\_id.type | "integer" |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.start\_at.description | "Value for start at." |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.start\_at.format | "date-time" |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.start\_at.pattern | "^(?:(?:\\\d\\\d\[2468]\[048]\|\\\d\\\d\[13579]\[26]\|\\\d\\\d0\[48]\|\[02468]\[048]00\|\[13579]\[26]00)-02-29\|\\\d{4}-(?:(?:0\[13578]\|1\[02])-(?:0\[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))$" |
| anyOf.0.properties.lines.items.properties.booking\_slot.properties.start\_at.type | "string" |
| anyOf.0.properties.lines.items.properties.booking\_slot.required | \["resource\_id","start\_at"] |
| anyOf.0.properties.lines.items.properties.booking\_slot.type | "object" |
| anyOf.0.properties.lines.items.properties.catalog\_id.description | "Value for catalog id." |
| anyOf.0.properties.lines.items.properties.catalog\_id.maximum | 2147483647 |
| anyOf.0.properties.lines.items.properties.catalog\_id.minimum | 1 |
| anyOf.0.properties.lines.items.properties.catalog\_id.type | "integer" |
| anyOf.0.properties.lines.items.properties.combination\_key.description | "Value for combination key." |
| anyOf.0.properties.lines.items.properties.combination\_key.maxLength | 256 |
| anyOf.0.properties.lines.items.properties.combination\_key.minLength | 1 |
| anyOf.0.properties.lines.items.properties.combination\_key.type | "string" |
| anyOf.0.properties.lines.items.properties.price.additionalProperties | false |
| anyOf.0.properties.lines.items.properties.price.description | "Value for price." |
| anyOf.0.properties.lines.items.properties.price.properties.amount.description | "Value for amount." |
| anyOf.0.properties.lines.items.properties.price.properties.amount.pattern | "^\\\d{1,16}(?:\\\\.\\\d{1,2})?$" |
| anyOf.0.properties.lines.items.properties.price.properties.amount.type | "string" |
| anyOf.0.properties.lines.items.properties.price.properties.currency.description | "Value for currency." |
| anyOf.0.properties.lines.items.properties.price.properties.currency.pattern | "^\[A-Z]{3,5}$" |
| anyOf.0.properties.lines.items.properties.price.properties.currency.type | "string" |
| anyOf.0.properties.lines.items.properties.price.required | \["amount","currency"] |
| anyOf.0.properties.lines.items.properties.price.type | "object" |
| anyOf.0.properties.lines.items.properties.quantity.description | "Value for quantity." |
| anyOf.0.properties.lines.items.properties.quantity.maximum | 999 |
| anyOf.0.properties.lines.items.properties.quantity.minimum | 1 |
| anyOf.0.properties.lines.items.properties.quantity.type | "integer" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.description | "Value for ticket holders." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.additionalProperties | false |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.description | "Value for ticket holders item option." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.additionalProperties.maxLength | 256 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.additionalProperties.type | "string" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.default | {} |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.description | "Value for fields." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.propertyNames.maxLength | 64 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.propertyNames.type | "string" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.fields.type | "object" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.first\_name.description | "Value for first name." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.first\_name.maxLength | 64 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.first\_name.minLength | 1 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.first\_name.type | "string" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.last\_name.description | "Value for last name." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.last\_name.maxLength | 64 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.last\_name.minLength | 1 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.properties.last\_name.type | "string" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.required | \["first\_name","last\_name","fields"] |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.0.type | "object" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.1.description | "Value for ticket holders item option." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.anyOf.1.type | "null" |
| anyOf.0.properties.lines.items.properties.ticket\_holders.items.description | "Value for ticket holders item." |
| anyOf.0.properties.lines.items.properties.ticket\_holders.maxItems | 10 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.minItems | 1 |
| anyOf.0.properties.lines.items.properties.ticket\_holders.type | "array" |
| anyOf.0.properties.lines.items.required | \["catalog\_id","quantity"] |
| anyOf.0.properties.lines.items.type | "object" |
| anyOf.0.properties.lines.maxItems | 50 |
| anyOf.0.properties.lines.minItems | 1 |
| anyOf.0.properties.lines.type | "array" |
| anyOf.0.properties.payment\_mode.description | "Value for payment mode." |
| anyOf.0.properties.payment\_mode.enum | \["manual","invoice","deferred"] |
| anyOf.0.properties.payment\_mode.type | "string" |
| anyOf.0.properties.settlement.additionalProperties | false |
| anyOf.0.properties.settlement.description | "Value for settlement." |
| anyOf.0.properties.settlement.properties.note.description | "Value for note." |
| anyOf.0.properties.settlement.properties.note.maxLength | 500 |
| anyOf.0.properties.settlement.properties.note.minLength | 1 |
| anyOf.0.properties.settlement.properties.note.type | "string" |
| anyOf.0.properties.settlement.properties.type.description | "Value for type." |
| anyOf.0.properties.settlement.properties.type.enum | \["cash","bank\_transfer","transfer"] |
| anyOf.0.properties.settlement.properties.type.type | "string" |
| anyOf.0.properties.settlement.required | \["type"] |
| anyOf.0.properties.settlement.type | "object" |
| anyOf.0.properties.user\_id.description | "Value for user id." |
| anyOf.0.properties.user\_id.maximum | 2147483647 |
| anyOf.0.properties.user\_id.minimum | 1 |
| anyOf.0.properties.user\_id.type | "integer" |
| anyOf.0.required | \["user\_id","lines","payment\_mode"] |
| anyOf.0.type | "object" |
| anyOf.1.additionalProperties | false |
| anyOf.1.description | "Value for input option." |
| anyOf.1.properties.bot.description | "Optional slug of the bot you expect to act on (get\_active\_bot). If the active bot differs, the call is refused with ACTIVE\_BOT\_CHANGED and nothing runs." |
| anyOf.1.properties.bot.maxLength | 128 |
| anyOf.1.properties.bot.minLength | 1 |
| anyOf.1.properties.bot.type | "string" |
| anyOf.1.properties.comment.description | "Value for comment." |
| anyOf.1.properties.comment.maxLength | 2000 |
| anyOf.1.properties.comment.minLength | 1 |
| anyOf.1.properties.comment.type | "string" |
| anyOf.1.properties.payment\_mode.description | "Value for payment mode." |
| anyOf.1.properties.payment\_mode.enum | \["manual","invoice","deferred"] |
| anyOf.1.properties.payment\_mode.type | "string" |
| anyOf.1.properties.price.additionalProperties | false |
| anyOf.1.properties.price.description | "Value for price." |
| anyOf.1.properties.price.properties.amount.description | "Value for amount." |
| anyOf.1.properties.price.properties.amount.pattern | "^\\\d{1,16}(?:\\\\.\\\d{1,2})?$" |
| anyOf.1.properties.price.properties.amount.type | "string" |
| anyOf.1.properties.price.properties.currency.description | "Value for currency." |
| anyOf.1.properties.price.properties.currency.pattern | "^\[A-Z]{3,5}$" |
| anyOf.1.properties.price.properties.currency.type | "string" |
| anyOf.1.properties.price.required | \["amount","currency"] |
| anyOf.1.properties.price.type | "object" |
| anyOf.1.properties.registration\_id.description | "Value for registration id." |
| anyOf.1.properties.registration\_id.maximum | 2147483647 |
| anyOf.1.properties.registration\_id.minimum | 1 |
| anyOf.1.properties.registration\_id.type | "integer" |
| anyOf.1.properties.settlement.additionalProperties | false |
| anyOf.1.properties.settlement.description | "Value for settlement." |
| anyOf.1.properties.settlement.properties.note.description | "Value for note." |
| anyOf.1.properties.settlement.properties.note.maxLength | 500 |
| anyOf.1.properties.settlement.properties.note.minLength | 1 |
| anyOf.1.properties.settlement.properties.note.type | "string" |
| anyOf.1.properties.settlement.properties.type.description | "Value for type." |
| anyOf.1.properties.settlement.properties.type.enum | \["cash","bank\_transfer","transfer"] |
| anyOf.1.properties.settlement.properties.type.type | "string" |
| anyOf.1.properties.settlement.required | \["type"] |
| anyOf.1.properties.settlement.type | "object" |
| anyOf.1.required | \["registration\_id","payment\_mode"] |
| anyOf.1.type | "object" |
