stable · event · 0.2.0
Payment Transaction settled
A Payment Transaction has been confirmed as settled by the payment provider.
Capability Domain: payments
Reference identifier: payment-transaction-settled
Schema ID: https://minicenter.otus.tw/events/payments.transaction.settled.v1.schema.json
Delivery: At least once; deduplicate with the Domain Event envelope id.
Event schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://minicenter.otus.tw/events/payments.transaction.settled.v1.schema.json",
"title": "Payment Transaction settled",
"description": "A Payment Transaction has been confirmed as settled by the payment provider.",
"type": "object",
"additionalProperties": false,
"required": [
"payment_transaction_id",
"project_order_reference",
"amount",
"currency"
],
"properties": {
"payment_transaction_id": {
"type": "string",
"format": "uuid"
},
"project_order_reference": {
"type": "string",
"maxLength": 180
},
"amount": {
"type": "integer",
"minimum": 1
},
"currency": {
"type": "string",
"const": "TWD"
}
},
"x-documentation": true,
"x-reference-id": "payment-transaction-settled",
"x-domain": "payments",
"x-stability": "stable",
"x-delivery": "At least once; deduplicate with the Domain Event envelope id.",
"example": {
"payment_transaction_id": "70000000-0000-4000-8000-000000000007",
"project_order_reference": "sandbox-order-1001",
"amount": 100,
"currency": "TWD"
}
}
Example
{
"payment_transaction_id": "70000000-0000-4000-8000-000000000007",
"project_order_reference": "sandbox-order-1001",
"amount": 100,
"currency": "TWD"
}