// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.10 // protoc v6.33.1 // source: checkout.proto package checkout_messages import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" anypb "google.golang.org/protobuf/types/known/anypb" timestamppb "google.golang.org/protobuf/types/known/timestamppb" 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) ) type SetDelivery struct { state protoimpl.MessageState `protogen:"open.v1"` Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` Items []uint32 `protobuf:"varint,2,rep,packed,name=items,proto3" json:"items,omitempty"` PickupPoint *PickupPoint `protobuf:"bytes,3,opt,name=pickupPoint,proto3,oneof" json:"pickupPoint,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` Zip string `protobuf:"bytes,5,opt,name=zip,proto3" json:"zip,omitempty"` Address *string `protobuf:"bytes,6,opt,name=address,proto3,oneof" json:"address,omitempty"` City *string `protobuf:"bytes,7,opt,name=city,proto3,oneof" json:"city,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetDelivery) Reset() { *x = SetDelivery{} mi := &file_checkout_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetDelivery) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetDelivery) ProtoMessage() {} func (x *SetDelivery) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 SetDelivery.ProtoReflect.Descriptor instead. func (*SetDelivery) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{0} } func (x *SetDelivery) GetProvider() string { if x != nil { return x.Provider } return "" } func (x *SetDelivery) GetItems() []uint32 { if x != nil { return x.Items } return nil } func (x *SetDelivery) GetPickupPoint() *PickupPoint { if x != nil { return x.PickupPoint } return nil } func (x *SetDelivery) GetCountry() string { if x != nil { return x.Country } return "" } func (x *SetDelivery) GetZip() string { if x != nil { return x.Zip } return "" } func (x *SetDelivery) GetAddress() string { if x != nil && x.Address != nil { return *x.Address } return "" } func (x *SetDelivery) GetCity() string { if x != nil && x.City != nil { return *x.City } return "" } type Address struct { state protoimpl.MessageState `protogen:"open.v1"` AddressLine1 string `protobuf:"bytes,1,opt,name=addressLine1,proto3" json:"addressLine1,omitempty"` AddressLine2 *string `protobuf:"bytes,2,opt,name=addressLine2,proto3,oneof" json:"addressLine2,omitempty"` City string `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"` Zip string `protobuf:"bytes,5,opt,name=zip,proto3" json:"zip,omitempty"` Country string `protobuf:"bytes,6,opt,name=country,proto3" json:"country,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Address) Reset() { *x = Address{} mi := &file_checkout_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Address) String() string { return protoimpl.X.MessageStringOf(x) } func (*Address) ProtoMessage() {} func (x *Address) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 Address.ProtoReflect.Descriptor instead. func (*Address) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{1} } func (x *Address) GetAddressLine1() string { if x != nil { return x.AddressLine1 } return "" } func (x *Address) GetAddressLine2() string { if x != nil && x.AddressLine2 != nil { return *x.AddressLine2 } return "" } func (x *Address) GetCity() string { if x != nil { return x.City } return "" } func (x *Address) GetState() string { if x != nil { return x.State } return "" } func (x *Address) GetZip() string { if x != nil { return x.Zip } return "" } func (x *Address) GetCountry() string { if x != nil { return x.Country } return "" } type SetPickupPoint struct { state protoimpl.MessageState `protogen:"open.v1"` DeliveryId uint32 `protobuf:"varint,1,opt,name=deliveryId,proto3" json:"deliveryId,omitempty"` PickupPoint *PickupPoint `protobuf:"bytes,2,opt,name=pickupPoint,proto3" json:"pickupPoint,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *SetPickupPoint) Reset() { *x = SetPickupPoint{} mi := &file_checkout_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *SetPickupPoint) String() string { return protoimpl.X.MessageStringOf(x) } func (*SetPickupPoint) ProtoMessage() {} func (x *SetPickupPoint) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 SetPickupPoint.ProtoReflect.Descriptor instead. func (*SetPickupPoint) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{2} } func (x *SetPickupPoint) GetDeliveryId() uint32 { if x != nil { return x.DeliveryId } return 0 } func (x *SetPickupPoint) GetPickupPoint() *PickupPoint { if x != nil { return x.PickupPoint } return nil } type PickupPoint struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` Address *Address `protobuf:"bytes,4,opt,name=address,proto3,oneof" json:"address,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PickupPoint) Reset() { *x = PickupPoint{} mi := &file_checkout_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PickupPoint) String() string { return protoimpl.X.MessageStringOf(x) } func (*PickupPoint) ProtoMessage() {} func (x *PickupPoint) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 PickupPoint.ProtoReflect.Descriptor instead. func (*PickupPoint) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{3} } func (x *PickupPoint) GetId() string { if x != nil { return x.Id } return "" } func (x *PickupPoint) GetName() string { if x != nil && x.Name != nil { return *x.Name } return "" } func (x *PickupPoint) GetAddress() *Address { if x != nil { return x.Address } return nil } type RemoveDelivery struct { state protoimpl.MessageState `protogen:"open.v1"` Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *RemoveDelivery) Reset() { *x = RemoveDelivery{} mi := &file_checkout_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *RemoveDelivery) String() string { return protoimpl.X.MessageStringOf(x) } func (*RemoveDelivery) ProtoMessage() {} func (x *RemoveDelivery) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 RemoveDelivery.ProtoReflect.Descriptor instead. func (*RemoveDelivery) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{4} } func (x *RemoveDelivery) GetId() uint32 { if x != nil { return x.Id } return 0 } type PaymentStarted struct { state protoimpl.MessageState `protogen:"open.v1"` PaymentId string `protobuf:"bytes,1,opt,name=paymentId,proto3" json:"paymentId,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider,omitempty"` BillingAddress *Address `protobuf:"bytes,9,opt,name=billingAddress,proto3,oneof" json:"billingAddress,omitempty"` Method *string `protobuf:"bytes,6,opt,name=method,proto3,oneof" json:"method,omitempty"` StartedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=startedAt,proto3,oneof" json:"startedAt,omitempty"` SessionData *anypb.Any `protobuf:"bytes,8,opt,name=sessionData,proto3,oneof" json:"sessionData,omitempty"` Items []uint32 `protobuf:"varint,2,rep,packed,name=items,proto3" json:"items,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PaymentStarted) Reset() { *x = PaymentStarted{} mi := &file_checkout_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PaymentStarted) String() string { return protoimpl.X.MessageStringOf(x) } func (*PaymentStarted) ProtoMessage() {} func (x *PaymentStarted) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 PaymentStarted.ProtoReflect.Descriptor instead. func (*PaymentStarted) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{5} } func (x *PaymentStarted) GetPaymentId() string { if x != nil { return x.PaymentId } return "" } func (x *PaymentStarted) GetAmount() int64 { if x != nil { return x.Amount } return 0 } func (x *PaymentStarted) GetCurrency() string { if x != nil { return x.Currency } return "" } func (x *PaymentStarted) GetProvider() string { if x != nil { return x.Provider } return "" } func (x *PaymentStarted) GetBillingAddress() *Address { if x != nil { return x.BillingAddress } return nil } func (x *PaymentStarted) GetMethod() string { if x != nil && x.Method != nil { return *x.Method } return "" } func (x *PaymentStarted) GetStartedAt() *timestamppb.Timestamp { if x != nil { return x.StartedAt } return nil } func (x *PaymentStarted) GetSessionData() *anypb.Any { if x != nil { return x.SessionData } return nil } func (x *PaymentStarted) GetItems() []uint32 { if x != nil { return x.Items } return nil } type PaymentCompleted struct { state protoimpl.MessageState `protogen:"open.v1"` PaymentId string `protobuf:"bytes,1,opt,name=paymentId,proto3" json:"paymentId,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` Currency string `protobuf:"bytes,4,opt,name=currency,proto3" json:"currency,omitempty"` ProcessorReference *string `protobuf:"bytes,5,opt,name=processorReference,proto3,oneof" json:"processorReference,omitempty"` CompletedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completedAt,proto3,oneof" json:"completedAt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PaymentCompleted) Reset() { *x = PaymentCompleted{} mi := &file_checkout_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PaymentCompleted) String() string { return protoimpl.X.MessageStringOf(x) } func (*PaymentCompleted) ProtoMessage() {} func (x *PaymentCompleted) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 PaymentCompleted.ProtoReflect.Descriptor instead. func (*PaymentCompleted) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{6} } func (x *PaymentCompleted) GetPaymentId() string { if x != nil { return x.PaymentId } return "" } func (x *PaymentCompleted) GetStatus() string { if x != nil { return x.Status } return "" } func (x *PaymentCompleted) GetAmount() int64 { if x != nil { return x.Amount } return 0 } func (x *PaymentCompleted) GetCurrency() string { if x != nil { return x.Currency } return "" } func (x *PaymentCompleted) GetProcessorReference() string { if x != nil && x.ProcessorReference != nil { return *x.ProcessorReference } return "" } func (x *PaymentCompleted) GetCompletedAt() *timestamppb.Timestamp { if x != nil { return x.CompletedAt } return nil } type PaymentDeclined struct { state protoimpl.MessageState `protogen:"open.v1"` PaymentId string `protobuf:"bytes,1,opt,name=paymentId,proto3" json:"paymentId,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Code *string `protobuf:"bytes,3,opt,name=code,proto3,oneof" json:"code,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PaymentDeclined) Reset() { *x = PaymentDeclined{} mi := &file_checkout_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PaymentDeclined) String() string { return protoimpl.X.MessageStringOf(x) } func (*PaymentDeclined) ProtoMessage() {} func (x *PaymentDeclined) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 PaymentDeclined.ProtoReflect.Descriptor instead. func (*PaymentDeclined) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{7} } func (x *PaymentDeclined) GetPaymentId() string { if x != nil { return x.PaymentId } return "" } func (x *PaymentDeclined) GetMessage() string { if x != nil { return x.Message } return "" } func (x *PaymentDeclined) GetCode() string { if x != nil && x.Code != nil { return *x.Code } return "" } type PaymentEvent struct { state protoimpl.MessageState `protogen:"open.v1"` PaymentId string `protobuf:"bytes,1,opt,name=paymentId,proto3" json:"paymentId,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Success bool `protobuf:"varint,3,opt,name=success,proto3" json:"success,omitempty"` Data *anypb.Any `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *PaymentEvent) Reset() { *x = PaymentEvent{} mi := &file_checkout_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *PaymentEvent) String() string { return protoimpl.X.MessageStringOf(x) } func (*PaymentEvent) ProtoMessage() {} func (x *PaymentEvent) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 PaymentEvent.ProtoReflect.Descriptor instead. func (*PaymentEvent) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{8} } func (x *PaymentEvent) GetPaymentId() string { if x != nil { return x.PaymentId } return "" } func (x *PaymentEvent) GetName() string { if x != nil { return x.Name } return "" } func (x *PaymentEvent) GetSuccess() bool { if x != nil { return x.Success } return false } func (x *PaymentEvent) GetData() *anypb.Any { if x != nil { return x.Data } return nil } type ConfirmationViewed struct { state protoimpl.MessageState `protogen:"open.v1"` ViewedAt *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=viewedAt,proto3" json:"viewedAt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ConfirmationViewed) Reset() { *x = ConfirmationViewed{} mi := &file_checkout_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ConfirmationViewed) String() string { return protoimpl.X.MessageStringOf(x) } func (*ConfirmationViewed) ProtoMessage() {} func (x *ConfirmationViewed) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 ConfirmationViewed.ProtoReflect.Descriptor instead. func (*ConfirmationViewed) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{9} } func (x *ConfirmationViewed) GetViewedAt() *timestamppb.Timestamp { if x != nil { return x.ViewedAt } return nil } type OrderCreated struct { state protoimpl.MessageState `protogen:"open.v1"` OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=createdAt,proto3" json:"createdAt,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *OrderCreated) Reset() { *x = OrderCreated{} mi := &file_checkout_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *OrderCreated) String() string { return protoimpl.X.MessageStringOf(x) } func (*OrderCreated) ProtoMessage() {} func (x *OrderCreated) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 OrderCreated.ProtoReflect.Descriptor instead. func (*OrderCreated) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{10} } func (x *OrderCreated) GetOrderId() string { if x != nil { return x.OrderId } return "" } func (x *OrderCreated) GetStatus() string { if x != nil { return x.Status } return "" } func (x *OrderCreated) GetCreatedAt() *timestamppb.Timestamp { if x != nil { return x.CreatedAt } return nil } type InitializeCheckout struct { state protoimpl.MessageState `protogen:"open.v1"` OrderId string `protobuf:"bytes,1,opt,name=orderId,proto3" json:"orderId,omitempty"` CartId uint64 `protobuf:"varint,2,opt,name=cartId,proto3" json:"cartId,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` CartState *anypb.Any `protobuf:"bytes,4,opt,name=cartState,proto3" json:"cartState,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InitializeCheckout) Reset() { *x = InitializeCheckout{} mi := &file_checkout_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *InitializeCheckout) String() string { return protoimpl.X.MessageStringOf(x) } func (*InitializeCheckout) ProtoMessage() {} func (x *InitializeCheckout) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 InitializeCheckout.ProtoReflect.Descriptor instead. func (*InitializeCheckout) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{11} } func (x *InitializeCheckout) GetOrderId() string { if x != nil { return x.OrderId } return "" } func (x *InitializeCheckout) GetCartId() uint64 { if x != nil { return x.CartId } return 0 } func (x *InitializeCheckout) GetVersion() uint32 { if x != nil { return x.Version } return 0 } func (x *InitializeCheckout) GetCartState() *anypb.Any { if x != nil { return x.CartState } return nil } type ContactDetailsUpdated struct { state protoimpl.MessageState `protogen:"open.v1"` Email *string `protobuf:"bytes,1,opt,name=email,proto3,oneof" json:"email,omitempty"` PostalCode *string `protobuf:"bytes,4,opt,name=postalCode,proto3,oneof" json:"postalCode,omitempty"` Phone *string `protobuf:"bytes,2,opt,name=phone,proto3,oneof" json:"phone,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *ContactDetailsUpdated) Reset() { *x = ContactDetailsUpdated{} mi := &file_checkout_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ContactDetailsUpdated) String() string { return protoimpl.X.MessageStringOf(x) } func (*ContactDetailsUpdated) ProtoMessage() {} func (x *ContactDetailsUpdated) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 ContactDetailsUpdated.ProtoReflect.Descriptor instead. func (*ContactDetailsUpdated) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{12} } func (x *ContactDetailsUpdated) GetEmail() string { if x != nil && x.Email != nil { return *x.Email } return "" } func (x *ContactDetailsUpdated) GetPostalCode() string { if x != nil && x.PostalCode != nil { return *x.PostalCode } return "" } func (x *ContactDetailsUpdated) GetPhone() string { if x != nil && x.Phone != nil { return *x.Phone } return "" } func (x *ContactDetailsUpdated) GetName() string { if x != nil && x.Name != nil { return *x.Name } return "" } type InventoryReserved struct { state protoimpl.MessageState `protogen:"open.v1"` Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Message *string `protobuf:"bytes,3,opt,name=message,proto3,oneof" json:"message,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *InventoryReserved) Reset() { *x = InventoryReserved{} mi := &file_checkout_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *InventoryReserved) String() string { return protoimpl.X.MessageStringOf(x) } func (*InventoryReserved) ProtoMessage() {} func (x *InventoryReserved) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 InventoryReserved.ProtoReflect.Descriptor instead. func (*InventoryReserved) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{13} } func (x *InventoryReserved) GetId() string { if x != nil { return x.Id } return "" } func (x *InventoryReserved) GetStatus() string { if x != nil { return x.Status } return "" } func (x *InventoryReserved) GetMessage() string { if x != nil && x.Message != nil { return *x.Message } return "" } type Mutation struct { state protoimpl.MessageState `protogen:"open.v1"` // Types that are valid to be assigned to Type: // // *Mutation_SetDelivery // *Mutation_SetPickupPoint // *Mutation_RemoveDelivery // *Mutation_PaymentDeclined // *Mutation_ConfirmationViewed // *Mutation_ContactDetailsUpdated // *Mutation_OrderCreated // *Mutation_InitializeCheckout // *Mutation_InventoryReserved // *Mutation_PaymentStarted // *Mutation_PaymentCompleted // *Mutation_PaymentEvent Type isMutation_Type `protobuf_oneof:"type"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *Mutation) Reset() { *x = Mutation{} mi := &file_checkout_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *Mutation) String() string { return protoimpl.X.MessageStringOf(x) } func (*Mutation) ProtoMessage() {} func (x *Mutation) ProtoReflect() protoreflect.Message { mi := &file_checkout_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 Mutation.ProtoReflect.Descriptor instead. func (*Mutation) Descriptor() ([]byte, []int) { return file_checkout_proto_rawDescGZIP(), []int{14} } func (x *Mutation) GetType() isMutation_Type { if x != nil { return x.Type } return nil } func (x *Mutation) GetSetDelivery() *SetDelivery { if x != nil { if x, ok := x.Type.(*Mutation_SetDelivery); ok { return x.SetDelivery } } return nil } func (x *Mutation) GetSetPickupPoint() *SetPickupPoint { if x != nil { if x, ok := x.Type.(*Mutation_SetPickupPoint); ok { return x.SetPickupPoint } } return nil } func (x *Mutation) GetRemoveDelivery() *RemoveDelivery { if x != nil { if x, ok := x.Type.(*Mutation_RemoveDelivery); ok { return x.RemoveDelivery } } return nil } func (x *Mutation) GetPaymentDeclined() *PaymentDeclined { if x != nil { if x, ok := x.Type.(*Mutation_PaymentDeclined); ok { return x.PaymentDeclined } } return nil } func (x *Mutation) GetConfirmationViewed() *ConfirmationViewed { if x != nil { if x, ok := x.Type.(*Mutation_ConfirmationViewed); ok { return x.ConfirmationViewed } } return nil } func (x *Mutation) GetContactDetailsUpdated() *ContactDetailsUpdated { if x != nil { if x, ok := x.Type.(*Mutation_ContactDetailsUpdated); ok { return x.ContactDetailsUpdated } } return nil } func (x *Mutation) GetOrderCreated() *OrderCreated { if x != nil { if x, ok := x.Type.(*Mutation_OrderCreated); ok { return x.OrderCreated } } return nil } func (x *Mutation) GetInitializeCheckout() *InitializeCheckout { if x != nil { if x, ok := x.Type.(*Mutation_InitializeCheckout); ok { return x.InitializeCheckout } } return nil } func (x *Mutation) GetInventoryReserved() *InventoryReserved { if x != nil { if x, ok := x.Type.(*Mutation_InventoryReserved); ok { return x.InventoryReserved } } return nil } func (x *Mutation) GetPaymentStarted() *PaymentStarted { if x != nil { if x, ok := x.Type.(*Mutation_PaymentStarted); ok { return x.PaymentStarted } } return nil } func (x *Mutation) GetPaymentCompleted() *PaymentCompleted { if x != nil { if x, ok := x.Type.(*Mutation_PaymentCompleted); ok { return x.PaymentCompleted } } return nil } func (x *Mutation) GetPaymentEvent() *PaymentEvent { if x != nil { if x, ok := x.Type.(*Mutation_PaymentEvent); ok { return x.PaymentEvent } } return nil } type isMutation_Type interface { isMutation_Type() } type Mutation_SetDelivery struct { SetDelivery *SetDelivery `protobuf:"bytes,1,opt,name=set_delivery,json=setDelivery,proto3,oneof"` } type Mutation_SetPickupPoint struct { SetPickupPoint *SetPickupPoint `protobuf:"bytes,2,opt,name=set_pickup_point,json=setPickupPoint,proto3,oneof"` } type Mutation_RemoveDelivery struct { RemoveDelivery *RemoveDelivery `protobuf:"bytes,3,opt,name=remove_delivery,json=removeDelivery,proto3,oneof"` } type Mutation_PaymentDeclined struct { PaymentDeclined *PaymentDeclined `protobuf:"bytes,4,opt,name=payment_declined,json=paymentDeclined,proto3,oneof"` } type Mutation_ConfirmationViewed struct { ConfirmationViewed *ConfirmationViewed `protobuf:"bytes,5,opt,name=confirmation_viewed,json=confirmationViewed,proto3,oneof"` } type Mutation_ContactDetailsUpdated struct { ContactDetailsUpdated *ContactDetailsUpdated `protobuf:"bytes,6,opt,name=contact_details_updated,json=contactDetailsUpdated,proto3,oneof"` } type Mutation_OrderCreated struct { OrderCreated *OrderCreated `protobuf:"bytes,7,opt,name=order_created,json=orderCreated,proto3,oneof"` } type Mutation_InitializeCheckout struct { InitializeCheckout *InitializeCheckout `protobuf:"bytes,9,opt,name=initialize_checkout,json=initializeCheckout,proto3,oneof"` } type Mutation_InventoryReserved struct { InventoryReserved *InventoryReserved `protobuf:"bytes,10,opt,name=inventory_reserved,json=inventoryReserved,proto3,oneof"` } type Mutation_PaymentStarted struct { PaymentStarted *PaymentStarted `protobuf:"bytes,11,opt,name=payment_started,json=paymentStarted,proto3,oneof"` } type Mutation_PaymentCompleted struct { PaymentCompleted *PaymentCompleted `protobuf:"bytes,12,opt,name=payment_completed,json=paymentCompleted,proto3,oneof"` } type Mutation_PaymentEvent struct { PaymentEvent *PaymentEvent `protobuf:"bytes,13,opt,name=payment_event,json=paymentEvent,proto3,oneof"` } func (*Mutation_SetDelivery) isMutation_Type() {} func (*Mutation_SetPickupPoint) isMutation_Type() {} func (*Mutation_RemoveDelivery) isMutation_Type() {} func (*Mutation_PaymentDeclined) isMutation_Type() {} func (*Mutation_ConfirmationViewed) isMutation_Type() {} func (*Mutation_ContactDetailsUpdated) isMutation_Type() {} func (*Mutation_OrderCreated) isMutation_Type() {} func (*Mutation_InitializeCheckout) isMutation_Type() {} func (*Mutation_InventoryReserved) isMutation_Type() {} func (*Mutation_PaymentStarted) isMutation_Type() {} func (*Mutation_PaymentCompleted) isMutation_Type() {} func (*Mutation_PaymentEvent) isMutation_Type() {} var File_checkout_proto protoreflect.FileDescriptor const file_checkout_proto_rawDesc = "" + "\n" + "\x0echeckout.proto\x12\x11checkout_messages\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x02\n" + "\vSetDelivery\x12\x1a\n" + "\bprovider\x18\x01 \x01(\tR\bprovider\x12\x14\n" + "\x05items\x18\x02 \x03(\rR\x05items\x12E\n" + "\vpickupPoint\x18\x03 \x01(\v2\x1e.checkout_messages.PickupPointH\x00R\vpickupPoint\x88\x01\x01\x12\x18\n" + "\acountry\x18\x04 \x01(\tR\acountry\x12\x10\n" + "\x03zip\x18\x05 \x01(\tR\x03zip\x12\x1d\n" + "\aaddress\x18\x06 \x01(\tH\x01R\aaddress\x88\x01\x01\x12\x17\n" + "\x04city\x18\a \x01(\tH\x02R\x04city\x88\x01\x01B\x0e\n" + "\f_pickupPointB\n" + "\n" + "\b_addressB\a\n" + "\x05_city\"\xbd\x01\n" + "\aAddress\x12\"\n" + "\faddressLine1\x18\x01 \x01(\tR\faddressLine1\x12'\n" + "\faddressLine2\x18\x02 \x01(\tH\x00R\faddressLine2\x88\x01\x01\x12\x12\n" + "\x04city\x18\x03 \x01(\tR\x04city\x12\x14\n" + "\x05state\x18\x04 \x01(\tR\x05state\x12\x10\n" + "\x03zip\x18\x05 \x01(\tR\x03zip\x12\x18\n" + "\acountry\x18\x06 \x01(\tR\acountryB\x0f\n" + "\r_addressLine2\"r\n" + "\x0eSetPickupPoint\x12\x1e\n" + "\n" + "deliveryId\x18\x01 \x01(\rR\n" + "deliveryId\x12@\n" + "\vpickupPoint\x18\x02 \x01(\v2\x1e.checkout_messages.PickupPointR\vpickupPoint\"\x86\x01\n" + "\vPickupPoint\x12\x0e\n" + "\x02id\x18\x02 \x01(\tR\x02id\x12\x17\n" + "\x04name\x18\x03 \x01(\tH\x00R\x04name\x88\x01\x01\x129\n" + "\aaddress\x18\x04 \x01(\v2\x1a.checkout_messages.AddressH\x01R\aaddress\x88\x01\x01B\a\n" + "\x05_nameB\n" + "\n" + "\b_address\" \n" + "\x0eRemoveDelivery\x12\x0e\n" + "\x02id\x18\x01 \x01(\rR\x02id\"\xb2\x03\n" + "\x0ePaymentStarted\x12\x1c\n" + "\tpaymentId\x18\x01 \x01(\tR\tpaymentId\x12\x16\n" + "\x06amount\x18\x03 \x01(\x03R\x06amount\x12\x1a\n" + "\bcurrency\x18\x04 \x01(\tR\bcurrency\x12\x1a\n" + "\bprovider\x18\x05 \x01(\tR\bprovider\x12G\n" + "\x0ebillingAddress\x18\t \x01(\v2\x1a.checkout_messages.AddressH\x00R\x0ebillingAddress\x88\x01\x01\x12\x1b\n" + "\x06method\x18\x06 \x01(\tH\x01R\x06method\x88\x01\x01\x12=\n" + "\tstartedAt\x18\a \x01(\v2\x1a.google.protobuf.TimestampH\x02R\tstartedAt\x88\x01\x01\x12;\n" + "\vsessionData\x18\b \x01(\v2\x14.google.protobuf.AnyH\x03R\vsessionData\x88\x01\x01\x12\x14\n" + "\x05items\x18\x02 \x03(\rR\x05itemsB\x11\n" + "\x0f_billingAddressB\t\n" + "\a_methodB\f\n" + "\n" + "_startedAtB\x0e\n" + "\f_sessionData\"\x9b\x02\n" + "\x10PaymentCompleted\x12\x1c\n" + "\tpaymentId\x18\x01 \x01(\tR\tpaymentId\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12\x16\n" + "\x06amount\x18\x03 \x01(\x03R\x06amount\x12\x1a\n" + "\bcurrency\x18\x04 \x01(\tR\bcurrency\x123\n" + "\x12processorReference\x18\x05 \x01(\tH\x00R\x12processorReference\x88\x01\x01\x12A\n" + "\vcompletedAt\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampH\x01R\vcompletedAt\x88\x01\x01B\x15\n" + "\x13_processorReferenceB\x0e\n" + "\f_completedAt\"k\n" + "\x0fPaymentDeclined\x12\x1c\n" + "\tpaymentId\x18\x01 \x01(\tR\tpaymentId\x12\x18\n" + "\amessage\x18\x02 \x01(\tR\amessage\x12\x17\n" + "\x04code\x18\x03 \x01(\tH\x00R\x04code\x88\x01\x01B\a\n" + "\x05_code\"\x84\x01\n" + "\fPaymentEvent\x12\x1c\n" + "\tpaymentId\x18\x01 \x01(\tR\tpaymentId\x12\x12\n" + "\x04name\x18\x02 \x01(\tR\x04name\x12\x18\n" + "\asuccess\x18\x03 \x01(\bR\asuccess\x12(\n" + "\x04data\x18\x04 \x01(\v2\x14.google.protobuf.AnyR\x04data\"L\n" + "\x12ConfirmationViewed\x126\n" + "\bviewedAt\x18\x01 \x01(\v2\x1a.google.protobuf.TimestampR\bviewedAt\"z\n" + "\fOrderCreated\x12\x18\n" + "\aorderId\x18\x01 \x01(\tR\aorderId\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x128\n" + "\tcreatedAt\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\x94\x01\n" + "\x12InitializeCheckout\x12\x18\n" + "\aorderId\x18\x01 \x01(\tR\aorderId\x12\x16\n" + "\x06cartId\x18\x02 \x01(\x04R\x06cartId\x12\x18\n" + "\aversion\x18\x03 \x01(\rR\aversion\x122\n" + "\tcartState\x18\x04 \x01(\v2\x14.google.protobuf.AnyR\tcartState\"\xb7\x01\n" + "\x15ContactDetailsUpdated\x12\x19\n" + "\x05email\x18\x01 \x01(\tH\x00R\x05email\x88\x01\x01\x12#\n" + "\n" + "postalCode\x18\x04 \x01(\tH\x01R\n" + "postalCode\x88\x01\x01\x12\x19\n" + "\x05phone\x18\x02 \x01(\tH\x02R\x05phone\x88\x01\x01\x12\x17\n" + "\x04name\x18\x03 \x01(\tH\x03R\x04name\x88\x01\x01B\b\n" + "\x06_emailB\r\n" + "\v_postalCodeB\b\n" + "\x06_phoneB\a\n" + "\x05_name\"f\n" + "\x11InventoryReserved\x12\x0e\n" + "\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + "\x06status\x18\x02 \x01(\tR\x06status\x12\x1d\n" + "\amessage\x18\x03 \x01(\tH\x00R\amessage\x88\x01\x01B\n" + "\n" + "\b_message\"\xe6\a\n" + "\bMutation\x12C\n" + "\fset_delivery\x18\x01 \x01(\v2\x1e.checkout_messages.SetDeliveryH\x00R\vsetDelivery\x12M\n" + "\x10set_pickup_point\x18\x02 \x01(\v2!.checkout_messages.SetPickupPointH\x00R\x0esetPickupPoint\x12L\n" + "\x0fremove_delivery\x18\x03 \x01(\v2!.checkout_messages.RemoveDeliveryH\x00R\x0eremoveDelivery\x12O\n" + "\x10payment_declined\x18\x04 \x01(\v2\".checkout_messages.PaymentDeclinedH\x00R\x0fpaymentDeclined\x12X\n" + "\x13confirmation_viewed\x18\x05 \x01(\v2%.checkout_messages.ConfirmationViewedH\x00R\x12confirmationViewed\x12b\n" + "\x17contact_details_updated\x18\x06 \x01(\v2(.checkout_messages.ContactDetailsUpdatedH\x00R\x15contactDetailsUpdated\x12F\n" + "\rorder_created\x18\a \x01(\v2\x1f.checkout_messages.OrderCreatedH\x00R\forderCreated\x12X\n" + "\x13initialize_checkout\x18\t \x01(\v2%.checkout_messages.InitializeCheckoutH\x00R\x12initializeCheckout\x12U\n" + "\x12inventory_reserved\x18\n" + " \x01(\v2$.checkout_messages.InventoryReservedH\x00R\x11inventoryReserved\x12L\n" + "\x0fpayment_started\x18\v \x01(\v2!.checkout_messages.PaymentStartedH\x00R\x0epaymentStarted\x12R\n" + "\x11payment_completed\x18\f \x01(\v2#.checkout_messages.PaymentCompletedH\x00R\x10paymentCompleted\x12F\n" + "\rpayment_event\x18\r \x01(\v2\x1f.checkout_messages.PaymentEventH\x00R\fpaymentEventB\x06\n" + "\x04typeB checkout_messages.PickupPoint 3, // 1: checkout_messages.SetPickupPoint.pickupPoint:type_name -> checkout_messages.PickupPoint 1, // 2: checkout_messages.PickupPoint.address:type_name -> checkout_messages.Address 1, // 3: checkout_messages.PaymentStarted.billingAddress:type_name -> checkout_messages.Address 15, // 4: checkout_messages.PaymentStarted.startedAt:type_name -> google.protobuf.Timestamp 16, // 5: checkout_messages.PaymentStarted.sessionData:type_name -> google.protobuf.Any 15, // 6: checkout_messages.PaymentCompleted.completedAt:type_name -> google.protobuf.Timestamp 16, // 7: checkout_messages.PaymentEvent.data:type_name -> google.protobuf.Any 15, // 8: checkout_messages.ConfirmationViewed.viewedAt:type_name -> google.protobuf.Timestamp 15, // 9: checkout_messages.OrderCreated.createdAt:type_name -> google.protobuf.Timestamp 16, // 10: checkout_messages.InitializeCheckout.cartState:type_name -> google.protobuf.Any 0, // 11: checkout_messages.Mutation.set_delivery:type_name -> checkout_messages.SetDelivery 2, // 12: checkout_messages.Mutation.set_pickup_point:type_name -> checkout_messages.SetPickupPoint 4, // 13: checkout_messages.Mutation.remove_delivery:type_name -> checkout_messages.RemoveDelivery 7, // 14: checkout_messages.Mutation.payment_declined:type_name -> checkout_messages.PaymentDeclined 9, // 15: checkout_messages.Mutation.confirmation_viewed:type_name -> checkout_messages.ConfirmationViewed 12, // 16: checkout_messages.Mutation.contact_details_updated:type_name -> checkout_messages.ContactDetailsUpdated 10, // 17: checkout_messages.Mutation.order_created:type_name -> checkout_messages.OrderCreated 11, // 18: checkout_messages.Mutation.initialize_checkout:type_name -> checkout_messages.InitializeCheckout 13, // 19: checkout_messages.Mutation.inventory_reserved:type_name -> checkout_messages.InventoryReserved 5, // 20: checkout_messages.Mutation.payment_started:type_name -> checkout_messages.PaymentStarted 6, // 21: checkout_messages.Mutation.payment_completed:type_name -> checkout_messages.PaymentCompleted 8, // 22: checkout_messages.Mutation.payment_event:type_name -> checkout_messages.PaymentEvent 23, // [23:23] is the sub-list for method output_type 23, // [23:23] is the sub-list for method input_type 23, // [23:23] is the sub-list for extension type_name 23, // [23:23] is the sub-list for extension extendee 0, // [0:23] is the sub-list for field type_name } func init() { file_checkout_proto_init() } func file_checkout_proto_init() { if File_checkout_proto != nil { return } file_checkout_proto_msgTypes[0].OneofWrappers = []any{} file_checkout_proto_msgTypes[1].OneofWrappers = []any{} file_checkout_proto_msgTypes[3].OneofWrappers = []any{} file_checkout_proto_msgTypes[5].OneofWrappers = []any{} file_checkout_proto_msgTypes[6].OneofWrappers = []any{} file_checkout_proto_msgTypes[7].OneofWrappers = []any{} file_checkout_proto_msgTypes[12].OneofWrappers = []any{} file_checkout_proto_msgTypes[13].OneofWrappers = []any{} file_checkout_proto_msgTypes[14].OneofWrappers = []any{ (*Mutation_SetDelivery)(nil), (*Mutation_SetPickupPoint)(nil), (*Mutation_RemoveDelivery)(nil), (*Mutation_PaymentDeclined)(nil), (*Mutation_ConfirmationViewed)(nil), (*Mutation_ContactDetailsUpdated)(nil), (*Mutation_OrderCreated)(nil), (*Mutation_InitializeCheckout)(nil), (*Mutation_InventoryReserved)(nil), (*Mutation_PaymentStarted)(nil), (*Mutation_PaymentCompleted)(nil), (*Mutation_PaymentEvent)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_checkout_proto_rawDesc), len(file_checkout_proto_rawDesc)), NumEnums: 0, NumMessages: 15, NumExtensions: 0, NumServices: 0, }, GoTypes: file_checkout_proto_goTypes, DependencyIndexes: file_checkout_proto_depIdxs, MessageInfos: file_checkout_proto_msgTypes, }.Build() File_checkout_proto = out.File file_checkout_proto_goTypes = nil file_checkout_proto_depIdxs = nil }