Card type updated

This event occurs when a card's type changes. As of now, this event is only generated by migrating a card from RECURRING to VIRTUAL.

Type: object
Domain: cards
Event: update_type
Version: 1

|
account_id required

Title: User's Pismo account ID
Description: Pismo account ID
Type: integer
Example:
12345678

customer_id required

Title: User's Pismo customer ID
Description: Pismo customer ID
Type: integer
Example:
12345678

card_id required

Title: Pismo card ID
Description: Pismo card ID
Type: integer
Example:
12345678

card_type required

Title: Card type
Description: Card type
Type: string
Must be one of the following:
VIRTUAL

card_previous_type required

Title: Previous Card type
Description: Previous Card type
Type: string
Must be one of the following:
RECURRING

cvv_next_rotation_date

Title: Next CVV rotation date and time.
Description: Scheduled date and time, in RFC3339 format, to change the CVV2/CVC2 value. Virtual cards only.
Type: string or null
Format: date-time
Example:
2021-03-01T18:45:00Z

cvv_rotation_interval_hours

Title: CVV Rotation Interval in hours.
Description: Amount of time in hours for the CVV2/CVC2 rotation to occur. Virtual cards only.
Type: integer or null
Example:
14a23976-db8c-4f1e-a19c-f0ec79d810r4

status required

Title: Event status
Description: Event status
Type: string
Must be one of the following:
SUCCESS
FAILURE

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Card type updated",
    "description": "This event occurs when a card's type changes. As of now, this event is only generated by migrating a card from `RECURRING` to `VIRTUAL`.",
    "examples": [
        {
            "account_id": 8675309,
            "card_id": 10895630,
            "customer_id": 10895631,
            "card_type": "VIRTUAL",
            "previous_card_type": "RECURRING",
            "cvv_next_rotation_date": "2023-06-30T03:20:41Z",
            "cvv_rotation_interval_hours": 24,
            "status": "SUCCESS"
        }
    ],
    "required": [
        "account_id",
        "card_id",
        "customer_id",
        "card_type",
        "card_previous_type",
        "status"
    ],
    "properties": {
        "account_id": {
            "type": "integer",
            "title": "User's Pismo account ID",
            "description": "Pismo account ID",
            "examples": [
                12345678
            ]
        },
        "customer_id": {
            "type": "integer",
            "title": "User's Pismo customer ID",
            "description": "Pismo customer ID",
            "examples": [
                12345678
            ]
        },
        "card_id": {
            "type": [
                "integer"
            ],
            "title": "Pismo card ID",
            "description": "Pismo card ID",
            "examples": [
                12345678
            ]
        },
        "card_type": {
            "type": "string",
            "title": "Card type",
            "description": "Card type",
            "enum": [
                "VIRTUAL"
            ]
        },
        "card_previous_type": {
            "type": "string",
            "title": "Previous Card type",
            "description": "Previous Card type",
            "enum": [
                "RECURRING"
            ]
        },
        "cvv_next_rotation_date": {
            "type": [
                "string",
                "null"
            ],
            "title": "Next CVV rotation date and time.",
            "description": "Scheduled date and time, in RFC3339 format, to change the CVV2/CVC2 value. Virtual cards only.",
            "format": "date-time",
            "examples": [
                "2021-03-01T18:45:00Z"
            ]
        },
        "cvv_rotation_interval_hours": {
            "type": [
                "integer",
                "null"
            ],
            "title": "CVV Rotation Interval in hours.",
            "description": "Amount of time in hours for the CVV2/CVC2 rotation to occur. Virtual cards only.",
            "examples": [
                "14a23976-db8c-4f1e-a19c-f0ec79d810r4"
            ]
        },
        "status": {
            "type": "string",
            "title": "Event status",
            "description": "Event status",
            "enum": [
                "SUCCESS",
                "FAILURE"
            ]
        }
    },
    "definitions": {}
}
{
    "account_id": 8675309,
    "card_id": 10895630,
    "customer_id": 10895631,
    "card_type": "VIRTUAL",
    "previous_card_type": "RECURRING",
    "cvv_next_rotation_date": "2023-06-30T03:20:41Z",
    "cvv_rotation_interval_hours": 24,
    "status": "SUCCESS"
}