{
    "openapi": "3.1.0",
    "info": {
        "title": "E-Receipts IT API - MF2",
        "description": "The MF2 API is used by Suppliers to manage their Merchants and their PEMs: onboarding Merchants and their ATECO codes, creating and discarding PEMs, managing the PEM configuration and receipt logo, and uploading emergency reports.",
        "version": "1.0.0"
    },
    "servers": [
        {
            "url": "https://ereceipts-it-sandbox.acubeapi.com",
            "description": "Sandbox environment"
        },
        {
            "url": "https://ereceipts-it.acubeapi.com",
            "description": "Production environment"
        }
    ],
    "paths": {
        "/v1/mf2/pems/{serial_number}/emergency-reports": {
            "get": {
                "operationId": "api_v1mf2pems_serial_numberemergency-reports_get_collection",
                "tags": [
                    "EmergencyReport"
                ],
                "responses": {
                    "200": {
                        "description": "EmergencyReport collection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/EmergencyReport.EmergencyReportOutput"
                                    }
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "description": "EmergencyReport.EmergencyReportOutput.jsonld collection.",
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                                        },
                                        {
                                            "type": "object",
                                            "required": [
                                                "member"
                                            ],
                                            "properties": {
                                                "member": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/EmergencyReport.EmergencyReportOutput.jsonld"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    }
                },
                "summary": "Retrieve the collection of Emergency Report resources",
                "description": "Retrieve the collection of Emergency Report resources",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The collection page number",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "itemsPerPage",
                        "in": "query",
                        "description": "The number of items per page",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 30,
                            "minimum": 0,
                            "maximum": 100
                        },
                        "style": "form",
                        "explode": true
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "post": {
                "operationId": "api_v1mf2pems_serial_numberemergency-reports_post",
                "tags": [
                    "EmergencyReport"
                ],
                "responses": {
                    "202": {
                        "description": "Pem resource created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pem.EmergencyReportOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pem.EmergencyReportOutput.jsonld"
                                }
                            }
                        },
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Upload an Emergency Report",
                "description": "Uploads a new emergency report",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "requestBody": {
                    "description": "The new Pem resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Pem.EmergencyReportInput"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Pem.EmergencyReportInput"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}/emergency-reports/{id}": {
            "get": {
                "operationId": "api_v1mf2pems_serial_numberemergency-reports_id_get",
                "tags": [
                    "EmergencyReport"
                ],
                "responses": {
                    "200": {
                        "description": "EmergencyReport resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/EmergencyReport.EmergencyReportOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/EmergencyReport.EmergencyReportOutput.jsonld"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve an Emergency Report resource",
                "description": "Retrieve an Emergency Report resource",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "description": "EmergencyReport identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}/emergency-reports/{id}/download": {
            "get": {
                "operationId": "api_v1mf2pems_serial_numberemergency-reports_iddownload_get",
                "tags": [
                    "EmergencyReport"
                ],
                "responses": {
                    "200": {
                        "description": "The signed emergency report XML",
                        "content": {
                            "application/xml": {
                                "schema": {
                                    "$ref": "#/components/schemas/EmergencyReport.TrasmCorrType.xml"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Downloads the XML of an Emergency Report",
                "description": "Downloads the XML of an Emergency Report",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "description": "EmergencyReport identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}/emergency-reports/{id}/result": {
            "get": {
                "operationId": "api_v1mf2pems_serial_numberemergency-reports_idresult_get",
                "tags": [
                    "EmergencyReport"
                ],
                "responses": {
                    "200": {
                        "description": "The signed AdE result (EsitoTrasmCorrEM) XML",
                        "content": {
                            "application/xml": {
                                "schema": {
                                    "$ref": "#/components/schemas/EmergencyReport.EsitoTrasmCorrEM.xml"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Emergency Report not found, or result not available yet"
                    }
                },
                "summary": "Downloads the AdE result of an Emergency Report",
                "description": "On sandbox nothing is transmitted to AdE: the result is signed by the PEL, without codes.",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    },
                    {
                        "name": "id",
                        "in": "path",
                        "description": "EmergencyReport identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/device-event-transmissions": {
            "get": {
                "operationId": "api_v1mf2device-event-transmissions_get_collection",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The transmissions of the PEL and of its PEMs, most recent first",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/DeviceEventTransmission.DeviceEventTransmissionOutput"
                                    }
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "description": "DeviceEventTransmission.DeviceEventTransmissionOutput.jsonld collection.",
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                                        },
                                        {
                                            "type": "object",
                                            "required": [
                                                "member"
                                            ],
                                            "properties": {
                                                "member": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/DeviceEventTransmission.DeviceEventTransmissionOutput.jsonld"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieves the event (segnalazioni) files transmitted to AdE for the PEL and its PEMs.",
                "description": "Retrieves the event (segnalazioni) files transmitted to AdE for the PEL and its PEMs.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The collection page number",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "itemsPerPage",
                        "in": "query",
                        "description": "The number of items per page",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 30,
                            "minimum": 0,
                            "maximum": 100
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "pem",
                        "in": "query",
                        "description": "The serial number of the PEM",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "pem[]",
                        "in": "query",
                        "description": "The serial number of the PEM",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "style": "deepObject",
                        "explode": true
                    },
                    {
                        "name": "exists[pem]",
                        "in": "query",
                        "description": "false for the PEL transmissions only, true for the PEM transmissions only",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "boolean"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "status",
                        "in": "query",
                        "description": "The status of the AdE result",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "status[]",
                        "in": "query",
                        "description": "The status of the AdE result",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "style": "deepObject",
                        "explode": true
                    },
                    {
                        "name": "scheduled_at[after]",
                        "in": "query",
                        "description": "When the file was created",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "scheduled_at[before]",
                        "in": "query",
                        "description": "When the file was created",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "scheduled_at[strictly_after]",
                        "in": "query",
                        "description": "When the file was created",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "scheduled_at[strictly_before]",
                        "in": "query",
                        "description": "When the file was created",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/device-event-transmissions/{uuid}": {
            "get": {
                "operationId": "api_v1mf2device-event-transmissions_uuid_get",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The transmission",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeviceEventTransmission.DeviceEventTransmissionOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeviceEventTransmission.DeviceEventTransmissionOutput.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieves an event (segnalazioni) file transmitted to AdE for the PEL or one of its PEMs.",
                "description": "Retrieves an event (segnalazioni) file transmitted to AdE for the PEL or one of its PEMs.",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "DeviceEventTransmission identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/device-event-transmissions/{uuid}/download": {
            "get": {
                "operationId": "api_v1mf2device-event-transmissions_uuiddownload_get",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The signed XML",
                        "content": {
                            "application/xml": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeviceEventTransmission.Segnalazioni.xml"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Downloads the signed XML of an event (segnalazioni) file transmitted to AdE for the PEL or one of its PEMs.",
                "description": "Downloads the signed XML of an event (segnalazioni) file transmitted to AdE for the PEL or one of its PEMs.",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "DeviceEventTransmission identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/device-event-transmissions/{uuid}/result": {
            "get": {
                "operationId": "api_v1mf2device-event-transmissions_uuidresult_get",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The signed AdE result (EsitoSegnalazioni) XML",
                        "content": {
                            "application/xml": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeviceEventTransmission.EsitoSegnalazioni.xml"
                                }
                            }
                        }
                    },
                    "404": {
                        "description": "Transmission not found, or result not available yet"
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Downloads the AdE result of an event (segnalazioni) file transmitted for the PEL or one of its PEMs.",
                "description": "On sandbox nothing is transmitted to AdE: the result is signed by the PEL, with code SG900.",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "DeviceEventTransmission identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/device-events": {
            "get": {
                "operationId": "api_v1mf2device-events_get_collection",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The events of the PEL and of its PEMs, most recent first",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/DeviceEvent.DeviceEventOutput"
                                    }
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "description": "DeviceEvent.DeviceEventOutput.jsonld collection.",
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                                        },
                                        {
                                            "type": "object",
                                            "required": [
                                                "member"
                                            ],
                                            "properties": {
                                                "member": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/DeviceEvent.DeviceEventOutput.jsonld"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieves the events (segnalazioni) of the PEL and of its PEMs.",
                "description": "Retrieves the events (segnalazioni) of the PEL and of its PEMs.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The collection page number",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "itemsPerPage",
                        "in": "query",
                        "description": "The number of items per page",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 30,
                            "minimum": 0,
                            "maximum": 100
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "pem",
                        "in": "query",
                        "description": "The serial number of the PEM",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "pem[]",
                        "in": "query",
                        "description": "The serial number of the PEM",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "style": "deepObject",
                        "explode": true
                    },
                    {
                        "name": "exists[pem]",
                        "in": "query",
                        "description": "false for the PEL events only, true for the PEM events only",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "boolean"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "code",
                        "in": "query",
                        "description": "The event code (<Codice>)",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "code[]",
                        "in": "query",
                        "description": "The event code (<Codice>)",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "style": "deepObject",
                        "explode": true
                    },
                    {
                        "name": "occurred_at[after]",
                        "in": "query",
                        "description": "When the event occurred",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "occurred_at[before]",
                        "in": "query",
                        "description": "When the event occurred",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "occurred_at[strictly_after]",
                        "in": "query",
                        "description": "When the event occurred",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "occurred_at[strictly_before]",
                        "in": "query",
                        "description": "When the event occurred",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/device-events/{uuid}": {
            "get": {
                "operationId": "api_v1mf2device-events_uuid_get",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The event",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeviceEvent.DeviceEventOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/DeviceEvent.DeviceEventOutput.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieves an event (segnalazione) of the PEL or of one of its PEMs.",
                "description": "Retrieves an event (segnalazione) of the PEL or of one of its PEMs.",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "DeviceEvent identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/inactivity-periods": {
            "get": {
                "operationId": "api_v1mf2inactivity-periods_get_collection",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The inactivity periods of the PEMs, most recent first",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/PemInactivityPeriod.PemInactivityPeriodOutput"
                                    }
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "description": "PemInactivityPeriod.PemInactivityPeriodOutput.jsonld collection.",
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                                        },
                                        {
                                            "type": "object",
                                            "required": [
                                                "member"
                                            ],
                                            "properties": {
                                                "member": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/PemInactivityPeriod.PemInactivityPeriodOutput.jsonld"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieves the inactivity periods of the PEMs.",
                "description": "Retrieves the inactivity periods of the PEMs.",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The collection page number",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "itemsPerPage",
                        "in": "query",
                        "description": "The number of items per page",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 30,
                            "minimum": 0,
                            "maximum": 100
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "pem",
                        "in": "query",
                        "description": "The serial number of the PEM",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "pem[]",
                        "in": "query",
                        "description": "The serial number of the PEM",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            }
                        },
                        "style": "deepObject",
                        "explode": true
                    },
                    {
                        "name": "starts_at[after]",
                        "in": "query",
                        "description": "When the inactivity period starts",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "starts_at[before]",
                        "in": "query",
                        "description": "When the inactivity period starts",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "starts_at[strictly_after]",
                        "in": "query",
                        "description": "When the inactivity period starts",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "starts_at[strictly_before]",
                        "in": "query",
                        "description": "When the inactivity period starts",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "string",
                            "format": "date"
                        },
                        "style": "form",
                        "explode": true
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/inactivity-periods/{uuid}": {
            "get": {
                "operationId": "api_v1mf2inactivity-periods_uuid_get",
                "tags": [
                    "Event"
                ],
                "responses": {
                    "200": {
                        "description": "The inactivity period",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PemInactivityPeriod.PemInactivityPeriodOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PemInactivityPeriod.PemInactivityPeriodOutput.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieves an inactivity period of a PEM.",
                "description": "Retrieves an inactivity period of a PEM.",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "PemInactivityPeriod identifier",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/merchants": {
            "get": {
                "operationId": "api_v1mf2merchants_get_collection",
                "tags": [
                    "Merchant"
                ],
                "responses": {
                    "200": {
                        "description": "Merchant collection",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Merchant.MerchantOutput"
                                    }
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "description": "Merchant.MerchantOutput.jsonld collection.",
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                                        },
                                        {
                                            "type": "object",
                                            "required": [
                                                "member"
                                            ],
                                            "properties": {
                                                "member": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Merchant.MerchantOutput.jsonld"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve the collection of Merchant resources",
                "description": "Retrieve the collection of Merchant resources",
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The collection page number",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "itemsPerPage",
                        "in": "query",
                        "description": "The number of items per page",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 30,
                            "minimum": 0,
                            "maximum": 100
                        },
                        "style": "form",
                        "explode": true
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "post": {
                "operationId": "api_v1mf2merchants_post",
                "tags": [
                    "Merchant"
                ],
                "responses": {
                    "201": {
                        "description": "Merchant resource created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantOutput.jsonld"
                                }
                            }
                        },
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Create a Merchant resource",
                "description": "Create a Merchant resource",
                "parameters": [],
                "requestBody": {
                    "description": "The new Merchant resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Merchant.MerchantCreateInput"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Merchant.MerchantCreateInput"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/merchants/{uuid}": {
            "get": {
                "operationId": "api_v1mf2merchants_uuid_get",
                "tags": [
                    "Merchant"
                ],
                "responses": {
                    "200": {
                        "description": "Merchant resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantOutput.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve a Merchant resource",
                "description": "Retrieve a Merchant resource",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "The uuid of the Merchant",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "put": {
                "operationId": "api_v1mf2merchants_uuid_put",
                "tags": [
                    "Merchant"
                ],
                "responses": {
                    "200": {
                        "description": "Merchant resource updated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantOutput.jsonld"
                                }
                            }
                        },
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Replace a Merchant resource",
                "description": "Replace a Merchant resource",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "The uuid of the Merchant",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "requestBody": {
                    "description": "The updated Merchant resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Merchant.MerchantUpdateInput"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Merchant.MerchantUpdateInput"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/merchants/{uuid}/ateco-codes": {
            "get": {
                "operationId": "api_v1mf2merchants_uuidateco-codes_get",
                "tags": [
                    "Merchant"
                ],
                "responses": {
                    "200": {
                        "description": "Merchant ATECO codes",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantAteco"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantAteco.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve the ATECO codes of a Merchant",
                "description": "Retrieves the ATECO codes of a Merchant",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "The uuid of the Merchant",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "put": {
                "operationId": "api_v1mf2merchants_uuidateco-codes_put",
                "tags": [
                    "Merchant"
                ],
                "responses": {
                    "200": {
                        "description": "Merchant ATECO codes updated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantAteco"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Merchant.MerchantAteco.jsonld"
                                }
                            }
                        },
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Replace the ATECO codes of a Merchant",
                "description": "Replaces the ATECO codes of a Merchant",
                "parameters": [
                    {
                        "name": "uuid",
                        "in": "path",
                        "description": "The uuid of the Merchant",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "requestBody": {
                    "description": "The updated Merchant resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Merchant.MerchantAteco"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Merchant.MerchantAteco"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/merchants/{merchant_uuid}/pems": {
            "get": {
                "operationId": "api_v1mf2merchants_merchant_uuidpems_get_collection",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "200": {
                        "description": "PEM resources",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "array",
                                    "items": {
                                        "$ref": "#/components/schemas/Pem.PemOutput"
                                    }
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "type": "object",
                                    "description": "Pem.PemOutput.jsonld collection.",
                                    "allOf": [
                                        {
                                            "$ref": "#/components/schemas/HydraCollectionBaseSchema"
                                        },
                                        {
                                            "type": "object",
                                            "required": [
                                                "member"
                                            ],
                                            "properties": {
                                                "member": {
                                                    "type": "array",
                                                    "items": {
                                                        "$ref": "#/components/schemas/Pem.PemOutput.jsonld"
                                                    }
                                                }
                                            }
                                        }
                                    ]
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve the collection of PEM resources of a Merchant",
                "description": "Retrieve the collection of PEM resources of a Merchant",
                "parameters": [
                    {
                        "name": "merchant_uuid",
                        "in": "path",
                        "description": "The uuid of the Merchant.",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "description": "The collection page number",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 1,
                            "minimum": 1
                        },
                        "style": "form",
                        "explode": true
                    },
                    {
                        "name": "itemsPerPage",
                        "in": "query",
                        "description": "The number of items per page",
                        "required": false,
                        "deprecated": false,
                        "schema": {
                            "type": "integer",
                            "default": 30,
                            "minimum": 0,
                            "maximum": 100
                        },
                        "style": "form",
                        "explode": true
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems": {
            "post": {
                "operationId": "api_v1mf2pems_post",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "200": {
                        "description": "PEM resource"
                    },
                    "201": {
                        "description": "Pem resource created",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pem.PemCreateOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pem.PemCreateOutput.jsonld"
                                }
                            }
                        },
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Create a PEM resource",
                "description": "Creates a PEM resource",
                "parameters": [],
                "requestBody": {
                    "description": "The new PEM resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Pem.PemCreateInput"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Pem.PemCreateInput"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}": {
            "get": {
                "operationId": "api_v1mf2pems_serial_number_get",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "200": {
                        "description": "PEM resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pem.PemOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Pem.PemOutput.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve a PEM resource",
                "description": "Retrieve a PEM resource",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}/configuration": {
            "get": {
                "operationId": "api_v1mf2pems_serial_numberconfiguration_get",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "200": {
                        "description": "PemConfiguration resource",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PemConfiguration.PemConfigurationOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PemConfiguration.PemConfigurationOutput.jsonld"
                                }
                            }
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve the PEM configuration",
                "description": "Get the PEM configuration",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "put": {
                "operationId": "api_v1mf2pems_serial_numberconfiguration_put",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "202": {
                        "description": "PemConfiguration resource updated",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PemConfiguration.PemConfigurationOutput"
                                }
                            },
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/PemConfiguration.PemConfigurationOutput.jsonld"
                                }
                            }
                        },
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Replace the PEM configuration",
                "description": "Replace the PEM configuration. All the fields are required. Changing the receipt format deletes the logo, which must be uploaded again.",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "requestBody": {
                    "description": "The updated PemConfiguration resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/PemConfiguration.PemConfigurationInput"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/PemConfiguration.PemConfigurationInput"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}/configuration/logo": {
            "get": {
                "operationId": "pem_configuration_logo_get",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "200": {
                        "description": "The image as PNG binary",
                        "content": {
                            "schema": {
                                "type": "string",
                                "format": "binary"
                            }
                        },
                        "headers": {
                            "Content-Type": "image/png"
                        }
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Retrieve the logo image to be printed on the receipts",
                "description": "Fetch the logo image to be printed on the receipts",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "put": {
                "operationId": "pem_configuration_logo_put",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "204": {
                        "description": "PemConfiguration resource updated",
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "422": {
                        "description": "An error occurred",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Upload the logo image to be printed on the receipts",
                "description": "Upload the logo image to be printed on the receipts. The image is converted to black and white and fitted to the receipt format: changing the receipt format deletes the logo, which must be uploaded again.",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "requestBody": {
                    "content": {
                        "image/png": {
                            "schema": {
                                "type": "string",
                                "format": "binary"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            },
            "delete": {
                "operationId": "pem_configuration_logo_delete",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "204": {
                        "description": "The logo has been deleted"
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "Not found",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Delete the logo image to be printed on the receipts",
                "description": "Delete the logo image to be printed on the receipts",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        },
        "/v1/mf2/pems/{serial_number}/discard": {
            "post": {
                "operationId": "api_v1mf2pems_serial_numberdiscard_post",
                "tags": [
                    "PEM"
                ],
                "responses": {
                    "202": {
                        "description": "PEM discarded successfully",
                        "content": {},
                        "links": {}
                    },
                    "400": {
                        "description": "Invalid input data",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    },
                    "404": {
                        "description": "PEM not found"
                    },
                    "422": {
                        "description": "Discard error, see details",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/ConstraintViolation"
                                }
                            }
                        },
                        "links": {}
                    },
                    "403": {
                        "description": "Forbidden",
                        "content": {
                            "application/ld+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error.jsonld"
                                }
                            },
                            "application/problem+json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            },
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/Error"
                                }
                            }
                        },
                        "links": {}
                    }
                },
                "summary": "Discard a PEM resource",
                "description": "Discard a PEM resource",
                "parameters": [
                    {
                        "name": "serial_number",
                        "in": "path",
                        "description": "The serial number of the PEM",
                        "required": true,
                        "deprecated": false,
                        "schema": {
                            "type": "string"
                        },
                        "style": "simple",
                        "explode": false
                    }
                ],
                "requestBody": {
                    "description": "The new Pem resource",
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/Pem.PemDiscardInput"
                            }
                        },
                        "application/ld+json": {
                            "schema": {
                                "$ref": "#/components/schemas/Pem.PemDiscardInput"
                            }
                        }
                    },
                    "required": true
                },
                "x-apiplatform-tag": [
                    "mf2"
                ]
            }
        }
    },
    "components": {
        "schemas": {
            "Address": {
                "type": "object",
                "required": [
                    "street_address",
                    "zip_code",
                    "city",
                    "province"
                ],
                "properties": {
                    "street_address": {
                        "type": "string"
                    },
                    "street_number": {
                        "default": "",
                        "type": "string"
                    },
                    "zip_code": {
                        "minLength": 5,
                        "maxLength": 5,
                        "pattern": "^(\\d+)$",
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "province": {
                        "minLength": 2,
                        "maxLength": 2,
                        "type": "string"
                    }
                }
            },
            "Address.jsonld": {
                "type": "object",
                "required": [
                    "street_address",
                    "zip_code",
                    "city",
                    "province"
                ],
                "properties": {
                    "street_address": {
                        "type": "string"
                    },
                    "street_number": {
                        "default": "",
                        "type": "string"
                    },
                    "zip_code": {
                        "minLength": 5,
                        "maxLength": 5,
                        "pattern": "^(\\d+)$",
                        "type": "string"
                    },
                    "city": {
                        "type": "string"
                    },
                    "province": {
                        "minLength": 2,
                        "maxLength": 2,
                        "type": "string"
                    }
                }
            },
            "BloccoEsitoType.xml": {
                "type": "object",
                "properties": {
                    "esito": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/EsitoType.xml"
                        }
                    }
                }
            },
            "CambioVersione.xml": {
                "type": "object",
                "properties": {
                    "data_ora": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "versione_s_w": {
                        "$ref": "#/components/schemas/VersioneSW.xml"
                    }
                }
            },
            "ConstraintViolation": {
                "type": "object",
                "description": "Unprocessable entity",
                "properties": {
                    "status": {
                        "default": 422,
                        "type": "integer"
                    },
                    "violations": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "propertyPath": {
                                    "type": "string",
                                    "description": "The property path of the violation"
                                },
                                "message": {
                                    "type": "string",
                                    "description": "The message associated with the violation"
                                },
                                "code": {
                                    "type": "string",
                                    "description": "The code of the violation"
                                },
                                "hint": {
                                    "type": "string",
                                    "description": "An extra hint to understand the violation"
                                },
                                "payload": {
                                    "type": "object",
                                    "additionalProperties": true,
                                    "description": "The serialized payload of the violation"
                                }
                            },
                            "required": [
                                "propertyPath",
                                "message"
                            ]
                        }
                    },
                    "detail": {
                        "readOnly": true,
                        "type": "string"
                    },
                    "type": {
                        "readOnly": true,
                        "type": "string"
                    },
                    "title": {
                        "readOnly": true,
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "instance": {
                        "readOnly": true,
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "ConstraintViolation.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "status": {
                                "default": 422,
                                "type": "integer"
                            },
                            "violations": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "propertyPath": {
                                            "type": "string",
                                            "description": "The property path of the violation"
                                        },
                                        "message": {
                                            "type": "string",
                                            "description": "The message associated with the violation"
                                        },
                                        "code": {
                                            "type": "string",
                                            "description": "The code of the violation"
                                        },
                                        "hint": {
                                            "type": "string",
                                            "description": "An extra hint to understand the violation"
                                        },
                                        "payload": {
                                            "type": "object",
                                            "additionalProperties": true,
                                            "description": "The serialized payload of the violation"
                                        }
                                    },
                                    "required": [
                                        "propertyPath",
                                        "message"
                                    ]
                                }
                            },
                            "detail": {
                                "readOnly": true,
                                "type": "string"
                            },
                            "description": {
                                "readOnly": true,
                                "type": "string"
                            },
                            "type": {
                                "readOnly": true,
                                "type": "string"
                            },
                            "title": {
                                "readOnly": true,
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "instance": {
                                "readOnly": true,
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ],
                "description": "Unprocessable entity"
            },
            "DailyReportEntry": {
                "type": "object",
                "properties": {
                    "vat_rate_code": {
                        "anyOf": [
                            {
                                "type": "string",
                                "enum": [
                                    "N1",
                                    "N2",
                                    "N3",
                                    "N4",
                                    "N5",
                                    "N6"
                                ]
                            },
                            {
                                "type": "string",
                                "enum": [
                                    "4.00",
                                    "5.00",
                                    "10.00",
                                    "22.00",
                                    "2.00",
                                    "6.40",
                                    "7.00",
                                    "7.30",
                                    "7.50",
                                    "7.65",
                                    "7.95",
                                    "8.30",
                                    "8.50",
                                    "8.80",
                                    "9.50",
                                    "12.30"
                                ]
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "vat_amount": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "simplified_vat_allocation": {
                        "type": "boolean"
                    },
                    "partial_amount": {
                        "type": "string"
                    },
                    "total_returned_amount": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_voided_amount": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_prepaid_or_voucher_amount": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_uncollected_services": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_uncollected_invoiced": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_uncollected_dcr_to_ssn": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "total_uncollected_complimentary": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ateco_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                },
                "required": [
                    "partial_amount"
                ]
            },
            "DatiContabiliType.xml": {
                "type": "object",
                "properties": {
                    "riepilogo": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/RiepilogoType.xml"
                        }
                    },
                    "totali": {
                        "$ref": "#/components/schemas/TotaliType.xml"
                    }
                }
            },
            "DatiPEL.xml": {
                "type": "object",
                "properties": {
                    "matricola": {
                        "type": "string"
                    },
                    "cambio_versione": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CambioVersione.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "segnalazione": {
                        "description": "an empty array would be serialized as an empty element",
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "$ref": "#/components/schemas/SegnalazionePEL.xml"
                        }
                    }
                }
            },
            "DatiPEM.xml": {
                "type": "object",
                "properties": {
                    "matricola": {
                        "type": "string"
                    },
                    "cambio_versione": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/CambioVersione.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "segnalazione": {
                        "description": "an empty array would be serialized as an empty element",
                        "type": [
                            "array",
                            "null"
                        ],
                        "items": {
                            "$ref": "#/components/schemas/SegnalazionePEM.xml"
                        }
                    },
                    "periodo_inattivo": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PeriodoInattivo.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "DettaglioPEL.xml": {
                "type": "object",
                "properties": {
                    "occorrenze": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "data_inizio": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "data_ripristino": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    }
                }
            },
            "DettaglioPEM.xml": {
                "type": "object",
                "properties": {
                    "occorrenze": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "data_inizio": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "data_ripristino": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "operazioni": {
                        "type": "integer"
                    }
                }
            },
            "DeviceEvent.DeviceEventOutput": {
                "type": "object",
                "description": "A null $pem means a PEL event (DatiPEL).",
                "properties": {
                    "uuid": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string"
                    },
                    "datetime": {
                        "type": "string"
                    },
                    "occurrences": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "started_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "restored_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "operations": {
                        "type": [
                            "integer",
                            "null"
                        ]
                    },
                    "version": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "serial_number": {
                        "description": "Null for PEL events",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "description": "The status of the AdE result, null until available",
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "ok",
                            "error",
                            "warning",
                            null
                        ]
                    },
                    "transmission_uuid": {
                        "description": "Null until batched",
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "DeviceEvent.DeviceEventOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "uuid": {
                                "type": "string"
                            },
                            "code": {
                                "type": "string"
                            },
                            "datetime": {
                                "type": "string"
                            },
                            "occurrences": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "started_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "restored_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "operations": {
                                "type": [
                                    "integer",
                                    "null"
                                ]
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "serial_number": {
                                "description": "Null for PEL events",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "status": {
                                "description": "The status of the AdE result, null until available",
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "ok",
                                    "error",
                                    "warning",
                                    null
                                ]
                            },
                            "transmission_uuid": {
                                "description": "Null until batched",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ],
                "description": "A null $pem means a PEL event (DatiPEL)."
            },
            "DeviceEventTransmission.DeviceEventTransmissionOutput": {
                "type": "object",
                "description": "A null $pem means a PEL file (DatiPEL).",
                "properties": {
                    "uuid": {
                        "type": "string"
                    },
                    "serial_number": {
                        "description": "Null for PEL transmissions",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "scheduled_at": {
                        "type": "string"
                    },
                    "status": {
                        "description": "The status of the AdE result, null until available",
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "ok",
                            "error",
                            "warning",
                            null
                        ]
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "DeviceEventTransmission.DeviceEventTransmissionOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "uuid": {
                                "type": "string"
                            },
                            "serial_number": {
                                "description": "Null for PEL transmissions",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "scheduled_at": {
                                "type": "string"
                            },
                            "status": {
                                "description": "The status of the AdE result, null until available",
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "ok",
                                    "error",
                                    "warning",
                                    null
                                ]
                            },
                            "completed_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ],
                "description": "A null $pem means a PEL file (DatiPEL)."
            },
            "DeviceEventTransmission.EsitoSegnalazioni.xml": {
                "type": "object",
                "description": "A null $pem means a PEL file (DatiPEL).",
                "properties": {
                    "id_trasmissione": {
                        "type": "string"
                    },
                    "data_ora_trasmissione": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "dispositivo": {
                        "$ref": "#/components/schemas/DispositivoType.xml"
                    },
                    "data_ora_esito": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "blocco_esito": {
                        "$ref": "#/components/schemas/BloccoEsitoType.xml"
                    }
                }
            },
            "DeviceEventTransmission.Segnalazioni.xml": {
                "type": "object",
                "description": "A null $pem means a PEL file (DatiPEL).",
                "properties": {
                    "dati": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/DatiPEL.xml"
                            },
                            {
                                "$ref": "#/components/schemas/DatiPEM.xml"
                            }
                        ]
                    },
                    "signature": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "DispositivoType.xml": {
                "type": "object",
                "properties": {
                    "punto_emissione": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "punto_elaborazione": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "EmergencyReport.EmergencyReportOutput": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "closed_at": {
                        "type": "string"
                    },
                    "status": {
                        "description": "The status of the AdE result, null until available",
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "ok",
                            "error",
                            "warning",
                            null
                        ]
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "EmergencyReport.EmergencyReportOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "integer"
                            },
                            "closed_at": {
                                "type": "string"
                            },
                            "status": {
                                "description": "The status of the AdE result, null until available",
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "ok",
                                    "error",
                                    "warning",
                                    null
                                ]
                            },
                            "completed_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ]
            },
            "EmergencyReport.EsitoTrasmCorrEM.xml": {
                "type": "object",
                "properties": {
                    "id_trasmissione": {
                        "type": "string"
                    },
                    "data_ora_trasmissione": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "matricola_p_e_m": {
                        "type": "string"
                    },
                    "data_ora_esito": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "blocco_scarti": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/BloccoEsitoType.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "blocco_segnalazioni": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/BloccoEsitoType.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "EmergencyReport.TrasmCorrType.xml": {
                "type": "object",
                "properties": {
                    "trasmissione": {
                        "$ref": "#/components/schemas/TrasmissioneType.xml"
                    },
                    "data_ora_rilevazione": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "dati_contabili": {
                        "$ref": "#/components/schemas/DatiContabiliType.xml"
                    }
                }
            },
            "Error": {
                "type": "object",
                "description": "A representation of common errors.",
                "properties": {
                    "title": {
                        "readOnly": true,
                        "description": "A short, human-readable summary of the problem.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "detail": {
                        "readOnly": true,
                        "description": "A human-readable explanation specific to this occurrence of the problem.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "type": [
                            "integer",
                            "null"
                        ],
                        "examples": [
                            404
                        ],
                        "default": 400
                    },
                    "instance": {
                        "readOnly": true,
                        "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "type": {
                        "readOnly": true,
                        "description": "A URI reference that identifies the problem type",
                        "type": "string"
                    }
                }
            },
            "Error.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "title": {
                                "readOnly": true,
                                "description": "A short, human-readable summary of the problem.",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "detail": {
                                "readOnly": true,
                                "description": "A human-readable explanation specific to this occurrence of the problem.",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "status": {
                                "type": [
                                    "integer",
                                    "null"
                                ],
                                "examples": [
                                    404
                                ],
                                "default": 400
                            },
                            "instance": {
                                "readOnly": true,
                                "description": "A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "type": {
                                "readOnly": true,
                                "description": "A URI reference that identifies the problem type",
                                "type": "string"
                            },
                            "description": {
                                "readOnly": true,
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ],
                "description": "A representation of common errors."
            },
            "EsitoType.xml": {
                "type": "object",
                "properties": {
                    "codice": {
                        "type": "string"
                    },
                    "descrizione": {
                        "type": "string"
                    }
                }
            },
            "HydraCollectionBaseSchema": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraCollectionBaseSchemaNoPagination"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "view": {
                                "type": "object",
                                "properties": {
                                    "@id": {
                                        "type": "string",
                                        "format": "iri-reference"
                                    },
                                    "@type": {
                                        "type": "string"
                                    },
                                    "first": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "iri-reference"
                                    },
                                    "last": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "iri-reference"
                                    },
                                    "previous": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "iri-reference"
                                    },
                                    "next": {
                                        "type": [
                                            "string",
                                            "null"
                                        ],
                                        "format": "iri-reference"
                                    }
                                },
                                "example": {
                                    "@id": "string",
                                    "@type": "string",
                                    "first": "string",
                                    "last": "string",
                                    "previous": "string",
                                    "next": "string"
                                }
                            }
                        }
                    }
                ]
            },
            "HydraCollectionBaseSchemaNoPagination": {
                "type": "object",
                "properties": {
                    "totalItems": {
                        "type": "integer",
                        "minimum": 0
                    },
                    "search": {
                        "type": "object",
                        "properties": {
                            "@type": {
                                "type": "string"
                            },
                            "template": {
                                "type": "string"
                            },
                            "variableRepresentation": {
                                "type": "string"
                            },
                            "mapping": {
                                "type": "array",
                                "items": {
                                    "type": "object",
                                    "properties": {
                                        "@type": {
                                            "type": "string"
                                        },
                                        "variable": {
                                            "type": "string"
                                        },
                                        "property": {
                                            "type": [
                                                "string",
                                                "null"
                                            ]
                                        },
                                        "required": {
                                            "type": "boolean"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            },
            "HydraItemBaseSchema": {
                "type": "object",
                "properties": {
                    "@context": {
                        "oneOf": [
                            {
                                "type": "string"
                            },
                            {
                                "type": "object",
                                "properties": {
                                    "@vocab": {
                                        "type": "string"
                                    },
                                    "hydra": {
                                        "type": "string",
                                        "enum": [
                                            "http://www.w3.org/ns/hydra/core#"
                                        ]
                                    }
                                },
                                "required": [
                                    "@vocab",
                                    "hydra"
                                ],
                                "additionalProperties": true
                            }
                        ]
                    },
                    "@id": {
                        "type": "string"
                    },
                    "@type": {
                        "type": "string"
                    }
                },
                "required": [
                    "@id",
                    "@type"
                ]
            },
            "IVAType.xml": {
                "type": "object",
                "properties": {
                    "aliquota_i_v_a": {
                        "type": "string"
                    },
                    "imposta": {
                        "type": "string"
                    }
                }
            },
            "Merchant.MerchantAteco": {
                "type": "object",
                "properties": {
                    "ateco_codes": {
                        "minItems": 2,
                        "maxItems": 5,
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    }
                }
            },
            "Merchant.MerchantAteco.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "ateco_codes": {
                                "minItems": 2,
                                "maxItems": 5,
                                "type": "array",
                                "items": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                ]
            },
            "Merchant.MerchantCreateInput": {
                "type": "object",
                "required": [
                    "vat_number",
                    "email",
                    "password",
                    "address"
                ],
                "properties": {
                    "vat_number": {
                        "minLength": 11,
                        "maxLength": 11,
                        "pattern": "^(\\d+)$",
                        "description": "The VAT number of the merchant (Partita IVA).",
                        "type": "string"
                    },
                    "fiscal_code": {
                        "minLength": 11,
                        "maxLength": 11,
                        "pattern": "^(\\d+)$",
                        "description": "The Fiscal Code of the merchant (Codice Fiscale).",
                        "type": "string"
                    },
                    "business_name": {
                        "description": "The business name of the merchant (Ragione sociale).",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_name": {
                        "description": "The first name of the merchant, in case there is no business name.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_name": {
                        "description": "The last name of the merchant, in case there is no business name.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "format": "email",
                        "description": "The email address.",
                        "externalDocs": {
                            "url": "https://schema.org/email"
                        },
                        "type": "string"
                    },
                    "password": {
                        "pattern": "^((?=.*[A-Z])(?=.*[a-z])(?=.*[0-9])(?=.*[!@#$%\\^&\\*])(?=.{10,}).*)$",
                        "description": "The password.",
                        "type": "string"
                    },
                    "address": {
                        "description": "The billing address.",
                        "$ref": "#/components/schemas/Address"
                    }
                }
            },
            "Merchant.MerchantOutput": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string"
                    },
                    "vat_number": {
                        "type": "string"
                    },
                    "fiscal_code": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "email": {
                        "type": "string"
                    },
                    "business_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_name": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address": {
                        "$ref": "#/components/schemas/Address"
                    }
                }
            },
            "Merchant.MerchantOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "uuid": {
                                "type": "string"
                            },
                            "vat_number": {
                                "type": "string"
                            },
                            "fiscal_code": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "email": {
                                "type": "string"
                            },
                            "business_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "first_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "last_name": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "address": {
                                "$ref": "#/components/schemas/Address.jsonld"
                            }
                        }
                    }
                ]
            },
            "Merchant.MerchantUpdateInput": {
                "type": "object",
                "properties": {
                    "business_name": {
                        "description": "The business name of the merchant (Ragione sociale).",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "first_name": {
                        "description": "The first name of the merchant, in case there is no business name.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "last_name": {
                        "description": "The last name of the merchant, in case there is no business name.",
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "address": {
                        "description": "The billing address.",
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Address"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "Pem": {
                "type": "object",
                "properties": {
                    "id": {
                        "readOnly": true,
                        "type": "string"
                    },
                    "type": {
                        "default": "PV",
                        "type": "string",
                        "enum": [
                            "AP",
                            "SP",
                            "TM",
                            "PV"
                        ]
                    },
                    "version": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "status": {
                        "default": "new",
                        "type": "string",
                        "enum": [
                            "new",
                            "registered",
                            "activated",
                            "online",
                            "offline",
                            "discarded"
                        ]
                    },
                    "csr_path": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "activation_code": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "uuid"
                    },
                    "activation_response_path": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "scheduled_at": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "mtls_cert_path": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "external": {
                        "default": false,
                        "type": "boolean"
                    },
                    "merchant": {
                        "type": "string",
                        "format": "iri-reference",
                        "example": "https://example.com/"
                    },
                    "configuration": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "iri-reference",
                        "example": "https://example.com/"
                    },
                    "created_at": {
                        "default": {},
                        "type": "string",
                        "format": "date-time"
                    },
                    "updated_at": {
                        "default": {},
                        "type": "string",
                        "format": "date-time"
                    },
                    "owner_field": {
                        "readOnly": true
                    },
                    "marking": {
                        "type": "string"
                    }
                }
            },
            "Pem.EmergencyReportInput": {
                "type": "object",
                "required": [
                    "datetime"
                ],
                "properties": {
                    "datetime": {
                        "type": [
                            "string",
                            "null"
                        ],
                        "format": "date-time"
                    },
                    "documents_count": {
                        "minimum": 0,
                        "exclusiveMinimum": 0,
                        "type": "integer"
                    },
                    "cash_payment_amount": {
                        "type": "string"
                    },
                    "electronic_payment_amount": {
                        "type": "string"
                    },
                    "ticket_restaurant_payment_amount": {
                        "type": "string"
                    },
                    "discount": {
                        "type": "string"
                    },
                    "ticket_restaurant_quantity": {
                        "type": "integer"
                    },
                    "entries": {
                        "type": "array",
                        "items": {
                            "$ref": "#/components/schemas/DailyReportEntry"
                        }
                    }
                }
            },
            "Pem.EmergencyReportOutput": {
                "type": "object",
                "properties": {
                    "id": {
                        "type": "integer"
                    },
                    "closed_at": {
                        "type": "string"
                    },
                    "status": {
                        "description": "The status of the AdE result, null until available",
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "ok",
                            "error",
                            "warning",
                            null
                        ]
                    },
                    "completed_at": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "Pem.EmergencyReportOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "integer"
                            },
                            "closed_at": {
                                "type": "string"
                            },
                            "status": {
                                "description": "The status of the AdE result, null until available",
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "ok",
                                    "error",
                                    "warning",
                                    null
                                ]
                            },
                            "completed_at": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ]
            },
            "Pem.PemCreateInput": {
                "type": "object",
                "required": [
                    "merchant_uuid"
                ],
                "properties": {
                    "merchant_uuid": {
                        "format": "uuid",
                        "description": "The merchant UUID.",
                        "externalDocs": {
                            "url": "https://schema.org/identifier"
                        },
                        "type": "string"
                    },
                    "address": {
                        "description": "The address. Leave empty to use the default merchant address.",
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/Address"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "on_premise": {
                        "description": "Whether or not the PEM is on-premise (i.e. not in the cloud).",
                        "default": false,
                        "type": "boolean"
                    },
                    "configuration": {
                        "description": "The configuration for receipts generated by the PEM. Omitted fields take their default value.",
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/PemCreateConfigurationInput"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "Pem.PemCreateOutput": {
                "type": "object",
                "properties": {
                    "serial_number": {
                        "type": "string"
                    },
                    "registration_key": {
                        "type": "string"
                    }
                }
            },
            "Pem.PemCreateOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "serial_number": {
                                "type": "string"
                            },
                            "registration_key": {
                                "type": "string"
                            }
                        }
                    }
                ]
            },
            "Pem.PemDiscardInput": {
                "type": "object",
                "required": [
                    "reason"
                ],
                "properties": {
                    "reason": {
                        "type": "string",
                        "enum": [
                            "pem-hardware-problems",
                            "pem-software-problems",
                            "pem-communication-problems",
                            "pem-lifecycle-end",
                            "contract-terminated",
                            "integrity-failure",
                            "pem-inactivity",
                            "other"
                        ]
                    }
                }
            },
            "Pem.PemOutput": {
                "type": "object",
                "properties": {
                    "serial_number": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string"
                    },
                    "status": {
                        "type": "string"
                    },
                    "address": {
                        "$ref": "#/components/schemas/Address"
                    },
                    "configuration_synchronised": {
                        "description": "Whether the PEM has received the latest configuration and logo.",
                        "type": "boolean"
                    }
                }
            },
            "Pem.PemOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "serial_number": {
                                "type": "string"
                            },
                            "type": {
                                "type": "string"
                            },
                            "status": {
                                "type": "string"
                            },
                            "address": {
                                "$ref": "#/components/schemas/Address.jsonld"
                            },
                            "configuration_synchronised": {
                                "description": "Whether the PEM has received the latest configuration and logo.",
                                "type": "boolean"
                            }
                        }
                    }
                ]
            },
            "Pem.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "id": {
                                "readOnly": true,
                                "type": "string"
                            },
                            "type": {
                                "default": "PV",
                                "type": "string",
                                "enum": [
                                    "AP",
                                    "SP",
                                    "TM",
                                    "PV"
                                ]
                            },
                            "version": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "status": {
                                "default": "new",
                                "type": "string",
                                "enum": [
                                    "new",
                                    "registered",
                                    "activated",
                                    "online",
                                    "offline",
                                    "discarded"
                                ]
                            },
                            "csr_path": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "activation_code": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "uuid"
                            },
                            "activation_response_path": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "scheduled_at": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "date-time"
                            },
                            "mtls_cert_path": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "external": {
                                "default": false,
                                "type": "boolean"
                            },
                            "merchant": {
                                "type": "string",
                                "format": "iri-reference",
                                "example": "https://example.com/"
                            },
                            "configuration": {
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "format": "iri-reference",
                                "example": "https://example.com/"
                            },
                            "created_at": {
                                "default": {},
                                "type": "string",
                                "format": "date-time"
                            },
                            "updated_at": {
                                "default": {},
                                "type": "string",
                                "format": "date-time"
                            },
                            "owner_field": {
                                "readOnly": true
                            },
                            "marking": {
                                "type": "string"
                            }
                        }
                    }
                ]
            },
            "PemConfiguration.PemConfigurationInput": {
                "type": "object",
                "properties": {
                    "receipt_format": {
                        "type": "string",
                        "enum": [
                            "standard",
                            "narrow"
                        ]
                    },
                    "display_cashier_name": {
                        "type": "boolean"
                    },
                    "display_cash_register_name": {
                        "type": "boolean"
                    },
                    "receipt_header": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "footer_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "meal_vouchers_invoiced_to_issuer": {
                        "type": "boolean"
                    }
                }
            },
            "PemConfiguration.PemConfigurationOutput": {
                "type": "object",
                "properties": {
                    "receipt_format": {
                        "type": "string",
                        "enum": [
                            "standard",
                            "narrow"
                        ]
                    },
                    "display_cashier_name": {
                        "type": "boolean"
                    },
                    "display_cash_register_name": {
                        "type": "boolean"
                    },
                    "receipt_header": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "footer_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "meal_vouchers_invoiced_to_issuer": {
                        "type": "boolean"
                    }
                }
            },
            "PemConfiguration.PemConfigurationOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "receipt_format": {
                                "type": "string",
                                "enum": [
                                    "standard",
                                    "narrow"
                                ]
                            },
                            "display_cashier_name": {
                                "type": "boolean"
                            },
                            "display_cash_register_name": {
                                "type": "boolean"
                            },
                            "receipt_header": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "footer_text": {
                                "type": [
                                    "string",
                                    "null"
                                ]
                            },
                            "meal_vouchers_invoiced_to_issuer": {
                                "type": "boolean"
                            }
                        }
                    }
                ]
            },
            "PemConfiguration.PemConfigurationOutput.png": {
                "type": "object",
                "properties": {
                    "receipt_format": {
                        "type": "string",
                        "enum": [
                            "standard",
                            "narrow"
                        ]
                    },
                    "display_cashier_name": {
                        "type": "boolean"
                    },
                    "display_cash_register_name": {
                        "type": "boolean"
                    },
                    "receipt_header": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "footer_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "meal_vouchers_invoiced_to_issuer": {
                        "type": "boolean"
                    }
                }
            },
            "PemCreateConfigurationInput": {
                "type": "object",
                "properties": {
                    "receipt_format": {
                        "type": "string",
                        "enum": [
                            "standard",
                            "narrow"
                        ]
                    },
                    "display_cashier_name": {
                        "type": "boolean"
                    },
                    "display_cash_register_name": {
                        "type": "boolean"
                    },
                    "receipt_header": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "footer_text": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "meal_vouchers_invoiced_to_issuer": {
                        "type": "boolean"
                    }
                }
            },
            "PemInactivityPeriod.PemInactivityPeriodOutput": {
                "type": "object",
                "properties": {
                    "uuid": {
                        "type": "string"
                    },
                    "starts_at": {
                        "type": "string"
                    },
                    "ends_at": {
                        "type": "string"
                    },
                    "serial_number": {
                        "type": "string"
                    },
                    "status": {
                        "description": "The status of the AdE result, null until available",
                        "type": [
                            "string",
                            "null"
                        ],
                        "enum": [
                            "ok",
                            "error",
                            "warning",
                            null
                        ]
                    },
                    "transmission_uuid": {
                        "description": "Null until batched",
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "PemInactivityPeriod.PemInactivityPeriodOutput.jsonld": {
                "allOf": [
                    {
                        "$ref": "#/components/schemas/HydraItemBaseSchema"
                    },
                    {
                        "type": "object",
                        "properties": {
                            "uuid": {
                                "type": "string"
                            },
                            "starts_at": {
                                "type": "string"
                            },
                            "ends_at": {
                                "type": "string"
                            },
                            "serial_number": {
                                "type": "string"
                            },
                            "status": {
                                "description": "The status of the AdE result, null until available",
                                "type": [
                                    "string",
                                    "null"
                                ],
                                "enum": [
                                    "ok",
                                    "error",
                                    "warning",
                                    null
                                ]
                            },
                            "transmission_uuid": {
                                "description": "Null until batched",
                                "type": [
                                    "string",
                                    "null"
                                ]
                            }
                        }
                    }
                ]
            },
            "PeriodoInattivo.xml": {
                "type": "object",
                "properties": {
                    "dal": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "al": {
                        "type": "string",
                        "format": "date-time"
                    }
                }
            },
            "RiepilogoType.xml": {
                "type": "object",
                "properties": {
                    "i_v_a": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/IVAType.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    },
                    "natura": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ventilazione_i_v_a": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "importo_parziale": {
                        "default": "0.00",
                        "type": "string"
                    },
                    "totale_ammontare_resi": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "totale_ammontare_annulli": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "beni_in_sospeso": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "non_riscosso_servizi": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "non_riscosso_fatture": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "non_riscosso_d_c_ra_s_s_n": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "non_riscosso_omaggio": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "codice_attivita": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "rif_normativo": {
                        "type": [
                            "string",
                            "null"
                        ]
                    }
                }
            },
            "SegnalazionePEL.xml": {
                "type": "object",
                "properties": {
                    "codice": {
                        "type": "string"
                    },
                    "data_ora": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "dettaglio": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/DettaglioPEL.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "SegnalazionePEM.xml": {
                "type": "object",
                "properties": {
                    "codice": {
                        "type": "string"
                    },
                    "data_ora": {
                        "type": "string",
                        "format": "date-time"
                    },
                    "dettaglio": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/DettaglioPEM.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "SoftwareVersionBlockType.xml": {
                "type": "object",
                "properties": {
                    "versione": {
                        "type": "integer"
                    },
                    "sotto_versione": {
                        "type": "integer"
                    },
                    "patch": {
                        "type": "string"
                    }
                }
            },
            "TicketType.xml": {
                "type": "object",
                "properties": {
                    "pagato_ticket": {
                        "default": "0.00",
                        "type": "string"
                    },
                    "numero_ticket": {
                        "default": 0,
                        "type": "integer"
                    }
                }
            },
            "TotaliType.xml": {
                "type": "object",
                "properties": {
                    "pagato_contanti": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "pagato_elettronico": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "sconto_apagare": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "ticket": {
                        "anyOf": [
                            {
                                "$ref": "#/components/schemas/TicketType.xml"
                            },
                            {
                                "type": "null"
                            }
                        ]
                    }
                }
            },
            "TrasmissioneType.xml": {
                "type": "object",
                "properties": {
                    "progressivo_r_e_m": {
                        "type": "integer"
                    },
                    "formato": {
                        "default": "COREM10",
                        "type": "string"
                    },
                    "matricola_p_e_m": {
                        "type": "string"
                    },
                    "esercente_c_f": {
                        "type": [
                            "string",
                            "null"
                        ]
                    },
                    "esercente_p_iva": {
                        "type": "string"
                    },
                    "ndoc_commerciali": {
                        "type": "integer"
                    },
                    "versione_sw": {
                        "$ref": "#/components/schemas/VersioneSwType.xml"
                    }
                }
            },
            "VersioneSW.xml": {
                "type": "object",
                "properties": {
                    "versione": {
                        "type": "integer"
                    },
                    "sotto_versione": {
                        "type": "integer"
                    },
                    "patch": {
                        "type": "string"
                    }
                }
            },
            "VersioneSwType.xml": {
                "type": "object",
                "properties": {
                    "p_e_l": {
                        "$ref": "#/components/schemas/SoftwareVersionBlockType.xml"
                    }
                }
            }
        },
        "responses": {},
        "parameters": {},
        "examples": {},
        "requestBodies": {},
        "headers": {},
        "securitySchemes": {}
    },
    "security": [],
    "tags": [
        {
            "name": "Event",
            "description": "Resource 'Event' operations."
        },
        {
            "name": "EmergencyReport",
            "description": "Resource 'EmergencyReport' operations."
        },
        {
            "name": "Merchant",
            "description": "Resource 'Merchant' operations."
        },
        {
            "name": "PEM",
            "description": "Resource 'PEM' operations."
        }
    ],
    "webhooks": {}
}