Files
stack/events/generated/payments/v2.0.0/SAVED_TRANSFER_INITIATION.json
2025-10-20 21:48:24 +02:00

145 lines
2.9 KiB
JSON

{
"type": "object",
"properties": {
"app": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date-time"
},
"type": {
"type": "string"
},
"ledger": {
"type": "string"
},
"payload": {
"type": "object",
"required": [
"id",
"createdAt",
"scheduledAt",
"connectorId",
"provider",
"description",
"type",
"destinationAccountId",
"amount",
"asset",
"attempts",
"status",
"error"
],
"properties": {
"id": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"scheduledAt": {
"type": "string",
"format": "date-time"
},
"connectorId": {
"type": "string"
},
"provider": {
"type": "string"
},
"description": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"TRANSFER",
"PAYOUT"
]
},
"sourceAccountId": {
"type": "string"
},
"destinationAccountId": {
"type": "string"
},
"amount": {
"type": "number",
"format": "bigint"
},
"asset": {
"type": "string"
},
"attempts": {
"type": "number"
},
"status": {
"type": "string",
"enum": [
"WAITING_FOR_VALIDATION",
"PROCESSING",
"PROCESSED",
"FAILED",
"REJECTED",
"VALIDATED",
"ASK_RETRIED",
"ASK_REVERSED",
"REVERSE_PROCESSING",
"REVERSE_FAILED",
"PARTIALLY_REVERSED",
"REVERSED"
]
},
"error": {
"type": "string"
},
"relatedPayments": {
"type": [
"array",
"null"
],
"items": {
"type": "object",
"required": [
"transferInitiationId",
"paymentId",
"createdAt",
"status",
"error"
],
"properties": {
"transferInitiationId": {
"type": "string"
},
"paymentId": {
"type": "string"
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"status": {
"type": "string"
},
"error": {
"type": "string"
}
}
}
}
}
}
},
"required": [
"date",
"app",
"version",
"type",
"payload"
]
}