Asset status changed to completed

This event occurs when an asset's status changes to completed.

Type: object
Domain: interest-management
Event: status_change_completed_asset
Version: 1

|
asset_id required

Title: Asset ID
Description: Unique asset identifier defined by Pismo.
Type: string
Example:
d0855c6b-b037-4dce-94c5-7a6ffc1800a3

status required

Title: Asset status
Description: Status of asset
Type: string
Must be one of the following:
COMPLETED

updated_at required

Title: Updated date
Description: Date asset was last updated
Type: string
Format: date-time
Example:
2020-12-29T19:48:25

quotas required

Title: List of quotas
Description: Quota.
Type: array

external_quota_id required

Title: External quota ID
Description: Unique quota identifier defined by client. It can be used to redeem quotas.
Type: string
Example:
d0855c6b-b037-4dce-94c5-7a6ffc1800a3

issuing_date required

Title: Issuing date
Description: Date asset was effectively issued by client.
Type: string
Format: date
Example:
2020-12-01

maturity_date required

Title: Maturity date
Description: Date asset expires, finishing issued_units cycle.
Type: string
Format: date
Example:
2022-12-01

issued_units required

Title: Issued units
Description: Number of units asset can support.
Type: number
Format: int
Example:
10000

current_units required

Title: Current units
Description: Number of units asset has.
Type: number
Format: int
Example:
10000

net_unit_value required

Title: Net Unit Value
Description: Accrued net unit value by quota.
Type: number
Format: double
Example:
0.01000085

gross_unit_value required

Title: Gross Unit Value
Description: Accrued gross unit value by quota.
Type: number
Format: double
Example:
0.01001575

accum_net_amount required

Title: Accrual Accum Net Amount
Description: Accrual Accum Net Amount.
Type: number
Format: double
Example:
100.0

accum_gross_amount required

Title: Accrual Accum Gross Amount
Description: Accrual Accum Gross Amount.
Type: number
Format: double
Example:
100.15

taxes required

Title: List of taxes
Description: Tax.
Type: array

name required

Title: Tax Name
Description: Tax Name.
Type: string
Example:
IR
IOF

amount required

Title: Tax Amount
Description: Tax Amount.
Type: number
Format: double
Example:
0.15

unit_value required

Title: Tax Unit Value
Description: Tax Unit Value.
Type: number
Format: double
Example:
1.49e-05

{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "title": "Asset status changed to completed",
    "description": "This event occurs when an asset's status changes to completed.",
    "required": [
        "asset_id",
        "status",
        "updated_at",
        "quotas"
    ],
    "properties": {
        "asset_id": {
            "type": "string",
            "title": "Asset ID",
            "description": "Unique asset identifier defined by Pismo.",
            "examples": [
                "d0855c6b-b037-4dce-94c5-7a6ffc1800a3"
            ]
        },
        "status": {
            "type": "string",
            "title": "Asset status",
            "description": "Status of asset",
            "enum": [
                "COMPLETED"
            ]
        },
        "updated_at": {
            "type": "string",
            "title": "Updated date",
            "description": "Date asset was last updated",
            "format": "date-time",
            "examples": [
                "2020-12-29T19:48:25"
            ]
        },
        "quotas": {
            "type": "array",
            "title": "List of quotas",
            "items": {
                "$ref": "#/definitions/quota"
            }
        }
    },
    "definitions": {
        "quota": {
            "type": "object",
            "title": "Quota",
            "description": "Quota.",
            "required": [
                "external_quota_id",
                "issuing_date",
                "maturity_date",
                "issued_units",
                "current_units",
                "net_unit_value",
                "gross_unit_value",
                "accum_net_amount",
                "accum_gross_amount",
                "taxes"
            ],
            "properties": {
                "external_quota_id": {
                    "type": "string",
                    "title": "External quota ID",
                    "description": "Unique quota identifier defined by client. It can be used to redeem quotas.",
                    "examples": [
                        "d0855c6b-b037-4dce-94c5-7a6ffc1800a3"
                    ]
                },
                "issuing_date": {
                    "type": "string",
                    "title": "Issuing date",
                    "description": "Date asset was effectively issued by client.",
                    "format": "date",
                    "examples": [
                        "2020-12-01"
                    ]
                },
                "maturity_date": {
                    "type": "string",
                    "title": "Maturity date",
                    "description": "Date asset expires, finishing `issued_units` cycle.",
                    "format": "date",
                    "examples": [
                        "2022-12-01"
                    ]
                },
                "issued_units": {
                    "type": "number",
                    "title": "Issued units",
                    "description": "Number of units asset can support.",
                    "format": "int",
                    "examples": [
                        10000
                    ]
                },
                "current_units": {
                    "type": "number",
                    "title": "Current units",
                    "description": "Number of units asset has.",
                    "format": "int",
                    "examples": [
                        10000
                    ]
                },
                "net_unit_value": {
                    "type": "number",
                    "title": "Net Unit Value",
                    "description": "Accrued net unit value by quota.",
                    "format": "double",
                    "examples": [
                        0.01000085
                    ]
                },
                "gross_unit_value": {
                    "type": "number",
                    "title": "Gross Unit Value",
                    "description": "Accrued gross unit value by quota.",
                    "format": "double",
                    "examples": [
                        0.01001575
                    ]
                },
                "accum_net_amount": {
                    "type": "number",
                    "title": "Accrual Accum Net Amount",
                    "description": "Accrual Accum Net Amount.",
                    "format": "double",
                    "examples": [
                        100.0
                    ]
                },
                "accum_gross_amount": {
                    "type": "number",
                    "title": "Accrual Accum Gross Amount",
                    "description": "Accrual Accum Gross Amount.",
                    "format": "double",
                    "examples": [
                        100.15
                    ]
                },
                "taxes": {
                    "type": "array",
                    "title": "List of taxes",
                    "items": {
                        "$ref": "#/definitions/tax"
                    }
                }
            }
        },
        "tax": {
            "type": "object",
            "title": "Tax",
            "description": "Tax.",
            "required": [
                "name",
                "amount",
                "unit_value"
            ],
            "properties": {
                "name": {
                    "type": "string",
                    "title": "Tax Name",
                    "description": "Tax Name.",
                    "examples": [
                        "IR",
                        "IOF"
                    ]
                },
                "amount": {
                    "type": "number",
                    "title": "Tax Amount",
                    "description": "Tax Amount.",
                    "format": "double",
                    "examples": [
                        0.15
                    ]
                },
                "unit_value": {
                    "type": "number",
                    "title": "Tax Unit Value",
                    "description": "Tax Unit Value.",
                    "format": "double",
                    "examples": [
                        1.49e-05
                    ]
                }
            }
        }
    }
}
{
    "asset_id": "d0855c6b-b037-4dce-94c5-7a6ffc1800a3",
    "status": "COMPLETED",
    "updated_at": "2020-12-29T19:48:25",
    "quotas": {
        "external_quota_id": "d0855c6b-b037-4dce-94c5-7a6ffc1800a3",
        "issuing_date": "2020-12-01",
        "maturity_date": "2022-12-01",
        "issued_units": 10000,
        "current_units": 10000,
        "net_unit_value": 0.01000085,
        "gross_unit_value": 0.01001575,
        "accum_net_amount": 100.0,
        "accum_gross_amount": 100.15,
        "taxes": {
            "name": "IR",
            "amount": 0.15,
            "unit_value": 1.49e-05
        }
    }
}