changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "cart_id": {
- "maximum": 2147483647,
- "minimum": 1,
- "type": "integer"
- },
- "observed_at": {
- "format": "date-time",
- "type": "string"
- },
- "order": {
- "additionalProperties": false,
- "properties": {
- "state": {
- "enum": [
- "cart",
- "accepted",
- "cancelled",
- "awaiting_payment",
- "unavailable"
- ],
- "type": "string"
- },
- "state_code": {
- "type": "integer"
- }
- },
- "required": [
- "state_code",
- "state"
- ],
- "type": "object"
- },
- "payment": {
- "additionalProperties": false,
- "properties": {
- "accepted_amount": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "bank_observed_at": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "bank_status": {
- "enum": [
- "NOT_PREPARED",
- "PREPARED",
- "INITIAL",
- "WAITING_FOR_PAYMENT",
- "WAITING_AUTHORISATION",
- "WAITING_AUTHORISATION_TO_VALIDATE",
- "UNDER_VERIFICATION",
- "AUTHORISED_TO_VALIDATE",
- "AUTHORISED",
- "CAPTURED",
- "CAPTURE_FAILED",
- "REFUSED",
- "ABANDONED",
- "CANCELLED",
- "EXPIRED",
- "SUSPENDED"
- ]
- },
- "business_effects": {
- "enum": [
- "complete",
- "pending",
- "not_started"
- ]
- },
- "captured": {
- "type": "boolean"
- },
- "currency": {
- "const": "EUR"
- },
- "notice": {
- "type": "string"
- },
- "payment_method": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "enum": [
- null,
- "card",
- "transfer",
- "cheque"
- ]
- },
- "payment_status": {
- "enum": [
- "not_selected",
- "pending",
- "awaiting_receipt",
- "accepted",
- "captured",
- "reconciliation_required"
- ],
- "type": "string"
- },
- "settlement_received": {
- "const": false
- },
- "status": {
- "enum": [
- "ok",
- "confirmation_required",
- "reconciliation_required"
- ]
- }
- },
- "required": [
- "status",
- "bank_status",
- "bank_observed_at",
- "payment_status",
- "payment_method",
- "accepted_amount",
- "currency",
- "captured",
- "settlement_received",
- "business_effects",
- "notice"
- ],
- "type": "object"
- },
- "preparation": {
- "additionalProperties": false,
- "properties": {
- "delivery_documents": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "date": {
- "anyOf": [
- {
- "maxLength": 10,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "reference": {
- "anyOf": [
- {
- "maxLength": 20,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "reference",
- "date"
- ],
- "type": "object"
- },
- "maxItems": 99,
- "type": "array"
- },
- "documented_quantity": {
- "minimum": 0,
- "type": "integer"
- },
- "notice": {
- "maxLength": 500,
- "type": "string"
- },
- "ordered_quantity": {
- "minimum": 0,
- "type": "integer"
- },
- "status": {
- "enum": [
- "unavailable",
- "partially_documented",
- "documented"
- ],
- "type": "string"
- }
- },
- "required": [
- "status",
- "ordered_quantity",
- "documented_quantity",
- "delivery_documents",
- "notice"
- ],
- "type": "object"
- },
- "reference": {
- "maxLength": 100,
- "type": "string"
- },
- "schema_version": {
- "const": "1.0"
- },
- "shipment": {
- "additionalProperties": false,
- "properties": {
- "carrier": {
- "anyOf": [
- {
- "const": "GLS"
- },
- {
- "type": "null"
- }
- ]
- },
- "delivered_at": {
- "type": "null"
- },
- "departure_record": {
- "anyOf": [
- {
- "maxLength": 500,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "notice": {
- "maxLength": 500,
- "type": "string"
- },
- "status": {
- "enum": [
- "unavailable",
- "departure_recorded"
- ],
- "type": "string"
- },
- "tracking_number": {
- "type": "null"
- },
- "tracking_url": {
- "type": "null"
- }
- },
- "required": [
- "status",
- "departure_record",
- "carrier",
- "tracking_number",
- "tracking_url",
- "delivered_at",
- "notice"
- ],
- "type": "object"
- },
- "sources": {
- "items": {
- "maxLength": 100,
- "type": "string"
- },
- "maxItems": 5,
- "minItems": 5,
- "type": "array"
- },
- "status": {
- "const": "ok"
- },
- "unavailable": {
- "items": {
- "maxLength": 100,
- "type": "string"
- },
- "maxItems": 7,
- "type": "array",
- "uniqueItems": true
- }
- },
- "required": [
- "schema_version",
- "status",
- "observed_at",
- "cart_id",
- "reference",
- "order",
- "payment",
- "preparation",
- "shipment",
- "unavailable",
- "sources"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "BACKEND_ACCESS_DENIED",
- "INVALID_ARGUMENTS",
- "CART_ACCESS_DENIED",
- "ORDER_SOURCE_UNAVAILABLE",
- "CANONICAL_INVALID",
- "CANONICAL_UNAVAILABLE"
- ],
- "type": "string"
- },
- "message": {
- "maxLength": 500,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cart_id": {
+ "maximum": 2147483647,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "observed_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "order": {
+ "additionalProperties": false,
+ "properties": {
+ "state": {
+ "enum": [
+ "cart",
+ "accepted",
+ "cancelled",
+ "awaiting_payment",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "state_code": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "state_code",
+ "state"
+ ],
+ "type": "object"
+ },
+ "payment": {
+ "additionalProperties": false,
+ "properties": {
+ "accepted_amount": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "bank_observed_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "bank_status": {
+ "enum": [
+ "NOT_PREPARED",
+ "PREPARED",
+ "INITIAL",
+ "WAITING_FOR_PAYMENT",
+ "WAITING_AUTHORISATION",
+ "WAITING_AUTHORISATION_TO_VALIDATE",
+ "UNDER_VERIFICATION",
+ "AUTHORISED_TO_VALIDATE",
+ "AUTHORISED",
+ "CAPTURED",
+ "CAPTURE_FAILED",
+ "REFUSED",
+ "ABANDONED",
+ "CANCELLED",
+ "EXPIRED",
+ "SUSPENDED"
+ ]
+ },
+ "business_effects": {
+ "enum": [
+ "complete",
+ "pending",
+ "not_started"
+ ]
+ },
+ "captured": {
+ "type": "boolean"
+ },
+ "currency": {
+ "const": "EUR"
+ },
+ "notice": {
+ "type": "string"
+ },
+ "payment_method": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "enum": [
+ null,
+ "card",
+ "transfer",
+ "cheque"
+ ]
+ },
+ "payment_status": {
+ "enum": [
+ "not_selected",
+ "pending",
+ "awaiting_receipt",
+ "accepted",
+ "captured",
+ "reconciliation_required"
+ ],
+ "type": "string"
+ },
+ "settlement_received": {
+ "const": false
+ },
+ "status": {
+ "enum": [
+ "ok",
+ "confirmation_required",
+ "reconciliation_required"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "bank_status",
+ "bank_observed_at",
+ "payment_status",
+ "payment_method",
+ "accepted_amount",
+ "currency",
+ "captured",
+ "settlement_received",
+ "business_effects",
+ "notice"
+ ],
+ "type": "object"
+ },
+ "preparation": {
+ "additionalProperties": false,
+ "properties": {
+ "delivery_documents": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "date": {
+ "anyOf": [
+ {
+ "maxLength": 10,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "reference": {
+ "anyOf": [
+ {
+ "maxLength": 20,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "reference",
+ "date"
+ ],
+ "type": "object"
+ },
+ "maxItems": 99,
+ "type": "array"
+ },
+ "documented_quantity": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "notice": {
+ "maxLength": 500,
+ "type": "string"
+ },
+ "ordered_quantity": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "status": {
+ "enum": [
+ "unavailable",
+ "partially_documented",
+ "documented"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "ordered_quantity",
+ "documented_quantity",
+ "delivery_documents",
+ "notice"
+ ],
+ "type": "object"
+ },
+ "reference": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "1.0"
+ },
+ "shipment": {
+ "additionalProperties": false,
+ "properties": {
+ "carrier": {
+ "anyOf": [
+ {
+ "const": "GLS"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "delivered_at": {
+ "type": "null"
+ },
+ "departure_record": {
+ "anyOf": [
+ {
+ "maxLength": 500,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "notice": {
+ "maxLength": 500,
+ "type": "string"
+ },
+ "status": {
+ "enum": [
+ "unavailable",
+ "departure_recorded"
+ ],
+ "type": "string"
+ },
+ "tracking_number": {
+ "type": "null"
+ },
+ "tracking_url": {
+ "type": "null"
+ }
+ },
+ "required": [
+ "status",
+ "departure_record",
+ "carrier",
+ "tracking_number",
+ "tracking_url",
+ "delivered_at",
+ "notice"
+ ],
+ "type": "object"
+ },
+ "sources": {
+ "items": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "maxItems": 5,
+ "minItems": 5,
+ "type": "array"
+ },
+ "status": {
+ "const": "ok"
+ },
+ "unavailable": {
+ "items": {
+ "maxLength": 100,
+ "type": "string"
+ },
+ "maxItems": 7,
+ "type": "array",
+ "uniqueItems": true
+ },
+ "withdrawals": {
+ "additionalProperties": false,
+ "description": "Déclarations du journal privé, par réception décroissante. available et liste vide indiquent aucune déclaration trouvée. unavailable indique une lecture indisponible. La mention à traiter est une indication de suivi. Les états de commande, paiement et expédition conservent leurs propres sources.",
+ "properties": {
+ "declarations": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "const": "Rétractation reçue — à traiter"
+ },
+ "receipt_text": {
+ "type": "string"
+ },
+ "received_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "reference": {
+ "pattern": "^RET-[a-f0-9]{32}$",
+ "type": "string"
+ },
+ "scope": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "reference",
+ "received_at",
+ "scope",
+ "label",
+ "receipt_text"
+ ],
+ "type": "object"
+ },
+ "maxItems": 10,
+ "type": "array"
+ },
+ "has_more": {
+ "type": "boolean"
+ },
+ "status": {
+ "enum": [
+ "available",
+ "unavailable"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "declarations",
+ "has_more"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "schema_version",
+ "status",
+ "observed_at",
+ "cart_id",
+ "reference",
+ "order",
+ "payment",
+ "preparation",
+ "shipment",
+ "unavailable",
+ "sources"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "enum": [
+ "BACKEND_ACCESS_DENIED",
+ "INVALID_ARGUMENTS",
+ "CART_ACCESS_DENIED",
+ "ORDER_SOURCE_UNAVAILABLE",
+ "CANONICAL_INVALID",
+ "CANONICAL_UNAVAILABLE"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 500,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]