Files
clean-hexagonal-architectur…/infrastructure/kafka/kafka-model/src/main/resources/avro/payment_request.avsc
2022-07-11 00:37:34 +03:00

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"]
}
}
]
}