1546 lines
48 KiB
Go
1546 lines
48 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.10
|
|
// protoc v3.21.12
|
|
// source: cart_actor.proto
|
|
|
|
package messages
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// Shared reply for all mutation RPCs.
|
|
type CartMutationReply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // HTTP-like status (200 success, 4xx client, 5xx server)
|
|
// Types that are valid to be assigned to Result:
|
|
//
|
|
// *CartMutationReply_State
|
|
// *CartMutationReply_Error
|
|
Result isCartMutationReply_Result `protobuf_oneof:"result"`
|
|
ServerTimestamp int64 `protobuf:"varint,4,opt,name=server_timestamp,json=serverTimestamp,proto3" json:"server_timestamp,omitempty"` // Server-assigned Unix timestamp (optional auditing)
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CartMutationReply) Reset() {
|
|
*x = CartMutationReply{}
|
|
mi := &file_cart_actor_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CartMutationReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CartMutationReply) ProtoMessage() {}
|
|
|
|
func (x *CartMutationReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CartMutationReply.ProtoReflect.Descriptor instead.
|
|
func (*CartMutationReply) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CartMutationReply) GetStatusCode() int32 {
|
|
if x != nil {
|
|
return x.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartMutationReply) GetResult() isCartMutationReply_Result {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CartMutationReply) GetState() *CartState {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*CartMutationReply_State); ok {
|
|
return x.State
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CartMutationReply) GetError() string {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*CartMutationReply_Error); ok {
|
|
return x.Error
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartMutationReply) GetServerTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ServerTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type isCartMutationReply_Result interface {
|
|
isCartMutationReply_Result()
|
|
}
|
|
|
|
type CartMutationReply_State struct {
|
|
State *CartState `protobuf:"bytes,2,opt,name=state,proto3,oneof"` // Updated cart state on success
|
|
}
|
|
|
|
type CartMutationReply_Error struct {
|
|
Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"` // Error message on failure
|
|
}
|
|
|
|
func (*CartMutationReply_State) isCartMutationReply_Result() {}
|
|
|
|
func (*CartMutationReply_Error) isCartMutationReply_Result() {}
|
|
|
|
// Fetch current cart state without mutation.
|
|
type StateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StateRequest) Reset() {
|
|
*x = StateRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StateRequest) ProtoMessage() {}
|
|
|
|
func (x *StateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StateRequest.ProtoReflect.Descriptor instead.
|
|
func (*StateRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *StateRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type StateReply struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
StatusCode int32 `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
|
// Types that are valid to be assigned to Result:
|
|
//
|
|
// *StateReply_State
|
|
// *StateReply_Error
|
|
Result isStateReply_Result `protobuf_oneof:"result"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *StateReply) Reset() {
|
|
*x = StateReply{}
|
|
mi := &file_cart_actor_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *StateReply) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*StateReply) ProtoMessage() {}
|
|
|
|
func (x *StateReply) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use StateReply.ProtoReflect.Descriptor instead.
|
|
func (*StateReply) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *StateReply) GetStatusCode() int32 {
|
|
if x != nil {
|
|
return x.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *StateReply) GetResult() isStateReply_Result {
|
|
if x != nil {
|
|
return x.Result
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *StateReply) GetState() *CartState {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*StateReply_State); ok {
|
|
return x.State
|
|
}
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *StateReply) GetError() string {
|
|
if x != nil {
|
|
if x, ok := x.Result.(*StateReply_Error); ok {
|
|
return x.Error
|
|
}
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isStateReply_Result interface {
|
|
isStateReply_Result()
|
|
}
|
|
|
|
type StateReply_State struct {
|
|
State *CartState `protobuf:"bytes,2,opt,name=state,proto3,oneof"`
|
|
}
|
|
|
|
type StateReply_Error struct {
|
|
Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
|
|
}
|
|
|
|
func (*StateReply_State) isStateReply_Result() {}
|
|
|
|
func (*StateReply_Error) isStateReply_Result() {}
|
|
|
|
type AddRequestRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *AddRequest `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddRequestRequest) Reset() {
|
|
*x = AddRequestRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddRequestRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddRequestRequest) ProtoMessage() {}
|
|
|
|
func (x *AddRequestRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddRequestRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddRequestRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *AddRequestRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddRequestRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddRequestRequest) GetPayload() *AddRequest {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type AddItemRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *AddItem `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *AddItemRequest) Reset() {
|
|
*x = AddItemRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *AddItemRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*AddItemRequest) ProtoMessage() {}
|
|
|
|
func (x *AddItemRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use AddItemRequest.ProtoReflect.Descriptor instead.
|
|
func (*AddItemRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *AddItemRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *AddItemRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *AddItemRequest) GetPayload() *AddItem {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RemoveItemRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *RemoveItem `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveItemRequest) Reset() {
|
|
*x = RemoveItemRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveItemRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveItemRequest) ProtoMessage() {}
|
|
|
|
func (x *RemoveItemRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveItemRequest.ProtoReflect.Descriptor instead.
|
|
func (*RemoveItemRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *RemoveItemRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RemoveItemRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RemoveItemRequest) GetPayload() *RemoveItem {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RemoveDeliveryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *RemoveDelivery `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RemoveDeliveryRequest) Reset() {
|
|
*x = RemoveDeliveryRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RemoveDeliveryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RemoveDeliveryRequest) ProtoMessage() {}
|
|
|
|
func (x *RemoveDeliveryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use RemoveDeliveryRequest.ProtoReflect.Descriptor instead.
|
|
func (*RemoveDeliveryRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *RemoveDeliveryRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RemoveDeliveryRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *RemoveDeliveryRequest) GetPayload() *RemoveDelivery {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ChangeQuantityRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *ChangeQuantity `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ChangeQuantityRequest) Reset() {
|
|
*x = ChangeQuantityRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ChangeQuantityRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ChangeQuantityRequest) ProtoMessage() {}
|
|
|
|
func (x *ChangeQuantityRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ChangeQuantityRequest.ProtoReflect.Descriptor instead.
|
|
func (*ChangeQuantityRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *ChangeQuantityRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ChangeQuantityRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ChangeQuantityRequest) GetPayload() *ChangeQuantity {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetDeliveryRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *SetDelivery `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetDeliveryRequest) Reset() {
|
|
*x = SetDeliveryRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetDeliveryRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetDeliveryRequest) ProtoMessage() {}
|
|
|
|
func (x *SetDeliveryRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetDeliveryRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetDeliveryRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *SetDeliveryRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetDeliveryRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetDeliveryRequest) GetPayload() *SetDelivery {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetPickupPointRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *SetPickupPoint `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetPickupPointRequest) Reset() {
|
|
*x = SetPickupPointRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetPickupPointRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetPickupPointRequest) ProtoMessage() {}
|
|
|
|
func (x *SetPickupPointRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetPickupPointRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetPickupPointRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *SetPickupPointRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetPickupPointRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetPickupPointRequest) GetPayload() *SetPickupPoint {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateCheckoutOrderRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *CreateCheckoutOrder `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateCheckoutOrderRequest) Reset() {
|
|
*x = CreateCheckoutOrderRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateCheckoutOrderRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateCheckoutOrderRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateCheckoutOrderRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateCheckoutOrderRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateCheckoutOrderRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *CreateCheckoutOrderRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateCheckoutOrderRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateCheckoutOrderRequest) GetPayload() *CreateCheckoutOrder {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type SetCartItemsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *SetCartRequest `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *SetCartItemsRequest) Reset() {
|
|
*x = SetCartItemsRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *SetCartItemsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*SetCartItemsRequest) ProtoMessage() {}
|
|
|
|
func (x *SetCartItemsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use SetCartItemsRequest.ProtoReflect.Descriptor instead.
|
|
func (*SetCartItemsRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *SetCartItemsRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *SetCartItemsRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *SetCartItemsRequest) GetPayload() *SetCartRequest {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type OrderCompletedRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"`
|
|
ClientTimestamp int64 `protobuf:"varint,2,opt,name=client_timestamp,json=clientTimestamp,proto3" json:"client_timestamp,omitempty"`
|
|
Payload *OrderCreated `protobuf:"bytes,10,opt,name=payload,proto3" json:"payload,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *OrderCompletedRequest) Reset() {
|
|
*x = OrderCompletedRequest{}
|
|
mi := &file_cart_actor_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *OrderCompletedRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*OrderCompletedRequest) ProtoMessage() {}
|
|
|
|
func (x *OrderCompletedRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use OrderCompletedRequest.ProtoReflect.Descriptor instead.
|
|
func (*OrderCompletedRequest) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *OrderCompletedRequest) GetCartId() string {
|
|
if x != nil {
|
|
return x.CartId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *OrderCompletedRequest) GetClientTimestamp() int64 {
|
|
if x != nil {
|
|
return x.ClientTimestamp
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *OrderCompletedRequest) GetPayload() *OrderCreated {
|
|
if x != nil {
|
|
return x.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Excerpt: updated messages for camelCase JSON output
|
|
type CartState struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // was cart_id
|
|
Items []*CartItemState `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
|
TotalPrice int64 `protobuf:"varint,3,opt,name=totalPrice,proto3" json:"totalPrice,omitempty"` // was total_price
|
|
TotalTax int64 `protobuf:"varint,4,opt,name=totalTax,proto3" json:"totalTax,omitempty"` // was total_tax
|
|
TotalDiscount int64 `protobuf:"varint,5,opt,name=totalDiscount,proto3" json:"totalDiscount,omitempty"` // was total_discount
|
|
Deliveries []*DeliveryState `protobuf:"bytes,6,rep,name=deliveries,proto3" json:"deliveries,omitempty"`
|
|
PaymentInProgress bool `protobuf:"varint,7,opt,name=paymentInProgress,proto3" json:"paymentInProgress,omitempty"` // was payment_in_progress
|
|
OrderReference string `protobuf:"bytes,8,opt,name=orderReference,proto3" json:"orderReference,omitempty"` // was order_reference
|
|
PaymentStatus string `protobuf:"bytes,9,opt,name=paymentStatus,proto3" json:"paymentStatus,omitempty"` // was payment_status
|
|
Processing bool `protobuf:"varint,10,opt,name=processing,proto3" json:"processing,omitempty"` // NEW (mirrors legacy CartGrain.processing)
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CartState) Reset() {
|
|
*x = CartState{}
|
|
mi := &file_cart_actor_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CartState) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CartState) ProtoMessage() {}
|
|
|
|
func (x *CartState) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CartState.ProtoReflect.Descriptor instead.
|
|
func (*CartState) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *CartState) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartState) GetItems() []*CartItemState {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CartState) GetTotalPrice() int64 {
|
|
if x != nil {
|
|
return x.TotalPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartState) GetTotalTax() int64 {
|
|
if x != nil {
|
|
return x.TotalTax
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartState) GetTotalDiscount() int64 {
|
|
if x != nil {
|
|
return x.TotalDiscount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartState) GetDeliveries() []*DeliveryState {
|
|
if x != nil {
|
|
return x.Deliveries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CartState) GetPaymentInProgress() bool {
|
|
if x != nil {
|
|
return x.PaymentInProgress
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *CartState) GetOrderReference() string {
|
|
if x != nil {
|
|
return x.OrderReference
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartState) GetPaymentStatus() string {
|
|
if x != nil {
|
|
return x.PaymentStatus
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartState) GetProcessing() bool {
|
|
if x != nil {
|
|
return x.Processing
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CartItemState struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
ItemId int64 `protobuf:"varint,2,opt,name=itemId,proto3" json:"itemId,omitempty"` // was source_item_id
|
|
Sku string `protobuf:"bytes,3,opt,name=sku,proto3" json:"sku,omitempty"`
|
|
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
|
|
Price int64 `protobuf:"varint,5,opt,name=price,proto3" json:"price,omitempty"` // was unit_price
|
|
Qty int32 `protobuf:"varint,6,opt,name=qty,proto3" json:"qty,omitempty"` // was quantity
|
|
TotalPrice int64 `protobuf:"varint,7,opt,name=totalPrice,proto3" json:"totalPrice,omitempty"` // was total_price
|
|
TotalTax int64 `protobuf:"varint,8,opt,name=totalTax,proto3" json:"totalTax,omitempty"` // was total_tax
|
|
OrgPrice int64 `protobuf:"varint,9,opt,name=orgPrice,proto3" json:"orgPrice,omitempty"` // was org_price
|
|
TaxRate int32 `protobuf:"varint,10,opt,name=taxRate,proto3" json:"taxRate,omitempty"` // was tax_rate
|
|
TotalDiscount int64 `protobuf:"varint,11,opt,name=totalDiscount,proto3" json:"totalDiscount,omitempty"`
|
|
Brand string `protobuf:"bytes,12,opt,name=brand,proto3" json:"brand,omitempty"`
|
|
Category string `protobuf:"bytes,13,opt,name=category,proto3" json:"category,omitempty"`
|
|
Category2 string `protobuf:"bytes,14,opt,name=category2,proto3" json:"category2,omitempty"`
|
|
Category3 string `protobuf:"bytes,15,opt,name=category3,proto3" json:"category3,omitempty"`
|
|
Category4 string `protobuf:"bytes,16,opt,name=category4,proto3" json:"category4,omitempty"`
|
|
Category5 string `protobuf:"bytes,17,opt,name=category5,proto3" json:"category5,omitempty"`
|
|
Image string `protobuf:"bytes,18,opt,name=image,proto3" json:"image,omitempty"`
|
|
Type string `protobuf:"bytes,19,opt,name=type,proto3" json:"type,omitempty"` // was article_type
|
|
SellerId string `protobuf:"bytes,20,opt,name=sellerId,proto3" json:"sellerId,omitempty"` // was seller_id
|
|
SellerName string `protobuf:"bytes,21,opt,name=sellerName,proto3" json:"sellerName,omitempty"` // was seller_name
|
|
Disclaimer string `protobuf:"bytes,22,opt,name=disclaimer,proto3" json:"disclaimer,omitempty"`
|
|
Outlet string `protobuf:"bytes,23,opt,name=outlet,proto3" json:"outlet,omitempty"`
|
|
StoreId string `protobuf:"bytes,24,opt,name=storeId,proto3" json:"storeId,omitempty"` // was store_id
|
|
Stock int32 `protobuf:"varint,25,opt,name=stock,proto3" json:"stock,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CartItemState) Reset() {
|
|
*x = CartItemState{}
|
|
mi := &file_cart_actor_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CartItemState) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CartItemState) ProtoMessage() {}
|
|
|
|
func (x *CartItemState) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CartItemState.ProtoReflect.Descriptor instead.
|
|
func (*CartItemState) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *CartItemState) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetItemId() int64 {
|
|
if x != nil {
|
|
return x.ItemId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetSku() string {
|
|
if x != nil {
|
|
return x.Sku
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetName() string {
|
|
if x != nil {
|
|
return x.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetPrice() int64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetQty() int32 {
|
|
if x != nil {
|
|
return x.Qty
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetTotalPrice() int64 {
|
|
if x != nil {
|
|
return x.TotalPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetTotalTax() int64 {
|
|
if x != nil {
|
|
return x.TotalTax
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetOrgPrice() int64 {
|
|
if x != nil {
|
|
return x.OrgPrice
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetTaxRate() int32 {
|
|
if x != nil {
|
|
return x.TaxRate
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetTotalDiscount() int64 {
|
|
if x != nil {
|
|
return x.TotalDiscount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CartItemState) GetBrand() string {
|
|
if x != nil {
|
|
return x.Brand
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetCategory() string {
|
|
if x != nil {
|
|
return x.Category
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetCategory2() string {
|
|
if x != nil {
|
|
return x.Category2
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetCategory3() string {
|
|
if x != nil {
|
|
return x.Category3
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetCategory4() string {
|
|
if x != nil {
|
|
return x.Category4
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetCategory5() string {
|
|
if x != nil {
|
|
return x.Category5
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetImage() string {
|
|
if x != nil {
|
|
return x.Image
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetSellerId() string {
|
|
if x != nil {
|
|
return x.SellerId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetSellerName() string {
|
|
if x != nil {
|
|
return x.SellerName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetDisclaimer() string {
|
|
if x != nil {
|
|
return x.Disclaimer
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetOutlet() string {
|
|
if x != nil {
|
|
return x.Outlet
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetStoreId() string {
|
|
if x != nil {
|
|
return x.StoreId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CartItemState) GetStock() int32 {
|
|
if x != nil {
|
|
return x.Stock
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeliveryState struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"`
|
|
Price int64 `protobuf:"varint,3,opt,name=price,proto3" json:"price,omitempty"`
|
|
Items []int64 `protobuf:"varint,4,rep,packed,name=items,proto3" json:"items,omitempty"` // was item_ids
|
|
PickupPoint *PickupPoint `protobuf:"bytes,5,opt,name=pickupPoint,proto3" json:"pickupPoint,omitempty"` // was pickup_point
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeliveryState) Reset() {
|
|
*x = DeliveryState{}
|
|
mi := &file_cart_actor_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeliveryState) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeliveryState) ProtoMessage() {}
|
|
|
|
func (x *DeliveryState) ProtoReflect() protoreflect.Message {
|
|
mi := &file_cart_actor_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeliveryState.ProtoReflect.Descriptor instead.
|
|
func (*DeliveryState) Descriptor() ([]byte, []int) {
|
|
return file_cart_actor_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *DeliveryState) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DeliveryState) GetProvider() string {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DeliveryState) GetPrice() int64 {
|
|
if x != nil {
|
|
return x.Price
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DeliveryState) GetItems() []int64 {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeliveryState) GetPickupPoint() *PickupPoint {
|
|
if x != nil {
|
|
return x.PickupPoint
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_cart_actor_proto protoreflect.FileDescriptor
|
|
|
|
const file_cart_actor_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x10cart_actor.proto\x12\bmessages\x1a\x0emessages.proto\"\xae\x01\n" +
|
|
"\x11CartMutationReply\x12\x1f\n" +
|
|
"\vstatus_code\x18\x01 \x01(\x05R\n" +
|
|
"statusCode\x12+\n" +
|
|
"\x05state\x18\x02 \x01(\v2\x13.messages.CartStateH\x00R\x05state\x12\x16\n" +
|
|
"\x05error\x18\x03 \x01(\tH\x00R\x05error\x12)\n" +
|
|
"\x10server_timestamp\x18\x04 \x01(\x03R\x0fserverTimestampB\b\n" +
|
|
"\x06result\"'\n" +
|
|
"\fStateRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\"|\n" +
|
|
"\n" +
|
|
"StateReply\x12\x1f\n" +
|
|
"\vstatus_code\x18\x01 \x01(\x05R\n" +
|
|
"statusCode\x12+\n" +
|
|
"\x05state\x18\x02 \x01(\v2\x13.messages.CartStateH\x00R\x05state\x12\x16\n" +
|
|
"\x05error\x18\x03 \x01(\tH\x00R\x05errorB\b\n" +
|
|
"\x06result\"\x87\x01\n" +
|
|
"\x11AddRequestRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x12.\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x14.messages.AddRequestR\apayload\"\x81\x01\n" +
|
|
"\x0eAddItemRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x12+\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x11.messages.AddItemR\apayload\"\x87\x01\n" +
|
|
"\x11RemoveItemRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x12.\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x14.messages.RemoveItemR\apayload\"\x8f\x01\n" +
|
|
"\x15RemoveDeliveryRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x122\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x18.messages.RemoveDeliveryR\apayload\"\x8f\x01\n" +
|
|
"\x15ChangeQuantityRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x122\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x18.messages.ChangeQuantityR\apayload\"\x89\x01\n" +
|
|
"\x12SetDeliveryRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x12/\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x15.messages.SetDeliveryR\apayload\"\x8f\x01\n" +
|
|
"\x15SetPickupPointRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x122\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x18.messages.SetPickupPointR\apayload\"\x99\x01\n" +
|
|
"\x1aCreateCheckoutOrderRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x127\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x1d.messages.CreateCheckoutOrderR\apayload\"\x8d\x01\n" +
|
|
"\x13SetCartItemsRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x122\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x18.messages.SetCartRequestR\apayload\"\x8d\x01\n" +
|
|
"\x15OrderCompletedRequest\x12\x17\n" +
|
|
"\acart_id\x18\x01 \x01(\tR\x06cartId\x12)\n" +
|
|
"\x10client_timestamp\x18\x02 \x01(\x03R\x0fclientTimestamp\x120\n" +
|
|
"\apayload\x18\n" +
|
|
" \x01(\v2\x16.messages.OrderCreatedR\apayload\"\x81\x03\n" +
|
|
"\tCartState\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\tR\x02id\x12-\n" +
|
|
"\x05items\x18\x02 \x03(\v2\x17.messages.CartItemStateR\x05items\x12\x1e\n" +
|
|
"\n" +
|
|
"totalPrice\x18\x03 \x01(\x03R\n" +
|
|
"totalPrice\x12\x1a\n" +
|
|
"\btotalTax\x18\x04 \x01(\x03R\btotalTax\x12$\n" +
|
|
"\rtotalDiscount\x18\x05 \x01(\x03R\rtotalDiscount\x127\n" +
|
|
"\n" +
|
|
"deliveries\x18\x06 \x03(\v2\x17.messages.DeliveryStateR\n" +
|
|
"deliveries\x12,\n" +
|
|
"\x11paymentInProgress\x18\a \x01(\bR\x11paymentInProgress\x12&\n" +
|
|
"\x0eorderReference\x18\b \x01(\tR\x0eorderReference\x12$\n" +
|
|
"\rpaymentStatus\x18\t \x01(\tR\rpaymentStatus\x12\x1e\n" +
|
|
"\n" +
|
|
"processing\x18\n" +
|
|
" \x01(\bR\n" +
|
|
"processing\"\x95\x05\n" +
|
|
"\rCartItemState\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
|
"\x06itemId\x18\x02 \x01(\x03R\x06itemId\x12\x10\n" +
|
|
"\x03sku\x18\x03 \x01(\tR\x03sku\x12\x12\n" +
|
|
"\x04name\x18\x04 \x01(\tR\x04name\x12\x14\n" +
|
|
"\x05price\x18\x05 \x01(\x03R\x05price\x12\x10\n" +
|
|
"\x03qty\x18\x06 \x01(\x05R\x03qty\x12\x1e\n" +
|
|
"\n" +
|
|
"totalPrice\x18\a \x01(\x03R\n" +
|
|
"totalPrice\x12\x1a\n" +
|
|
"\btotalTax\x18\b \x01(\x03R\btotalTax\x12\x1a\n" +
|
|
"\borgPrice\x18\t \x01(\x03R\borgPrice\x12\x18\n" +
|
|
"\ataxRate\x18\n" +
|
|
" \x01(\x05R\ataxRate\x12$\n" +
|
|
"\rtotalDiscount\x18\v \x01(\x03R\rtotalDiscount\x12\x14\n" +
|
|
"\x05brand\x18\f \x01(\tR\x05brand\x12\x1a\n" +
|
|
"\bcategory\x18\r \x01(\tR\bcategory\x12\x1c\n" +
|
|
"\tcategory2\x18\x0e \x01(\tR\tcategory2\x12\x1c\n" +
|
|
"\tcategory3\x18\x0f \x01(\tR\tcategory3\x12\x1c\n" +
|
|
"\tcategory4\x18\x10 \x01(\tR\tcategory4\x12\x1c\n" +
|
|
"\tcategory5\x18\x11 \x01(\tR\tcategory5\x12\x14\n" +
|
|
"\x05image\x18\x12 \x01(\tR\x05image\x12\x12\n" +
|
|
"\x04type\x18\x13 \x01(\tR\x04type\x12\x1a\n" +
|
|
"\bsellerId\x18\x14 \x01(\tR\bsellerId\x12\x1e\n" +
|
|
"\n" +
|
|
"sellerName\x18\x15 \x01(\tR\n" +
|
|
"sellerName\x12\x1e\n" +
|
|
"\n" +
|
|
"disclaimer\x18\x16 \x01(\tR\n" +
|
|
"disclaimer\x12\x16\n" +
|
|
"\x06outlet\x18\x17 \x01(\tR\x06outlet\x12\x18\n" +
|
|
"\astoreId\x18\x18 \x01(\tR\astoreId\x12\x14\n" +
|
|
"\x05stock\x18\x19 \x01(\x05R\x05stock\"\xa0\x01\n" +
|
|
"\rDeliveryState\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
|
"\bprovider\x18\x02 \x01(\tR\bprovider\x12\x14\n" +
|
|
"\x05price\x18\x03 \x01(\x03R\x05price\x12\x14\n" +
|
|
"\x05items\x18\x04 \x03(\x03R\x05items\x127\n" +
|
|
"\vpickupPoint\x18\x05 \x01(\v2\x15.messages.PickupPointR\vpickupPoint2\xed\x05\n" +
|
|
"\tCartActor\x12F\n" +
|
|
"\n" +
|
|
"AddRequest\x12\x1b.messages.AddRequestRequest\x1a\x1b.messages.CartMutationReply\x12@\n" +
|
|
"\aAddItem\x12\x18.messages.AddItemRequest\x1a\x1b.messages.CartMutationReply\x12F\n" +
|
|
"\n" +
|
|
"RemoveItem\x12\x1b.messages.RemoveItemRequest\x1a\x1b.messages.CartMutationReply\x12N\n" +
|
|
"\x0eRemoveDelivery\x12\x1f.messages.RemoveDeliveryRequest\x1a\x1b.messages.CartMutationReply\x12N\n" +
|
|
"\x0eChangeQuantity\x12\x1f.messages.ChangeQuantityRequest\x1a\x1b.messages.CartMutationReply\x12H\n" +
|
|
"\vSetDelivery\x12\x1c.messages.SetDeliveryRequest\x1a\x1b.messages.CartMutationReply\x12N\n" +
|
|
"\x0eSetPickupPoint\x12\x1f.messages.SetPickupPointRequest\x1a\x1b.messages.CartMutationReply\x12J\n" +
|
|
"\fSetCartItems\x12\x1d.messages.SetCartItemsRequest\x1a\x1b.messages.CartMutationReply\x12N\n" +
|
|
"\x0eOrderCompleted\x12\x1f.messages.OrderCompletedRequest\x1a\x1b.messages.CartMutationReply\x128\n" +
|
|
"\bGetState\x12\x16.messages.StateRequest\x1a\x14.messages.StateReplyB.Z,git.tornberg.me/go-cart-actor/proto;messagesb\x06proto3"
|
|
|
|
var (
|
|
file_cart_actor_proto_rawDescOnce sync.Once
|
|
file_cart_actor_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_cart_actor_proto_rawDescGZIP() []byte {
|
|
file_cart_actor_proto_rawDescOnce.Do(func() {
|
|
file_cart_actor_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_cart_actor_proto_rawDesc), len(file_cart_actor_proto_rawDesc)))
|
|
})
|
|
return file_cart_actor_proto_rawDescData
|
|
}
|
|
|
|
var file_cart_actor_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
var file_cart_actor_proto_goTypes = []any{
|
|
(*CartMutationReply)(nil), // 0: messages.CartMutationReply
|
|
(*StateRequest)(nil), // 1: messages.StateRequest
|
|
(*StateReply)(nil), // 2: messages.StateReply
|
|
(*AddRequestRequest)(nil), // 3: messages.AddRequestRequest
|
|
(*AddItemRequest)(nil), // 4: messages.AddItemRequest
|
|
(*RemoveItemRequest)(nil), // 5: messages.RemoveItemRequest
|
|
(*RemoveDeliveryRequest)(nil), // 6: messages.RemoveDeliveryRequest
|
|
(*ChangeQuantityRequest)(nil), // 7: messages.ChangeQuantityRequest
|
|
(*SetDeliveryRequest)(nil), // 8: messages.SetDeliveryRequest
|
|
(*SetPickupPointRequest)(nil), // 9: messages.SetPickupPointRequest
|
|
(*CreateCheckoutOrderRequest)(nil), // 10: messages.CreateCheckoutOrderRequest
|
|
(*SetCartItemsRequest)(nil), // 11: messages.SetCartItemsRequest
|
|
(*OrderCompletedRequest)(nil), // 12: messages.OrderCompletedRequest
|
|
(*CartState)(nil), // 13: messages.CartState
|
|
(*CartItemState)(nil), // 14: messages.CartItemState
|
|
(*DeliveryState)(nil), // 15: messages.DeliveryState
|
|
(*AddRequest)(nil), // 16: messages.AddRequest
|
|
(*AddItem)(nil), // 17: messages.AddItem
|
|
(*RemoveItem)(nil), // 18: messages.RemoveItem
|
|
(*RemoveDelivery)(nil), // 19: messages.RemoveDelivery
|
|
(*ChangeQuantity)(nil), // 20: messages.ChangeQuantity
|
|
(*SetDelivery)(nil), // 21: messages.SetDelivery
|
|
(*SetPickupPoint)(nil), // 22: messages.SetPickupPoint
|
|
(*CreateCheckoutOrder)(nil), // 23: messages.CreateCheckoutOrder
|
|
(*SetCartRequest)(nil), // 24: messages.SetCartRequest
|
|
(*OrderCreated)(nil), // 25: messages.OrderCreated
|
|
(*PickupPoint)(nil), // 26: messages.PickupPoint
|
|
}
|
|
var file_cart_actor_proto_depIdxs = []int32{
|
|
13, // 0: messages.CartMutationReply.state:type_name -> messages.CartState
|
|
13, // 1: messages.StateReply.state:type_name -> messages.CartState
|
|
16, // 2: messages.AddRequestRequest.payload:type_name -> messages.AddRequest
|
|
17, // 3: messages.AddItemRequest.payload:type_name -> messages.AddItem
|
|
18, // 4: messages.RemoveItemRequest.payload:type_name -> messages.RemoveItem
|
|
19, // 5: messages.RemoveDeliveryRequest.payload:type_name -> messages.RemoveDelivery
|
|
20, // 6: messages.ChangeQuantityRequest.payload:type_name -> messages.ChangeQuantity
|
|
21, // 7: messages.SetDeliveryRequest.payload:type_name -> messages.SetDelivery
|
|
22, // 8: messages.SetPickupPointRequest.payload:type_name -> messages.SetPickupPoint
|
|
23, // 9: messages.CreateCheckoutOrderRequest.payload:type_name -> messages.CreateCheckoutOrder
|
|
24, // 10: messages.SetCartItemsRequest.payload:type_name -> messages.SetCartRequest
|
|
25, // 11: messages.OrderCompletedRequest.payload:type_name -> messages.OrderCreated
|
|
14, // 12: messages.CartState.items:type_name -> messages.CartItemState
|
|
15, // 13: messages.CartState.deliveries:type_name -> messages.DeliveryState
|
|
26, // 14: messages.DeliveryState.pickupPoint:type_name -> messages.PickupPoint
|
|
3, // 15: messages.CartActor.AddRequest:input_type -> messages.AddRequestRequest
|
|
4, // 16: messages.CartActor.AddItem:input_type -> messages.AddItemRequest
|
|
5, // 17: messages.CartActor.RemoveItem:input_type -> messages.RemoveItemRequest
|
|
6, // 18: messages.CartActor.RemoveDelivery:input_type -> messages.RemoveDeliveryRequest
|
|
7, // 19: messages.CartActor.ChangeQuantity:input_type -> messages.ChangeQuantityRequest
|
|
8, // 20: messages.CartActor.SetDelivery:input_type -> messages.SetDeliveryRequest
|
|
9, // 21: messages.CartActor.SetPickupPoint:input_type -> messages.SetPickupPointRequest
|
|
11, // 22: messages.CartActor.SetCartItems:input_type -> messages.SetCartItemsRequest
|
|
12, // 23: messages.CartActor.OrderCompleted:input_type -> messages.OrderCompletedRequest
|
|
1, // 24: messages.CartActor.GetState:input_type -> messages.StateRequest
|
|
0, // 25: messages.CartActor.AddRequest:output_type -> messages.CartMutationReply
|
|
0, // 26: messages.CartActor.AddItem:output_type -> messages.CartMutationReply
|
|
0, // 27: messages.CartActor.RemoveItem:output_type -> messages.CartMutationReply
|
|
0, // 28: messages.CartActor.RemoveDelivery:output_type -> messages.CartMutationReply
|
|
0, // 29: messages.CartActor.ChangeQuantity:output_type -> messages.CartMutationReply
|
|
0, // 30: messages.CartActor.SetDelivery:output_type -> messages.CartMutationReply
|
|
0, // 31: messages.CartActor.SetPickupPoint:output_type -> messages.CartMutationReply
|
|
0, // 32: messages.CartActor.SetCartItems:output_type -> messages.CartMutationReply
|
|
0, // 33: messages.CartActor.OrderCompleted:output_type -> messages.CartMutationReply
|
|
2, // 34: messages.CartActor.GetState:output_type -> messages.StateReply
|
|
25, // [25:35] is the sub-list for method output_type
|
|
15, // [15:25] is the sub-list for method input_type
|
|
15, // [15:15] is the sub-list for extension type_name
|
|
15, // [15:15] is the sub-list for extension extendee
|
|
0, // [0:15] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_cart_actor_proto_init() }
|
|
func file_cart_actor_proto_init() {
|
|
if File_cart_actor_proto != nil {
|
|
return
|
|
}
|
|
file_messages_proto_init()
|
|
file_cart_actor_proto_msgTypes[0].OneofWrappers = []any{
|
|
(*CartMutationReply_State)(nil),
|
|
(*CartMutationReply_Error)(nil),
|
|
}
|
|
file_cart_actor_proto_msgTypes[2].OneofWrappers = []any{
|
|
(*StateReply_State)(nil),
|
|
(*StateReply_Error)(nil),
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_cart_actor_proto_rawDesc), len(file_cart_actor_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 16,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_cart_actor_proto_goTypes,
|
|
DependencyIndexes: file_cart_actor_proto_depIdxs,
|
|
MessageInfos: file_cart_actor_proto_msgTypes,
|
|
}.Build()
|
|
File_cart_actor_proto = out.File
|
|
file_cart_actor_proto_goTypes = nil
|
|
file_cart_actor_proto_depIdxs = nil
|
|
}
|