Card migration completed

Event generated when a card migration finishes and the result is reported. Result can be either SUCCESS or FAIL.

Type: object
Additional properties: false
Domain: migration
Event: card_outgoing
Version: 1

|
code required

Title: Migration message code
Description: The code of message for systems
Type: string
Example:
MIGR-0001

message required

Title: The message schema
Description: Message of card migration result
Type: string
Example:
Card migrated with success

migration required

Title: Migration Identifiers Object
Description: Identifier sent on start of migration process
Type: object
Additional properties: false
Example:

{
    "id": "migration-id",
    "version_date": "2021-08-11T11:25:00.000Z"
}
id required

Title: Migration Identifier
Type: string
Example:
migration-id

version_date required

Title: Version Date of Migration Identifier
Type: string
Format: date-time
Example:
2021-08-11T11:25:00.000Z

phase_id

Title: Migration Phase ID
Description: Identifies migration phase
Type: string
Example:
Rollout_Jan2022

status required

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

entity

Title: Pismo generated Card information
Type: object
Additional properties: false
Example:

{
    "card_id": 10000012,
    "account_id": 10000015,
    "customer_id": 10000020
}
card_id

Title: Card Identifier
Description: Card identifier generated by pismo.
Type: integer
Example:
9999

account_id

Title: Account Identifier
Description: Account identifier generated by pismo.
Type: integer
Example:
9999

customer_id

Title: Customer Identifier
Description: Customer identifier generated by pismo.
Type: integer
Example:
1234

reissued_id

Title: Reissued Card Identifier
Description: Reissued card identifier generated by pismo.
Type: integer
Example:
9999

operation

Title: Migration Operation
Description: If the Card migration is a creation or update
Type: string
Must be one of the following:
CREATION
UPDATE
Example:
UPDATE
CREATION

{
    "$schema": "http://json-schema.org/draft-07/schema",
    "$id": "https://pismo.io/events/migration/card_outgoing-1.json",
    "type": "object",
    "title": "Card migration completed",
    "description": "Event generated when a card migration finishes and the result is reported. Result can be either `SUCCESS` or `FAIL`.",
    "examples": [
        {
            "operation": "UPDATE",
            "status": "SUCCESS",
            "code": "MIGR-0001",
            "message": "Card migrated with success",
            "migration": {
                "id": "migration-id",
                "version_date": "2021-08-11T11:25:00.000Z",
                "phase_id": "Rollout_Jan2022"
            },
            "entity": {
                "card_id": 10000012,
                "account_id": 10000015,
                "customer_id": 10000020,
                "reissued_id": 123456
            }
        }
    ],
    "required": [
        "code",
        "message",
        "migration",
        "status"
    ],
    "properties": {
        "code": {
            "$id": "#/properties/code",
            "type": "string",
            "title": "Migration message code",
            "description": "The code of message for systems",
            "examples": [
                "MIGR-0001"
            ]
        },
        "message": {
            "$id": "#/properties/message",
            "type": "string",
            "title": "The message schema",
            "description": "Message of card migration result",
            "examples": [
                "Card migrated with success"
            ]
        },
        "migration": {
            "$id": "#/properties/migration",
            "type": "object",
            "title": "Migration Identifiers Object",
            "description": "Identifier sent on start of migration process",
            "examples": [
                {
                    "id": "migration-id",
                    "version_date": "2021-08-11T11:25:00.000Z"
                }
            ],
            "required": [
                "id",
                "version_date"
            ],
            "properties": {
                "id": {
                    "$id": "#/properties/migration/properties/id",
                    "type": "string",
                    "title": "Migration Identifier",
                    "examples": [
                        "migration-id"
                    ]
                },
                "version_date": {
                    "$id": "#/properties/migration/properties/version_date",
                    "type": "string",
                    "format": "date-time",
                    "title": "Version Date of Migration Identifier",
                    "examples": [
                        "2021-08-11T11:25:00.000Z"
                    ]
                },
                "phase_id": {
                    "$id": "#/properties/migration/properties/phase_id",
                    "type": "string",
                    "title": "Migration Phase ID",
                    "description": "Identifies migration phase",
                    "examples": [
                        "Rollout_Jan2022"
                    ]
                }
            },
            "additionalProperties": false
        },
        "status": {
            "$id": "#/properties/status",
            "type": "string",
            "title": "Migration status",
            "description": "If the result of card migration was success or not",
            "enum": [
                "SUCCESS",
                "FAIL"
            ],
            "examples": [
                "SUCCESS",
                "FAIL"
            ]
        },
        "entity": {
            "$id": "#/properties/entity",
            "type": "object",
            "title": "Pismo generated Card information",
            "examples": [
                {
                    "card_id": 10000012,
                    "account_id": 10000015,
                    "customer_id": 10000020
                }
            ],
            "properties": {
                "card_id": {
                    "$id": "#/properties/entity/properties/card_id",
                    "type": "integer",
                    "title": "Card Identifier",
                    "description": "Card identifier generated by pismo.",
                    "examples": [
                        9999
                    ]
                },
                "account_id": {
                    "$id": "#/properties/entity/properties/account_id",
                    "type": "integer",
                    "title": "Account Identifier",
                    "description": "Account identifier generated by pismo.",
                    "examples": [
                        9999
                    ]
                },
                "customer_id": {
                    "$id": "#/properties/entity/properties/customer_id",
                    "type": "integer",
                    "title": "Customer Identifier",
                    "description": "Customer identifier generated by pismo.",
                    "examples": [
                        1234
                    ]
                },
                "reissued_id": {
                    "$id": "#/properties/entity/properties/reissued_id",
                    "type": "integer",
                    "title": "Reissued Card Identifier",
                    "description": "Reissued card identifier generated by pismo.",
                    "examples": [
                        9999
                    ]
                }
            },
            "additionalProperties": false
        },
        "operation": {
            "$id": "#/properties/operation",
            "type": "string",
            "title": "Migration Operation",
            "description": "If the Card migration is a creation or update",
            "enum": [
                "CREATION",
                "UPDATE"
            ],
            "examples": [
                "UPDATE",
                "CREATION"
            ]
        }
    },
    "additionalProperties": false
}
{
    "operation": "UPDATE",
    "status": "SUCCESS",
    "code": "MIGR-0001",
    "message": "Card migrated with success",
    "migration": {
        "id": "migration-id",
        "version_date": "2021-08-11T11:25:00.000Z",
        "phase_id": "Rollout_Jan2022"
    },
    "entity": {
        "card_id": 10000012,
        "account_id": 10000015,
        "customer_id": 10000020,
        "reissued_id": 123456
    }
}