refactor
This commit is contained in:
@@ -32,6 +32,7 @@ type OrderLine struct {
|
||||
TotalAmount int64 `protobuf:"varint,7,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
|
||||
TotalTax int64 `protobuf:"varint,8,opt,name=total_tax,json=totalTax,proto3" json:"total_tax,omitempty"`
|
||||
Location string `protobuf:"bytes,9,opt,name=location,proto3" json:"location,omitempty"` // inventory location / store id for commit; empty = order country
|
||||
DropShip bool `protobuf:"varint,10,opt,name=drop_ship,json=dropShip,proto3" json:"drop_ship,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@@ -129,6 +130,13 @@ func (x *OrderLine) GetLocation() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *OrderLine) GetDropShip() bool {
|
||||
if x != nil {
|
||||
return x.DropShip
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// PlaceOrder creates the order (only legal when the order does not yet exist).
|
||||
type PlaceOrder struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
|
||||
Reference in New Issue
Block a user