-
Notifications
You must be signed in to change notification settings - Fork 0
/
orders.pb.go
127 lines (116 loc) · 5.19 KB
/
orders.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: orders.proto
package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type OrderState int32
const (
// Order has been funded and sent to the vendor but vendor has not yet responded
OrderState_PENDING OrderState = 0
// Waiting for the buyer to fund the payment address
OrderState_AWAITING_PAYMENT OrderState = 1
// Waiting for the customer to pick up the order (customer pickup option only)
OrderState_AWAITING_PICKUP OrderState = 2
// Order has been fully funded and we're waiting for the vendor to fulfill
OrderState_AWAITING_FULFILLMENT OrderState = 3
// Vendor has fulfilled part of the order
OrderState_PARTIALLY_FULFILLED OrderState = 4
// Vendor has fulfilled the order
OrderState_FULFILLED OrderState = 5
// Buyer has completed the order and left a review
OrderState_COMPLETED OrderState = 6
// Buyer canceled the order (offline order only)
OrderState_CANCELED OrderState = 7
// Vendor declined to confirm the order (offline order only)
OrderState_DECLINED OrderState = 8
// Vendor refunded the order
OrderState_REFUNDED OrderState = 9
// Contract is under active dispute
OrderState_DISPUTED OrderState = 10
// The moderator has resolved the dispute and we are waiting for the winning party to
// accept the payout.
OrderState_DECIDED OrderState = 11
// The winning party has accepted the dispute and it is now complete. After the buyer
// leaves a review the state should be set to COMPLETE.
OrderState_RESOLVED OrderState = 12
// Escrow has been released after waiting the timeout period. After the buyer
// leaves a review the state should be set to COMPLETE.
OrderState_PAYMENT_FINALIZED OrderState = 13
// We screwed up and produced a order which didn't validate. This state is only used for offline orders. If a processing
// error occurred with an open connection between buyer and vendor the vendor just rejects the order on the spot neither party
// commits the order to the database.
OrderState_PROCESSING_ERROR OrderState = 14
)
var OrderState_name = map[int32]string{
0: "PENDING",
1: "AWAITING_PAYMENT",
2: "AWAITING_PICKUP",
3: "AWAITING_FULFILLMENT",
4: "PARTIALLY_FULFILLED",
5: "FULFILLED",
6: "COMPLETED",
7: "CANCELED",
8: "DECLINED",
9: "REFUNDED",
10: "DISPUTED",
11: "DECIDED",
12: "RESOLVED",
13: "PAYMENT_FINALIZED",
14: "PROCESSING_ERROR",
}
var OrderState_value = map[string]int32{
"PENDING": 0,
"AWAITING_PAYMENT": 1,
"AWAITING_PICKUP": 2,
"AWAITING_FULFILLMENT": 3,
"PARTIALLY_FULFILLED": 4,
"FULFILLED": 5,
"COMPLETED": 6,
"CANCELED": 7,
"DECLINED": 8,
"REFUNDED": 9,
"DISPUTED": 10,
"DECIDED": 11,
"RESOLVED": 12,
"PAYMENT_FINALIZED": 13,
"PROCESSING_ERROR": 14,
}
func (x OrderState) String() string {
return proto.EnumName(OrderState_name, int32(x))
}
func (OrderState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_orders_c6051e92f6cf6ced, []int{0}
}
func init() {
proto.RegisterEnum("OrderState", OrderState_name, OrderState_value)
}
func init() { proto.RegisterFile("orders.proto", fileDescriptor_orders_c6051e92f6cf6ced) }
var fileDescriptor_orders_c6051e92f6cf6ced = []byte{
// 243 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x90, 0x4d, 0x4e, 0x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