diff --git a/proto/order/order.pb.go b/proto/order/order.pb.go index e63167a..3a70313 100644 --- a/proto/order/order.pb.go +++ b/proto/order/order.pb.go @@ -26,12 +26,12 @@ type Status int32 const ( // order created but ticket is not reserved Status_CREATED Status = 0 - // the order fails to reserve the ticket, the user cancelled the order, or the order expires + // the order fails to reserve the ticket, the user cancelled the order, or the order expired Status_CANCELLED Status = 1 // order is awaiting payment and has reserved the ticket Status_AWAITING_PAYMENT Status = 2 // the order has reserved the ticket and the user has provided payment - Status_COMPLETE Status = 4 + Status_COMPLETE Status = 3 ) // Enum value maps for Status. @@ -40,13 +40,13 @@ var ( 0: "CREATED", 1: "CANCELLED", 2: "AWAITING_PAYMENT", - 4: "COMPLETE", + 3: "COMPLETE", } Status_value = map[string]int32{ "CREATED": 0, "CANCELLED": 1, "AWAITING_PAYMENT": 2, - "COMPLETE": 4, + "COMPLETE": 3, } ) @@ -445,7 +445,7 @@ var file_proto_order_order_proto_rawDesc = []byte{ 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x57, 0x41, 0x49, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x50, 0x41, 0x59, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x02, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x4f, 0x4d, 0x50, 0x4c, 0x45, 0x54, - 0x45, 0x10, 0x04, 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x45, 0x10, 0x03, 0x42, 0x22, 0x5a, 0x20, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x77, 0x2d, 0x68, 0x2d, 0x61, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } diff --git a/proto/order/order.proto b/proto/order/order.proto index 0ba692d..274bd63 100644 --- a/proto/order/order.proto +++ b/proto/order/order.proto @@ -8,7 +8,7 @@ option go_package = "github.com/w-h-a/pkg/proto/order"; enum Status { // order created but ticket is not reserved CREATED = 0; - // the order fails to reserve the ticket or the user cancelled the order + // the order fails to reserve the ticket, the user cancelled the order, or the order expired CANCELLED = 1; // order is awaiting payment and has reserved the ticket AWAITING_PAYMENT = 2;