59 lines
1.4 KiB
JSON
59 lines
1.4 KiB
JSON
{
|
|
"namespace": "com.food.ordering.system.kafka.order.avro.model",
|
|
"type": "record",
|
|
"name": "PaymentRequestAvroModel",
|
|
"fields": [
|
|
{
|
|
"name": "id",
|
|
"type": {
|
|
"type": "string",
|
|
"logicalType": "uuid"
|
|
}
|
|
},
|
|
{
|
|
"name": "sagaId",
|
|
"type": {
|
|
"type": "string",
|
|
"logicalType": "uuid"
|
|
}
|
|
},
|
|
{
|
|
"name": "customerId",
|
|
"type": {
|
|
"type": "string",
|
|
"logicalType": "uuid"
|
|
}
|
|
},
|
|
{
|
|
"name": "orderId",
|
|
"type": {
|
|
"type": "string",
|
|
"logicalType": "uuid"
|
|
}
|
|
},
|
|
{
|
|
"name": "price",
|
|
"type": {
|
|
"type": "bytes",
|
|
"logicalType": "decimal",
|
|
"precision": 10,
|
|
"scale": 2
|
|
}
|
|
},
|
|
{
|
|
"name": "createdAt",
|
|
"type": {
|
|
"type": "long",
|
|
"logicalType": "timestamp-millis"
|
|
}
|
|
},
|
|
{
|
|
"name": "paymentOrderStatus",
|
|
"type": {
|
|
"type": "enum",
|
|
"name": "PaymentOrderStatus",
|
|
"symbols": ["PENDING", "CANCELLED"]
|
|
}
|
|
}
|
|
]
|
|
} |