# Схема: OrderCompositionApplyRequest

Source: <https://telegafirst.com/docs/schema-c32bd181b0a85e4984b9b85592e00ec28ed416cfd3a1c899030fdc26a22677b9>
Locale: ru
releaseGitSha: fc570c76ffc9cb87e2462d45b14f5c1b52fbaf0d
sourceContentDigest: c96d66b5335d4c46928aeb50d341c71e452086ec2e75de32be9144c20feef397
Version: 2

# Схема: OrderCompositionApplyRequest

| Поле | Значение |
| - | - |
| oneOf.0.additionalProperties | false |
| oneOf.0.properties.expected\_amount.description | "Optional order total after the change, as reviewed by the caller; the change is refused with PRICE\_CHANGED when the recomposed total differs." |
| oneOf.0.properties.expected\_amount.pattern | "^(?:0\|\[1-9]\\\d{0,15})(?:\\\\.\\\d{1,2})?$" |
| oneOf.0.properties.expected\_amount.type | "string" |
| oneOf.0.properties.kind.enum | \["remove\_line"] |
| oneOf.0.properties.kind.type | "string" |
| oneOf.0.properties.line\_no.maximum | 2147483647 |
| oneOf.0.properties.line\_no.minimum | 1 |
| oneOf.0.properties.line\_no.type | "integer" |
| oneOf.0.required | \["kind","line\_no"] |
| oneOf.0.type | "object" |
| oneOf.1.additionalProperties | false |
| oneOf.1.properties.expected\_amount.description | "Optional order total after the change, as reviewed by the caller; the change is refused with PRICE\_CHANGED when the recomposed total differs." |
| oneOf.1.properties.expected\_amount.pattern | "^(?:0\|\[1-9]\\\d{0,15})(?:\\\\.\\\d{1,2})?$" |
| oneOf.1.properties.expected\_amount.type | "string" |
| oneOf.1.properties.kind.enum | \["set\_quantity"] |
| oneOf.1.properties.kind.type | "string" |
| oneOf.1.properties.line\_no.maximum | 2147483647 |
| oneOf.1.properties.line\_no.minimum | 1 |
| oneOf.1.properties.line\_no.type | "integer" |
| oneOf.1.properties.quantity.exclusiveMinimum | 0 |
| oneOf.1.properties.quantity.maximum | 999 |
| oneOf.1.properties.quantity.type | "integer" |
| oneOf.1.required | \["kind","line\_no","quantity"] |
| oneOf.1.type | "object" |
| oneOf.2.additionalProperties | false |
| oneOf.2.properties.expected\_amount.description | "Optional order total after the change, as reviewed by the caller; the change is refused with PRICE\_CHANGED when the recomposed total differs." |
| oneOf.2.properties.expected\_amount.pattern | "^(?:0\|\[1-9]\\\d{0,15})(?:\\\\.\\\d{1,2})?$" |
| oneOf.2.properties.expected\_amount.type | "string" |
| oneOf.2.properties.final\_unit\_amount.pattern | "^(?:0\|\[1-9]\\\d{0,15})(?:\\\\.\\\d{1,2})?$" |
| oneOf.2.properties.final\_unit\_amount.type | "string" |
| oneOf.2.properties.kind.enum | \["set\_line\_price"] |
| oneOf.2.properties.kind.type | "string" |
| oneOf.2.properties.line\_no.maximum | 2147483647 |
| oneOf.2.properties.line\_no.minimum | 1 |
| oneOf.2.properties.line\_no.type | "integer" |
| oneOf.2.properties.reason.maxLength | 1000 |
| oneOf.2.properties.reason.minLength | 1 |
| oneOf.2.properties.reason.type | \["string","null"] |
| oneOf.2.required | \["kind","line\_no","final\_unit\_amount"] |
| oneOf.2.type | "object" |
| oneOf.3.additionalProperties | false |
| oneOf.3.properties.catalog\_id.maximum | 2147483647 |
| oneOf.3.properties.catalog\_id.minimum | 1 |
| oneOf.3.properties.catalog\_id.type | "integer" |
| oneOf.3.properties.expected\_amount.description | "Optional order total after the change, as reviewed by the caller; the change is refused with PRICE\_CHANGED when the recomposed total differs." |
| oneOf.3.properties.expected\_amount.pattern | "^(?:0\|\[1-9]\\\d{0,15})(?:\\\\.\\\d{1,2})?$" |
| oneOf.3.properties.expected\_amount.type | "string" |
| oneOf.3.properties.kind.enum | \["add\_line"] |
| oneOf.3.properties.kind.type | "string" |
| oneOf.3.properties.note.maxLength | 500 |
| oneOf.3.properties.note.type | \["string","null"] |
| oneOf.3.properties.quantity.exclusiveMinimum | 0 |
| oneOf.3.properties.quantity.maximum | 999 |
| oneOf.3.properties.quantity.type | "integer" |
| oneOf.3.properties.selected\_options.additionalProperties.items.pattern | "^\[a-z0-9\_]{1,16}$" |
| oneOf.3.properties.selected\_options.additionalProperties.items.type | "string" |
| oneOf.3.properties.selected\_options.additionalProperties.minItems | 1 |
| oneOf.3.properties.selected\_options.additionalProperties.type | "array" |
| oneOf.3.properties.selected\_options.type | "object" |
| oneOf.3.required | \["kind","catalog\_id","quantity"] |
| oneOf.3.type | "object" |
| oneOf.4.additionalProperties | false |
| oneOf.4.properties.expected\_amount.description | "Optional order total after the change, as reviewed by the caller; the change is refused with PRICE\_CHANGED when the recomposed total differs." |
| oneOf.4.properties.expected\_amount.pattern | "^(?:0\|\[1-9]\\\d{0,15})(?:\\\\.\\\d{1,2})?$" |
| oneOf.4.properties.expected\_amount.type | "string" |
| oneOf.4.properties.kind.enum | \["set\_variant"] |
| oneOf.4.properties.kind.type | "string" |
| oneOf.4.properties.line\_no.maximum | 2147483647 |
| oneOf.4.properties.line\_no.minimum | 1 |
| oneOf.4.properties.line\_no.type | "integer" |
| oneOf.4.properties.selected\_options.additionalProperties.items.pattern | "^\[a-z0-9\_]{1,16}$" |
| oneOf.4.properties.selected\_options.additionalProperties.items.type | "string" |
| oneOf.4.properties.selected\_options.additionalProperties.minItems | 1 |
| oneOf.4.properties.selected\_options.additionalProperties.type | "array" |
| oneOf.4.properties.selected\_options.type | "object" |
| oneOf.4.required | \["kind","line\_no","selected\_options"] |
| oneOf.4.type | "object" |
