changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "accepted_amount": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "action": {
- "oneOf": [
- {
- "type": "null"
- },
- {
- "additionalProperties": false,
- "properties": {
- "expires_at": {
- "format": "date-time",
- "type": [
- "string",
- "null"
- ]
- },
- "provider": {
- "const": "Scellius / La Banque Postale"
- },
- "type": {
- "const": "open_secure_payment"
- },
- "url": {
- "pattern": "^https://mcp\\.nitech\\.fr/payments/(?:start\\?attempt=[a-f0-9]{32}&token=[a-f0-9]{64}|choose\\?cart_id=[1-9][0-9]*&access=p2\\.[0-7]\\.[a-f0-9]{64})$",
- "type": "string"
- }
- },
- "required": [
- "type",
- "url",
- "expires_at",
- "provider"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "bank": {
- "type": [
- "string",
- "null"
- ]
- },
- "bic": {
- "type": [
- "string",
- "null"
- ]
- },
- "currency": {
- "const": "EUR"
- },
- "deadline": {
- "type": "string"
- },
- "iban": {
- "type": [
- "string",
- "null"
- ]
- },
- "payee": {
- "minLength": 1,
- "type": "string"
- },
- "payment_method": {
- "enum": [
- "cheque",
- "transfer"
- ]
- },
- "postal_address": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "receipt_status": {
- "const": "awaiting_receipt"
- },
- "reference": {
- "type": "string"
- },
- "reference_instruction": {
- "type": "string"
- },
- "rib_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "type": {
- "const": "payment_instructions"
- }
- },
- "required": [
- "postal_address",
- "amount",
- "payee",
- "reference",
- "currency",
- "bic",
- "iban",
- "payment_method",
- "receipt_status",
- "type",
- "deadline",
- "rib_url",
- "reference_instruction",
- "bank"
- ],
- "type": "object"
- }
- ]
- },
- "amount_to_pay": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "attempt_id": {
- "type": [
- "string",
- "null"
- ]
- },
- "available_methods": {
- "items": {
- "enum": [
- "card",
- "transfer",
- "cheque"
- ]
- },
- "type": "array",
- "uniqueItems": true
- },
- "bank_history": {
- "additionalProperties": false,
- "properties": {
- "cancelled": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "commercial_review_required": {
- "type": "boolean"
- },
- "debit": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "events": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "disposition": {
- "type": "string"
- },
- "event_id": {
- "type": "string"
- },
- "fact": {
- "additionalProperties": {
- "type": "string"
- },
- "type": "object"
- },
- "received_at": {
- "format": "date-time",
- "type": "string"
- },
- "source": {
- "type": "string"
- }
- },
- "required": [
- "event_id",
- "received_at",
- "source",
- "disposition",
- "fact"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "net": {
- "pattern": "^-?[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "next_action": {
- "type": "string"
- },
- "operations": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "amount": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "bank_created_at": {
- "pattern": "^[0-9]{14}$",
- "type": "string"
- },
- "bank_uuid": {
- "pattern": "^[a-f0-9]{32}$",
- "type": "string"
- },
- "event_id": {
- "pattern": "^[a-f0-9]{64}$",
- "type": "string"
- },
- "initial_amount": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "operation": {
- "enum": [
- "DEBIT",
- "CREDIT"
- ]
- },
- "original_attempt": {
- "pattern": "^[a-f0-9]{32}$",
- "type": "string"
- },
- "status": {
- "type": "string"
- }
- },
- "required": [
- "bank_uuid",
- "original_attempt",
- "operation",
- "status",
- "amount",
- "initial_amount",
- "bank_created_at",
- "event_id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "pending_events": {
- "minimum": 0,
- "type": "integer"
- },
- "reduced_before_capture": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- },
- "refunded": {
- "pattern": "^[0-9]+\\.[0-9]{2}$",
- "type": "string"
- }
- },
- "required": [
- "operations",
- "debit",
- "refunded",
- "net",
- "reduced_before_capture",
- "cancelled",
- "commercial_review_required",
- "pending_events",
- "next_action",
- "events"
- ],
- "type": "object"
- },
- "bank_observed_at": {
- "type": [
- "string",
- "null"
- ]
- },
- "bank_reference": {
- "type": [
- "string",
- "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"
- },
- "cart_id": {
- "maximum": 2147483647,
- "minimum": 1,
- "type": "integer"
- },
- "cart_state": {
- "type": "integer"
- },
- "confirmation_token": {
- "pattern": "^[0-9]{10}\\.[a-f0-9]{64}$",
- "type": "string"
- },
- "currency": {
- "const": "EUR"
- },
- "delivery_state": {
- "enum": [
- null,
- "LEGACY_UNKNOWN",
- "UNISSUED",
- "ISSUED",
- "RELEASED_UNISSUED"
- ]
- },
- "handoff_available": {
- "type": "boolean"
- },
- "method_change_allowed": {
- "type": "boolean"
- },
- "notice": {
- "type": "string"
- },
- "origin": {
- "const": "MCP"
- },
- "payment_method": {
- "enum": [
- null,
- "card",
- "transfer",
- "cheque"
- ],
- "type": [
- "string",
- "null"
- ]
- },
- "payment_page": {
- "pattern": "^https://mcp\\.nitech\\.fr/payments/choose\\?cart_id=[1-9][0-9]*&access=",
- "type": "string"
- },
- "payment_status": {
- "enum": [
- "not_selected",
- "pending",
- "awaiting_receipt",
- "accepted",
- "captured",
- "reconciliation_required"
- ],
- "type": "string"
- },
- "reference": {
- "pattern": "^MCP-[1-9][0-9]*$",
- "type": "string"
- },
- "requested_method": {
- "enum": [
- "card",
- "transfer",
- "cheque"
- ],
- "type": "string"
- },
- "schema_version": {
- "const": "2.0"
- },
- "settlement_received": {
- "const": false
- },
- "status": {
- "enum": [
- "ok",
- "confirmation_required",
- "reconciliation_required"
- ]
- }
- },
- "required": [
- "notice",
- "accepted_amount",
- "bank_observed_at",
- "currency",
- "settlement_received",
- "schema_version",
- "cart_id",
- "bank_reference",
- "bank_status",
- "origin",
- "captured",
- "status",
- "reference",
- "cart_state",
- "action",
- "business_effects",
- "amount_to_pay",
- "attempt_id"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- }
- },
- "required": [
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "accepted_amount": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "action": {
+ "oneOf": [
+ {
+ "type": "null"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "expires_at": {
+ "format": "date-time",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "provider": {
+ "const": "Scellius / La Banque Postale"
+ },
+ "type": {
+ "const": "open_secure_payment"
+ },
+ "url": {
+ "pattern": "^https://mcp\\.nitech\\.fr/payments/(?:start\\?attempt=[a-f0-9]{32}&token=[a-f0-9]{64}|(?:choose|card)\\?cart_id=[1-9][0-9]*&access=p2\\.[0-7]\\.[a-f0-9]{64})$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "type",
+ "url",
+ "expires_at",
+ "provider"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "bank": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bic": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "currency": {
+ "const": "EUR"
+ },
+ "deadline": {
+ "type": "string"
+ },
+ "iban": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payee": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "payment_method": {
+ "enum": [
+ "cheque",
+ "transfer"
+ ]
+ },
+ "postal_address": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "receipt_status": {
+ "const": "awaiting_receipt"
+ },
+ "reference": {
+ "type": "string"
+ },
+ "reference_instruction": {
+ "type": "string"
+ },
+ "rib_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "type": {
+ "const": "payment_instructions"
+ }
+ },
+ "required": [
+ "postal_address",
+ "amount",
+ "payee",
+ "reference",
+ "currency",
+ "bic",
+ "iban",
+ "payment_method",
+ "receipt_status",
+ "type",
+ "deadline",
+ "rib_url",
+ "reference_instruction",
+ "bank"
+ ],
+ "type": "object"
+ }
+ ]
+ },
+ "amount_to_pay": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "attempt_id": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "available_methods": {
+ "items": {
+ "enum": [
+ "card",
+ "transfer",
+ "cheque"
+ ]
+ },
+ "type": "array",
+ "uniqueItems": true
+ },
+ "bank_history": {
+ "additionalProperties": false,
+ "properties": {
+ "cancelled": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "commercial_review_required": {
+ "type": "boolean"
+ },
+ "debit": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "events": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "disposition": {
+ "type": "string"
+ },
+ "event_id": {
+ "type": "string"
+ },
+ "fact": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "received_at": {
+ "format": "date-time",
+ "type": "string"
+ },
+ "source": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "event_id",
+ "received_at",
+ "source",
+ "disposition",
+ "fact"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "net": {
+ "pattern": "^-?[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "next_action": {
+ "type": "string"
+ },
+ "operations": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "amount": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "bank_created_at": {
+ "pattern": "^[0-9]{14}$",
+ "type": "string"
+ },
+ "bank_uuid": {
+ "pattern": "^[a-f0-9]{32}$",
+ "type": "string"
+ },
+ "event_id": {
+ "pattern": "^[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "initial_amount": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "operation": {
+ "enum": [
+ "DEBIT",
+ "CREDIT"
+ ]
+ },
+ "original_attempt": {
+ "pattern": "^[a-f0-9]{32}$",
+ "type": "string"
+ },
+ "status": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "bank_uuid",
+ "original_attempt",
+ "operation",
+ "status",
+ "amount",
+ "initial_amount",
+ "bank_created_at",
+ "event_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "pending_events": {
+ "minimum": 0,
+ "type": "integer"
+ },
+ "reduced_before_capture": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ },
+ "refunded": {
+ "pattern": "^[0-9]+\\.[0-9]{2}$",
+ "type": "string"
+ }
+ },
+ "required": [
+ "operations",
+ "debit",
+ "refunded",
+ "net",
+ "reduced_before_capture",
+ "cancelled",
+ "commercial_review_required",
+ "pending_events",
+ "next_action",
+ "events"
+ ],
+ "type": "object"
+ },
+ "bank_observed_at": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "bank_reference": {
+ "type": [
+ "string",
+ "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"
+ },
+ "cart_id": {
+ "maximum": 2147483647,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "cart_state": {
+ "type": "integer"
+ },
+ "confirmation_token": {
+ "pattern": "^[0-9]{10}\\.[a-f0-9]{64}$",
+ "type": "string"
+ },
+ "currency": {
+ "const": "EUR"
+ },
+ "delivery_state": {
+ "enum": [
+ null,
+ "LEGACY_UNKNOWN",
+ "UNISSUED",
+ "ISSUED",
+ "RELEASED_UNISSUED"
+ ]
+ },
+ "handoff_available": {
+ "type": "boolean"
+ },
+ "method_change_allowed": {
+ "type": "boolean"
+ },
+ "notice": {
+ "type": "string"
+ },
+ "origin": {
+ "const": "MCP"
+ },
+ "payment_method": {
+ "enum": [
+ null,
+ "card",
+ "transfer",
+ "cheque"
+ ],
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "payment_page": {
+ "pattern": "^https://mcp\\.nitech\\.fr/payments/choose\\?cart_id=[1-9][0-9]*&access=",
+ "type": "string"
+ },
+ "payment_status": {
+ "enum": [
+ "not_selected",
+ "pending",
+ "awaiting_receipt",
+ "accepted",
+ "captured",
+ "reconciliation_required"
+ ],
+ "type": "string"
+ },
+ "reference": {
+ "pattern": "^MCP-[1-9][0-9]*$",
+ "type": "string"
+ },
+ "requested_method": {
+ "enum": [
+ "card",
+ "transfer",
+ "cheque"
+ ],
+ "type": "string"
+ },
+ "schema_version": {
+ "const": "2.0"
+ },
+ "settlement_received": {
+ "const": false
+ },
+ "status": {
+ "enum": [
+ "ok",
+ "confirmation_required",
+ "reconciliation_required"
+ ]
+ }
+ },
+ "required": [
+ "notice",
+ "accepted_amount",
+ "bank_observed_at",
+ "currency",
+ "settlement_received",
+ "schema_version",
+ "cart_id",
+ "bank_reference",
+ "bank_status",
+ "origin",
+ "captured",
+ "status",
+ "reference",
+ "cart_state",
+ "action",
+ "business_effects",
+ "amount_to_pay",
+ "attempt_id"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "type": "string"
+ },
+ "message": {
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "error"
+ ],
+ "type": "object"
+ }
+]