Instant payment transaction migration completed

Event generated when the instant payment transaction migration finishes. Contains the payload with the data to be migrated.

Type: object
Additional properties: true
Domain: migration
Event: instant_payment_outgoing
Version: 1

|
message

Description: Message of instant payment transaction result. It shows the error message when the migration fails.
Type: string
Example:
error EPIX0142: Already exist a transaction with this EndToEnd

migration

Description: Identifier sent upon starting the migration process
Type: object
Additional properties: false
Example:

{
    "id": "0aa021a9-30a6-47ca-be07-e2b8f0e95abc",
    "version_date": "2024-09-11T15:02:33.81Z"
}
id required

Description: Migration identifier
Type: string
Example:
0aa021a9-30a6-47ca-be07-e2b8f0e95abc

version_date required

Description: Version date of migration identifier
Type: string
Format: date-time
Example:
2024-09-11T15:02:33.81Z

status

Title: Migration status
Description: Whether the result of instant payment migration was success or not
Type: string
Must be one of the following:
SUCCESS
FAIL
Example:
SUCCESS
FAIL

operation

Title: Migration Operation
Description: Whether the instant payment transaction migration is a creation or an update
Type: string
Must be one of the following:
CREATION
UPDATE
Example:
UPDATE
CREATION

{
    "$schema": "https://json-schema.org/draft-07/schema",
    "$id": "https://pismo.io/events/migration/instant_payment_outgoing-1.json",
    "type": "object",
    "title": "Instant payment transaction migration completed",
    "description": "Event generated when the instant payment transaction migration finishes. Contains the payload with the data to be migrated.",
    "additionalProperties": true,
    "examples": [
        {
            "operation": "UNKNOWN",
            "status": "FAIL",
            "message": "error EPIX0142: Already exist a transaction with this EndToEnd",
            "migration": {
                "id": "0aa021a9-30a6-47ca-be07-e2b8f0e95abc",
                "version_date": "2024-09-11T15:02:33.81Z"
            }
        }
    ],
    "properties": {
        "message": {
            "$id": "#/properties/message",
            "type": "string",
            "description": "Message of instant payment transaction result. It shows the error message when the migration fails.",
            "examples": [
                "error EPIX0142: Already exist a transaction with this EndToEnd"
            ]
        },
        "migration": {
            "$id": "#/properties/migration",
            "type": "object",
            "description": "Identifier sent upon starting the migration process",
            "examples": [
                {
                    "id": "0aa021a9-30a6-47ca-be07-e2b8f0e95abc",
                    "version_date": "2024-09-11T15:02:33.81Z"
                }
            ],
            "required": [
                "id",
                "version_date"
            ],
            "properties": {
                "id": {
                    "$id": "#/properties/migration/properties/id",
                    "type": "string",
                    "description": "Migration identifier",
                    "examples": [
                        "0aa021a9-30a6-47ca-be07-e2b8f0e95abc"
                    ]
                },
                "version_date": {
                    "$id": "#/properties/migration/properties/version_date",
                    "type": "string",
                    "format": "date-time",
                    "description": "Version date of migration identifier",
                    "examples": [
                        "2024-09-11T15:02:33.81Z"
                    ]
                }
            },
            "additionalProperties": false
        },
        "status": {
            "$id": "#/properties/status",
            "type": "string",
            "title": "Migration status",
            "description": "Whether the result of instant payment migration was success or not",
            "enum": [
                "SUCCESS",
                "FAIL"
            ],
            "examples": [
                "SUCCESS",
                "FAIL"
            ]
        },
        "operation": {
            "$id": "#/properties/operation",
            "type": "string",
            "title": "Migration Operation",
            "description": "Whether the instant payment transaction migration is a creation or an update",
            "enum": [
                "CREATION",
                "UPDATE"
            ],
            "examples": [
                "UPDATE",
                "CREATION"
            ]
        },
        "additionalProperties": true
    }
}
{
    "operation": "UNKNOWN",
    "status": "FAIL",
    "message": "error EPIX0142: Already exist a transaction with this EndToEnd",
    "migration": {
        "id": "0aa021a9-30a6-47ca-be07-e2b8f0e95abc",
        "version_date": "2024-09-11T15:02:33.81Z"
    }
}