Versions in this module Expand all Collapse all v0 v0.0.1 Jun 21, 2023 Changes in this version + const GreetingService_CreateCustomerCard_FullMethodName + const GreetingService_CreateCustomer_FullMethodName + const GreetingService_DeleteCustomerCard_FullMethodName + const GreetingService_DeleteCustomer_FullMethodName + const GreetingService_GetCustomerCardList_FullMethodName + const GreetingService_GetCustomerCard_FullMethodName + const GreetingService_GetCustomerList_FullMethodName + const GreetingService_GetCustomer_FullMethodName + const GreetingService_UpdateCustomerCard_FullMethodName + const GreetingService_UpdateCustomer_FullMethodName + var File_customer_proto protoreflect.FileDescriptor + var GreetingService_ServiceDesc = grpc.ServiceDesc + func RegisterGreetingServiceServer(s grpc.ServiceRegistrar, srv GreetingServiceServer) + type CreateCustomerCardRequest struct + CustomerId string + LocationId string + MerchantId string + PostalCode string + ThirdPartyCardId string + func (*CreateCustomerCardRequest) Descriptor() ([]byte, []int) + func (*CreateCustomerCardRequest) ProtoMessage() + func (req *CreateCustomerCardRequest) Validate() error + func (x *CreateCustomerCardRequest) GetCustomerId() string + func (x *CreateCustomerCardRequest) GetLocationId() string + func (x *CreateCustomerCardRequest) GetMerchantId() string + func (x *CreateCustomerCardRequest) GetPostalCode() string + func (x *CreateCustomerCardRequest) GetThirdPartyCardId() string + func (x *CreateCustomerCardRequest) ProtoReflect() protoreflect.Message + func (x *CreateCustomerCardRequest) Reset() + func (x *CreateCustomerCardRequest) String() string + type CreateCustomerCardResponse struct + BillingAddress *_struct.Struct + CardBrand string + CreatedAt string + CustomerId string + ExpMonth int64 + ExpYear int64 + Id string + IsDefault bool + Last_4 string + ThirdPartyCardId string + UpdatedAt string + func (*CreateCustomerCardResponse) Descriptor() ([]byte, []int) + func (*CreateCustomerCardResponse) ProtoMessage() + func (x *CreateCustomerCardResponse) GetBillingAddress() *_struct.Struct + func (x *CreateCustomerCardResponse) GetCardBrand() string + func (x *CreateCustomerCardResponse) GetCreatedAt() string + func (x *CreateCustomerCardResponse) GetCustomerId() string + func (x *CreateCustomerCardResponse) GetExpMonth() int64 + func (x *CreateCustomerCardResponse) GetExpYear() int64 + func (x *CreateCustomerCardResponse) GetId() string + func (x *CreateCustomerCardResponse) GetIsDefault() bool + func (x *CreateCustomerCardResponse) GetLast_4() string + func (x *CreateCustomerCardResponse) GetThirdPartyCardId() string + func (x *CreateCustomerCardResponse) GetUpdatedAt() string + func (x *CreateCustomerCardResponse) ProtoReflect() protoreflect.Message + func (x *CreateCustomerCardResponse) Reset() + func (x *CreateCustomerCardResponse) String() string + type CreateCustomerRequest struct + Avatar string + DisplayName string + Email string + FirstName string + Gender string + Id string + LastName string + MerchantId string + Mobile string + func (*CreateCustomerRequest) Descriptor() ([]byte, []int) + func (*CreateCustomerRequest) ProtoMessage() + func (req *CreateCustomerRequest) Validate() error + func (x *CreateCustomerRequest) GetAvatar() string + func (x *CreateCustomerRequest) GetDisplayName() string + func (x *CreateCustomerRequest) GetEmail() string + func (x *CreateCustomerRequest) GetFirstName() string + func (x *CreateCustomerRequest) GetGender() string + func (x *CreateCustomerRequest) GetId() string + func (x *CreateCustomerRequest) GetLastName() string + func (x *CreateCustomerRequest) GetMerchantId() string + func (x *CreateCustomerRequest) GetMobile() string + func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message + func (x *CreateCustomerRequest) Reset() + func (x *CreateCustomerRequest) String() string + type CreateCustomerResponse struct + Avatar string + CreatedAt string + DisplayName string + Email string + FirstName string + Gender string + Id string + LastName string + MerchantId string + Mobile string + UpdatedAt string + func (*CreateCustomerResponse) Descriptor() ([]byte, []int) + func (*CreateCustomerResponse) ProtoMessage() + func (x *CreateCustomerResponse) GetAvatar() string + func (x *CreateCustomerResponse) GetCreatedAt() string + func (x *CreateCustomerResponse) GetDisplayName() string + func (x *CreateCustomerResponse) GetEmail() string + func (x *CreateCustomerResponse) GetFirstName() string + func (x *CreateCustomerResponse) GetGender() string + func (x *CreateCustomerResponse) GetId() string + func (x *CreateCustomerResponse) GetLastName() string + func (x *CreateCustomerResponse) GetMerchantId() string + func (x *CreateCustomerResponse) GetMobile() string + func (x *CreateCustomerResponse) GetUpdatedAt() string + func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message + func (x *CreateCustomerResponse) Reset() + func (x *CreateCustomerResponse) String() string + type DeleteCustomerCardRequest struct + Id string + func (*DeleteCustomerCardRequest) Descriptor() ([]byte, []int) + func (*DeleteCustomerCardRequest) ProtoMessage() + func (req *DeleteCustomerCardRequest) Validate() error + func (x *DeleteCustomerCardRequest) GetId() string + func (x *DeleteCustomerCardRequest) ProtoReflect() protoreflect.Message + func (x *DeleteCustomerCardRequest) Reset() + func (x *DeleteCustomerCardRequest) String() string + type DeleteCustomerRequest struct + Id string + func (*DeleteCustomerRequest) Descriptor() ([]byte, []int) + func (*DeleteCustomerRequest) ProtoMessage() + func (req *DeleteCustomerRequest) Validate() error + func (x *DeleteCustomerRequest) GetId() string + func (x *DeleteCustomerRequest) ProtoReflect() protoreflect.Message + func (x *DeleteCustomerRequest) Reset() + func (x *DeleteCustomerRequest) String() string + type GetCustomerCardListRequest struct + CustomerId string + func (*GetCustomerCardListRequest) Descriptor() ([]byte, []int) + func (*GetCustomerCardListRequest) ProtoMessage() + func (req *GetCustomerCardListRequest) Validate() error + func (x *GetCustomerCardListRequest) GetCustomerId() string + func (x *GetCustomerCardListRequest) ProtoReflect() protoreflect.Message + func (x *GetCustomerCardListRequest) Reset() + func (x *GetCustomerCardListRequest) String() string + type GetCustomerCardListResponse struct + Cards []*CreateCustomerCardResponse + func (*GetCustomerCardListResponse) Descriptor() ([]byte, []int) + func (*GetCustomerCardListResponse) ProtoMessage() + func (x *GetCustomerCardListResponse) GetCards() []*CreateCustomerCardResponse + func (x *GetCustomerCardListResponse) ProtoReflect() protoreflect.Message + func (x *GetCustomerCardListResponse) Reset() + func (x *GetCustomerCardListResponse) String() string + type GetCustomerCardRequest struct + Id string + func (*GetCustomerCardRequest) Descriptor() ([]byte, []int) + func (*GetCustomerCardRequest) ProtoMessage() + func (req *GetCustomerCardRequest) Validate() error + func (x *GetCustomerCardRequest) GetId() string + func (x *GetCustomerCardRequest) ProtoReflect() protoreflect.Message + func (x *GetCustomerCardRequest) Reset() + func (x *GetCustomerCardRequest) String() string + type GetCustomerCardResponse struct + BillingAddress *_struct.Struct + CardBrand string + CreatedAt string + CustomerId string + ExpMonth int64 + ExpYear int64 + Id string + IsDefault bool + Last_4 string + ThirdPartyCardId string + UpdatedAt string + func (*GetCustomerCardResponse) Descriptor() ([]byte, []int) + func (*GetCustomerCardResponse) ProtoMessage() + func (x *GetCustomerCardResponse) GetBillingAddress() *_struct.Struct + func (x *GetCustomerCardResponse) GetCardBrand() string + func (x *GetCustomerCardResponse) GetCreatedAt() string + func (x *GetCustomerCardResponse) GetCustomerId() string + func (x *GetCustomerCardResponse) GetExpMonth() int64 + func (x *GetCustomerCardResponse) GetExpYear() int64 + func (x *GetCustomerCardResponse) GetId() string + func (x *GetCustomerCardResponse) GetIsDefault() bool + func (x *GetCustomerCardResponse) GetLast_4() string + func (x *GetCustomerCardResponse) GetThirdPartyCardId() string + func (x *GetCustomerCardResponse) GetUpdatedAt() string + func (x *GetCustomerCardResponse) ProtoReflect() protoreflect.Message + func (x *GetCustomerCardResponse) Reset() + func (x *GetCustomerCardResponse) String() string + type GetCustomerListRequest struct + MerchantId string + func (*GetCustomerListRequest) Descriptor() ([]byte, []int) + func (*GetCustomerListRequest) ProtoMessage() + func (req *GetCustomerListRequest) Validate() error + func (x *GetCustomerListRequest) GetMerchantId() string + func (x *GetCustomerListRequest) ProtoReflect() protoreflect.Message + func (x *GetCustomerListRequest) Reset() + func (x *GetCustomerListRequest) String() string + type GetCustomerListResponse struct + Customers []*CreateCustomerResponse + func (*GetCustomerListResponse) Descriptor() ([]byte, []int) + func (*GetCustomerListResponse) ProtoMessage() + func (x *GetCustomerListResponse) GetCustomers() []*CreateCustomerResponse + func (x *GetCustomerListResponse) ProtoReflect() protoreflect.Message + func (x *GetCustomerListResponse) Reset() + func (x *GetCustomerListResponse) String() string + type GetCustomerRequest struct + Id string + func (*GetCustomerRequest) Descriptor() ([]byte, []int) + func (*GetCustomerRequest) ProtoMessage() + func (req *GetCustomerRequest) Validate() error + func (x *GetCustomerRequest) GetId() string + func (x *GetCustomerRequest) ProtoReflect() protoreflect.Message + func (x *GetCustomerRequest) Reset() + func (x *GetCustomerRequest) String() string + type GetCustomerResponse struct + Avatar string + CreatedAt string + DisplayName string + Email string + FirstName string + Gender string + Id string + LastName string + MerchantId string + Mobile string + UpdatedAt string + func (*GetCustomerResponse) Descriptor() ([]byte, []int) + func (*GetCustomerResponse) ProtoMessage() + func (x *GetCustomerResponse) GetAvatar() string + func (x *GetCustomerResponse) GetCreatedAt() string + func (x *GetCustomerResponse) GetDisplayName() string + func (x *GetCustomerResponse) GetEmail() string + func (x *GetCustomerResponse) GetFirstName() string + func (x *GetCustomerResponse) GetGender() string + func (x *GetCustomerResponse) GetId() string + func (x *GetCustomerResponse) GetLastName() string + func (x *GetCustomerResponse) GetMerchantId() string + func (x *GetCustomerResponse) GetMobile() string + func (x *GetCustomerResponse) GetUpdatedAt() string + func (x *GetCustomerResponse) ProtoReflect() protoreflect.Message + func (x *GetCustomerResponse) Reset() + func (x *GetCustomerResponse) String() string + type GreetingServiceClient interface + CreateCustomer func(ctx context.Context, in *CreateCustomerRequest, opts ...grpc.CallOption) (*CreateCustomerResponse, error) + CreateCustomerCard func(ctx context.Context, in *CreateCustomerCardRequest, opts ...grpc.CallOption) (*CreateCustomerCardResponse, error) + DeleteCustomer func(ctx context.Context, in *DeleteCustomerRequest, opts ...grpc.CallOption) (*empty.Empty, error) + DeleteCustomerCard func(ctx context.Context, in *DeleteCustomerCardRequest, opts ...grpc.CallOption) (*empty.Empty, error) + GetCustomer func(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*GetCustomerResponse, error) + GetCustomerCard func(ctx context.Context, in *GetCustomerCardRequest, opts ...grpc.CallOption) (*GetCustomerCardResponse, error) + GetCustomerCardList func(ctx context.Context, in *GetCustomerCardListRequest, opts ...grpc.CallOption) (*GetCustomerCardListResponse, error) + GetCustomerList func(ctx context.Context, in *GetCustomerListRequest, opts ...grpc.CallOption) (*GetCustomerListResponse, error) + UpdateCustomer func(ctx context.Context, in *UpdateCustomerRequest, opts ...grpc.CallOption) (*UpdateCustomerResponse, error) + UpdateCustomerCard func(ctx context.Context, in *UpdateCustomerCardRequest, opts ...grpc.CallOption) (*UpdateCustomerCardResponse, error) + func NewGreetingServiceClient(cc grpc.ClientConnInterface) GreetingServiceClient + type GreetingServiceServer interface + CreateCustomer func(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error) + CreateCustomerCard func(context.Context, *CreateCustomerCardRequest) (*CreateCustomerCardResponse, error) + DeleteCustomer func(context.Context, *DeleteCustomerRequest) (*empty.Empty, error) + DeleteCustomerCard func(context.Context, *DeleteCustomerCardRequest) (*empty.Empty, error) + GetCustomer func(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error) + GetCustomerCard func(context.Context, *GetCustomerCardRequest) (*GetCustomerCardResponse, error) + GetCustomerCardList func(context.Context, *GetCustomerCardListRequest) (*GetCustomerCardListResponse, error) + GetCustomerList func(context.Context, *GetCustomerListRequest) (*GetCustomerListResponse, error) + UpdateCustomer func(context.Context, *UpdateCustomerRequest) (*UpdateCustomerResponse, error) + UpdateCustomerCard func(context.Context, *UpdateCustomerCardRequest) (*UpdateCustomerCardResponse, error) + type RPClient struct + func New(host string, port string, tls bool) *RPClient + func NewWithConn(conn *grpc.ClientConn) *RPClient + func NewWithURL(grpcUrl string) *RPClient + func (c *RPClient) CreateCustomer(ctx context.Context, req *CreateCustomerRequest) (*CreateCustomerResponse, error) + func (c *RPClient) CreateCustomerCard(ctx context.Context, req *CreateCustomerCardRequest) (*CreateCustomerCardResponse, error) + func (c *RPClient) DeleteCustomer(ctx context.Context, id string) (*emptypb.Empty, error) + func (c *RPClient) DeleteCustomerCard(ctx context.Context, id string) (*emptypb.Empty, error) + func (c *RPClient) GetCustomer(ctx context.Context, id string) (*GetCustomerResponse, error) + func (c *RPClient) GetCustomerCard(ctx context.Context, id string) (*GetCustomerCardResponse, error) + func (c *RPClient) GetCustomerCardList(ctx context.Context, customerId string) (*GetCustomerCardListResponse, error) + func (c *RPClient) GetCustomerList(ctx context.Context, merchantId string) (*GetCustomerListResponse, error) + func (c *RPClient) UpdateCustomer(ctx context.Context, req *UpdateCustomerRequest) (*UpdateCustomerResponse, error) + func (c *RPClient) UpdateCustomerCard(ctx context.Context, req *UpdateCustomerCardRequest) (*UpdateCustomerCardResponse, error) + type UnimplementedGreetingServiceServer struct + func (UnimplementedGreetingServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error) + func (UnimplementedGreetingServiceServer) CreateCustomerCard(context.Context, *CreateCustomerCardRequest) (*CreateCustomerCardResponse, error) + func (UnimplementedGreetingServiceServer) DeleteCustomer(context.Context, *DeleteCustomerRequest) (*empty.Empty, error) + func (UnimplementedGreetingServiceServer) DeleteCustomerCard(context.Context, *DeleteCustomerCardRequest) (*empty.Empty, error) + func (UnimplementedGreetingServiceServer) GetCustomer(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error) + func (UnimplementedGreetingServiceServer) GetCustomerCard(context.Context, *GetCustomerCardRequest) (*GetCustomerCardResponse, error) + func (UnimplementedGreetingServiceServer) GetCustomerCardList(context.Context, *GetCustomerCardListRequest) (*GetCustomerCardListResponse, error) + func (UnimplementedGreetingServiceServer) GetCustomerList(context.Context, *GetCustomerListRequest) (*GetCustomerListResponse, error) + func (UnimplementedGreetingServiceServer) UpdateCustomer(context.Context, *UpdateCustomerRequest) (*UpdateCustomerResponse, error) + func (UnimplementedGreetingServiceServer) UpdateCustomerCard(context.Context, *UpdateCustomerCardRequest) (*UpdateCustomerCardResponse, error) + type UnsafeGreetingServiceServer interface + type UpdateCustomerCardRequest struct + BillingAddress *_struct.Struct + CardBrand string + CustomerId string + ExpMonth int64 + ExpYear int64 + Id string + IsDefault bool + Last_4 string + ThirdPartyCardId string + func (*UpdateCustomerCardRequest) Descriptor() ([]byte, []int) + func (*UpdateCustomerCardRequest) ProtoMessage() + func (req *UpdateCustomerCardRequest) Validate() error + func (x *UpdateCustomerCardRequest) GetBillingAddress() *_struct.Struct + func (x *UpdateCustomerCardRequest) GetCardBrand() string + func (x *UpdateCustomerCardRequest) GetCustomerId() string + func (x *UpdateCustomerCardRequest) GetExpMonth() int64 + func (x *UpdateCustomerCardRequest) GetExpYear() int64 + func (x *UpdateCustomerCardRequest) GetId() string + func (x *UpdateCustomerCardRequest) GetIsDefault() bool + func (x *UpdateCustomerCardRequest) GetLast_4() string + func (x *UpdateCustomerCardRequest) GetThirdPartyCardId() string + func (x *UpdateCustomerCardRequest) ProtoReflect() protoreflect.Message + func (x *UpdateCustomerCardRequest) Reset() + func (x *UpdateCustomerCardRequest) String() string + type UpdateCustomerCardResponse struct + BillingAddress *_struct.Struct + CardBrand string + CreatedAt string + CustomerId string + ExpMonth int64 + ExpYear int64 + Id string + IsDefault bool + Last_4 string + ThirdPartyCardId string + UpdatedAt string + func (*UpdateCustomerCardResponse) Descriptor() ([]byte, []int) + func (*UpdateCustomerCardResponse) ProtoMessage() + func (x *UpdateCustomerCardResponse) GetBillingAddress() *_struct.Struct + func (x *UpdateCustomerCardResponse) GetCardBrand() string + func (x *UpdateCustomerCardResponse) GetCreatedAt() string + func (x *UpdateCustomerCardResponse) GetCustomerId() string + func (x *UpdateCustomerCardResponse) GetExpMonth() int64 + func (x *UpdateCustomerCardResponse) GetExpYear() int64 + func (x *UpdateCustomerCardResponse) GetId() string + func (x *UpdateCustomerCardResponse) GetIsDefault() bool + func (x *UpdateCustomerCardResponse) GetLast_4() string + func (x *UpdateCustomerCardResponse) GetThirdPartyCardId() string + func (x *UpdateCustomerCardResponse) GetUpdatedAt() string + func (x *UpdateCustomerCardResponse) ProtoReflect() protoreflect.Message + func (x *UpdateCustomerCardResponse) Reset() + func (x *UpdateCustomerCardResponse) String() string + type UpdateCustomerRequest struct + Avatar string + DisplayName string + Email string + FirstName string + Gender string + Id string + LastName string + MerchantId string + Mobile string + func (*UpdateCustomerRequest) Descriptor() ([]byte, []int) + func (*UpdateCustomerRequest) ProtoMessage() + func (req *UpdateCustomerRequest) Validate() error + func (x *UpdateCustomerRequest) GetAvatar() string + func (x *UpdateCustomerRequest) GetDisplayName() string + func (x *UpdateCustomerRequest) GetEmail() string + func (x *UpdateCustomerRequest) GetFirstName() string + func (x *UpdateCustomerRequest) GetGender() string + func (x *UpdateCustomerRequest) GetId() string + func (x *UpdateCustomerRequest) GetLastName() string + func (x *UpdateCustomerRequest) GetMerchantId() string + func (x *UpdateCustomerRequest) GetMobile() string + func (x *UpdateCustomerRequest) ProtoReflect() protoreflect.Message + func (x *UpdateCustomerRequest) Reset() + func (x *UpdateCustomerRequest) String() string + type UpdateCustomerResponse struct + Avatar string + CreatedAt string + DisplayName string + Email string + FirstName string + Gender string + Id string + LastName string + MerchantId string + Mobile string + UpdatedAt string + func (*UpdateCustomerResponse) Descriptor() ([]byte, []int) + func (*UpdateCustomerResponse) ProtoMessage() + func (x *UpdateCustomerResponse) GetAvatar() string + func (x *UpdateCustomerResponse) GetCreatedAt() string + func (x *UpdateCustomerResponse) GetDisplayName() string + func (x *UpdateCustomerResponse) GetEmail() string + func (x *UpdateCustomerResponse) GetFirstName() string + func (x *UpdateCustomerResponse) GetGender() string + func (x *UpdateCustomerResponse) GetId() string + func (x *UpdateCustomerResponse) GetLastName() string + func (x *UpdateCustomerResponse) GetMerchantId() string + func (x *UpdateCustomerResponse) GetMobile() string + func (x *UpdateCustomerResponse) GetUpdatedAt() string + func (x *UpdateCustomerResponse) ProtoReflect() protoreflect.Message + func (x *UpdateCustomerResponse) Reset() + func (x *UpdateCustomerResponse) String() string