Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGreetingServiceServer(s grpc.ServiceRegistrar, srv GreetingServiceServer)
- type CreateCustomerCardRequest
- func (*CreateCustomerCardRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*CreateCustomerCardRequest) ProtoMessage()
- func (x *CreateCustomerCardRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerCardRequest) Reset()
- func (x *CreateCustomerCardRequest) String() string
- func (req *CreateCustomerCardRequest) Validate() error
- type CreateCustomerCardResponse
- func (*CreateCustomerCardResponse) Descriptor() ([]byte, []int)deprecated
- 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 (*CreateCustomerCardResponse) ProtoMessage()
- func (x *CreateCustomerCardResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerCardResponse) Reset()
- func (x *CreateCustomerCardResponse) String() string
- type CreateCustomerRequest
- func (*CreateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*CreateCustomerRequest) ProtoMessage()
- func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerRequest) Reset()
- func (x *CreateCustomerRequest) String() string
- func (req *CreateCustomerRequest) Validate() error
- type CreateCustomerResponse
- func (*CreateCustomerResponse) Descriptor() ([]byte, []int)deprecated
- 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 (*CreateCustomerResponse) ProtoMessage()
- func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCustomerResponse) Reset()
- func (x *CreateCustomerResponse) String() string
- type DeleteCustomerCardRequest
- func (*DeleteCustomerCardRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCustomerCardRequest) GetId() string
- func (*DeleteCustomerCardRequest) ProtoMessage()
- func (x *DeleteCustomerCardRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCustomerCardRequest) Reset()
- func (x *DeleteCustomerCardRequest) String() string
- func (req *DeleteCustomerCardRequest) Validate() error
- type DeleteCustomerRequest
- func (*DeleteCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCustomerRequest) GetId() string
- func (*DeleteCustomerRequest) ProtoMessage()
- func (x *DeleteCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCustomerRequest) Reset()
- func (x *DeleteCustomerRequest) String() string
- func (req *DeleteCustomerRequest) Validate() error
- type GetCustomerCardListRequest
- func (*GetCustomerCardListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerCardListRequest) GetCustomerId() string
- func (*GetCustomerCardListRequest) ProtoMessage()
- func (x *GetCustomerCardListRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerCardListRequest) Reset()
- func (x *GetCustomerCardListRequest) String() string
- func (req *GetCustomerCardListRequest) Validate() error
- type GetCustomerCardListResponse
- func (*GetCustomerCardListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerCardListResponse) GetCards() []*CreateCustomerCardResponse
- func (*GetCustomerCardListResponse) ProtoMessage()
- func (x *GetCustomerCardListResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerCardListResponse) Reset()
- func (x *GetCustomerCardListResponse) String() string
- type GetCustomerCardRequest
- func (*GetCustomerCardRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerCardRequest) GetId() string
- func (*GetCustomerCardRequest) ProtoMessage()
- func (x *GetCustomerCardRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerCardRequest) Reset()
- func (x *GetCustomerCardRequest) String() string
- func (req *GetCustomerCardRequest) Validate() error
- type GetCustomerCardResponse
- func (*GetCustomerCardResponse) Descriptor() ([]byte, []int)deprecated
- 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 (*GetCustomerCardResponse) ProtoMessage()
- func (x *GetCustomerCardResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerCardResponse) Reset()
- func (x *GetCustomerCardResponse) String() string
- type GetCustomerListRequest
- func (*GetCustomerListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerListRequest) GetMerchantId() string
- func (*GetCustomerListRequest) ProtoMessage()
- func (x *GetCustomerListRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerListRequest) Reset()
- func (x *GetCustomerListRequest) String() string
- func (req *GetCustomerListRequest) Validate() error
- type GetCustomerListResponse
- func (*GetCustomerListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerListResponse) GetCustomers() []*CreateCustomerResponse
- func (*GetCustomerListResponse) ProtoMessage()
- func (x *GetCustomerListResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerListResponse) Reset()
- func (x *GetCustomerListResponse) String() string
- type GetCustomerRequest
- func (*GetCustomerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCustomerRequest) GetId() string
- func (*GetCustomerRequest) ProtoMessage()
- func (x *GetCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *GetCustomerRequest) Reset()
- func (x *GetCustomerRequest) String() string
- func (req *GetCustomerRequest) Validate() error
- type GetCustomerResponse
- func (*GetCustomerResponse) Descriptor() ([]byte, []int)deprecated
- 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 (*GetCustomerResponse) ProtoMessage()
- func (x *GetCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *GetCustomerResponse) Reset()
- func (x *GetCustomerResponse) String() string
- type GreetingServiceClient
- type GreetingServiceServer
- type 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
- 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
- type UpdateCustomerCardRequest
- func (*UpdateCustomerCardRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*UpdateCustomerCardRequest) ProtoMessage()
- func (x *UpdateCustomerCardRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCustomerCardRequest) Reset()
- func (x *UpdateCustomerCardRequest) String() string
- func (req *UpdateCustomerCardRequest) Validate() error
- type UpdateCustomerCardResponse
- func (*UpdateCustomerCardResponse) Descriptor() ([]byte, []int)deprecated
- 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 (*UpdateCustomerCardResponse) ProtoMessage()
- func (x *UpdateCustomerCardResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCustomerCardResponse) Reset()
- func (x *UpdateCustomerCardResponse) String() string
- type UpdateCustomerRequest
- func (*UpdateCustomerRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*UpdateCustomerRequest) ProtoMessage()
- func (x *UpdateCustomerRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCustomerRequest) Reset()
- func (x *UpdateCustomerRequest) String() string
- func (req *UpdateCustomerRequest) Validate() error
- type UpdateCustomerResponse
- func (*UpdateCustomerResponse) Descriptor() ([]byte, []int)deprecated
- 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 (*UpdateCustomerResponse) ProtoMessage()
- func (x *UpdateCustomerResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCustomerResponse) Reset()
- func (x *UpdateCustomerResponse) String() string
Constants ¶
const ( GreetingService_CreateCustomer_FullMethodName = "/v1.GreetingService/CreateCustomer" GreetingService_GetCustomerList_FullMethodName = "/v1.GreetingService/GetCustomerList" GreetingService_GetCustomer_FullMethodName = "/v1.GreetingService/GetCustomer" GreetingService_UpdateCustomer_FullMethodName = "/v1.GreetingService/UpdateCustomer" GreetingService_DeleteCustomer_FullMethodName = "/v1.GreetingService/DeleteCustomer" GreetingService_GetCustomerCardList_FullMethodName = "/v1.GreetingService/GetCustomerCardList" GreetingService_CreateCustomerCard_FullMethodName = "/v1.GreetingService/CreateCustomerCard" GreetingService_GetCustomerCard_FullMethodName = "/v1.GreetingService/GetCustomerCard" GreetingService_UpdateCustomerCard_FullMethodName = "/v1.GreetingService/UpdateCustomerCard" GreetingService_DeleteCustomerCard_FullMethodName = "/v1.GreetingService/DeleteCustomerCard" )
Variables ¶
var File_customer_proto protoreflect.FileDescriptor
var GreetingService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "v1.GreetingService", HandlerType: (*GreetingServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCustomer", Handler: _GreetingService_CreateCustomer_Handler, }, { MethodName: "GetCustomerList", Handler: _GreetingService_GetCustomerList_Handler, }, { MethodName: "GetCustomer", Handler: _GreetingService_GetCustomer_Handler, }, { MethodName: "UpdateCustomer", Handler: _GreetingService_UpdateCustomer_Handler, }, { MethodName: "DeleteCustomer", Handler: _GreetingService_DeleteCustomer_Handler, }, { MethodName: "GetCustomerCardList", Handler: _GreetingService_GetCustomerCardList_Handler, }, { MethodName: "CreateCustomerCard", Handler: _GreetingService_CreateCustomerCard_Handler, }, { MethodName: "GetCustomerCard", Handler: _GreetingService_GetCustomerCard_Handler, }, { MethodName: "UpdateCustomerCard", Handler: _GreetingService_UpdateCustomerCard_Handler, }, { MethodName: "DeleteCustomerCard", Handler: _GreetingService_DeleteCustomerCard_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "customer.proto", }
GreetingService_ServiceDesc is the grpc.ServiceDesc for GreetingService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGreetingServiceServer ¶
func RegisterGreetingServiceServer(s grpc.ServiceRegistrar, srv GreetingServiceServer)
Types ¶
type CreateCustomerCardRequest ¶
type CreateCustomerCardRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ThirdPartyCardId string `protobuf:"bytes,2,opt,name=third_party_card_id,json=thirdPartyCardId,proto3" json:"third_party_card_id,omitempty"` PostalCode string `protobuf:"bytes,3,opt,name=postal_code,json=postalCode,proto3" json:"postal_code,omitempty"` LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"` MerchantId string `protobuf:"bytes,5,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerCardRequest) Descriptor
deprecated
func (*CreateCustomerCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerCardRequest.ProtoReflect.Descriptor instead.
func (*CreateCustomerCardRequest) GetCustomerId ¶
func (x *CreateCustomerCardRequest) GetCustomerId() string
func (*CreateCustomerCardRequest) GetLocationId ¶
func (x *CreateCustomerCardRequest) GetLocationId() string
func (*CreateCustomerCardRequest) GetMerchantId ¶
func (x *CreateCustomerCardRequest) GetMerchantId() string
func (*CreateCustomerCardRequest) GetPostalCode ¶
func (x *CreateCustomerCardRequest) GetPostalCode() string
func (*CreateCustomerCardRequest) GetThirdPartyCardId ¶
func (x *CreateCustomerCardRequest) GetThirdPartyCardId() string
func (*CreateCustomerCardRequest) ProtoMessage ¶
func (*CreateCustomerCardRequest) ProtoMessage()
func (*CreateCustomerCardRequest) ProtoReflect ¶
func (x *CreateCustomerCardRequest) ProtoReflect() protoreflect.Message
func (*CreateCustomerCardRequest) Reset ¶
func (x *CreateCustomerCardRequest) Reset()
func (*CreateCustomerCardRequest) String ¶
func (x *CreateCustomerCardRequest) String() string
func (*CreateCustomerCardRequest) Validate ¶
func (req *CreateCustomerCardRequest) Validate() error
Validate validates the CreateCustomerCardRequest. It implements the grpcs.RequestValidator interface.
type CreateCustomerCardResponse ¶
type CreateCustomerCardResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ThirdPartyCardId string `protobuf:"bytes,3,opt,name=third_party_card_id,json=thirdPartyCardId,proto3" json:"third_party_card_id,omitempty"` BillingAddress *_struct.Struct `protobuf:"bytes,4,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address,omitempty"` CardBrand string `protobuf:"bytes,5,opt,name=card_brand,json=cardBrand,proto3" json:"card_brand,omitempty"` ExpMonth int64 `protobuf:"varint,6,opt,name=exp_month,json=expMonth,proto3" json:"exp_month,omitempty"` ExpYear int64 `protobuf:"varint,7,opt,name=exp_year,json=expYear,proto3" json:"exp_year,omitempty"` Last_4 string `protobuf:"bytes,8,opt,name=last_4,json=last4,proto3" json:"last_4,omitempty"` IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerCardResponse) Descriptor
deprecated
func (*CreateCustomerCardResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerCardResponse.ProtoReflect.Descriptor instead.
func (*CreateCustomerCardResponse) GetBillingAddress ¶
func (x *CreateCustomerCardResponse) GetBillingAddress() *_struct.Struct
func (*CreateCustomerCardResponse) GetCardBrand ¶
func (x *CreateCustomerCardResponse) GetCardBrand() string
func (*CreateCustomerCardResponse) GetCreatedAt ¶
func (x *CreateCustomerCardResponse) GetCreatedAt() string
func (*CreateCustomerCardResponse) GetCustomerId ¶
func (x *CreateCustomerCardResponse) GetCustomerId() string
func (*CreateCustomerCardResponse) GetExpMonth ¶
func (x *CreateCustomerCardResponse) GetExpMonth() int64
func (*CreateCustomerCardResponse) GetExpYear ¶
func (x *CreateCustomerCardResponse) GetExpYear() int64
func (*CreateCustomerCardResponse) GetId ¶
func (x *CreateCustomerCardResponse) GetId() string
func (*CreateCustomerCardResponse) GetIsDefault ¶
func (x *CreateCustomerCardResponse) GetIsDefault() bool
func (*CreateCustomerCardResponse) GetLast_4 ¶
func (x *CreateCustomerCardResponse) GetLast_4() string
func (*CreateCustomerCardResponse) GetThirdPartyCardId ¶
func (x *CreateCustomerCardResponse) GetThirdPartyCardId() string
func (*CreateCustomerCardResponse) GetUpdatedAt ¶
func (x *CreateCustomerCardResponse) GetUpdatedAt() string
func (*CreateCustomerCardResponse) ProtoMessage ¶
func (*CreateCustomerCardResponse) ProtoMessage()
func (*CreateCustomerCardResponse) ProtoReflect ¶
func (x *CreateCustomerCardResponse) ProtoReflect() protoreflect.Message
func (*CreateCustomerCardResponse) Reset ¶
func (x *CreateCustomerCardResponse) Reset()
func (*CreateCustomerCardResponse) String ¶
func (x *CreateCustomerCardResponse) String() string
type CreateCustomerRequest ¶
type CreateCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MerchantId string `protobuf:"bytes,2,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"` Avatar string `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerRequest) Descriptor
deprecated
func (*CreateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerRequest.ProtoReflect.Descriptor instead.
func (*CreateCustomerRequest) GetAvatar ¶
func (x *CreateCustomerRequest) GetAvatar() string
func (*CreateCustomerRequest) GetDisplayName ¶
func (x *CreateCustomerRequest) GetDisplayName() string
func (*CreateCustomerRequest) GetEmail ¶
func (x *CreateCustomerRequest) GetEmail() string
func (*CreateCustomerRequest) GetFirstName ¶
func (x *CreateCustomerRequest) GetFirstName() string
func (*CreateCustomerRequest) GetGender ¶
func (x *CreateCustomerRequest) GetGender() string
func (*CreateCustomerRequest) GetId ¶
func (x *CreateCustomerRequest) GetId() string
func (*CreateCustomerRequest) GetLastName ¶
func (x *CreateCustomerRequest) GetLastName() string
func (*CreateCustomerRequest) GetMerchantId ¶
func (x *CreateCustomerRequest) GetMerchantId() string
func (*CreateCustomerRequest) GetMobile ¶
func (x *CreateCustomerRequest) GetMobile() string
func (*CreateCustomerRequest) ProtoMessage ¶
func (*CreateCustomerRequest) ProtoMessage()
func (*CreateCustomerRequest) ProtoReflect ¶
func (x *CreateCustomerRequest) ProtoReflect() protoreflect.Message
func (*CreateCustomerRequest) Reset ¶
func (x *CreateCustomerRequest) Reset()
func (*CreateCustomerRequest) String ¶
func (x *CreateCustomerRequest) String() string
func (*CreateCustomerRequest) Validate ¶
func (req *CreateCustomerRequest) Validate() error
Validate validates the CreateCustomerRequest. It implements the grpcs.RequestValidator interface.
type CreateCustomerResponse ¶
type CreateCustomerResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MerchantId string `protobuf:"bytes,2,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"` Avatar string `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*CreateCustomerResponse) Descriptor
deprecated
func (*CreateCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCustomerResponse.ProtoReflect.Descriptor instead.
func (*CreateCustomerResponse) GetAvatar ¶
func (x *CreateCustomerResponse) GetAvatar() string
func (*CreateCustomerResponse) GetCreatedAt ¶
func (x *CreateCustomerResponse) GetCreatedAt() string
func (*CreateCustomerResponse) GetDisplayName ¶
func (x *CreateCustomerResponse) GetDisplayName() string
func (*CreateCustomerResponse) GetEmail ¶
func (x *CreateCustomerResponse) GetEmail() string
func (*CreateCustomerResponse) GetFirstName ¶
func (x *CreateCustomerResponse) GetFirstName() string
func (*CreateCustomerResponse) GetGender ¶
func (x *CreateCustomerResponse) GetGender() string
func (*CreateCustomerResponse) GetId ¶
func (x *CreateCustomerResponse) GetId() string
func (*CreateCustomerResponse) GetLastName ¶
func (x *CreateCustomerResponse) GetLastName() string
func (*CreateCustomerResponse) GetMerchantId ¶
func (x *CreateCustomerResponse) GetMerchantId() string
func (*CreateCustomerResponse) GetMobile ¶
func (x *CreateCustomerResponse) GetMobile() string
func (*CreateCustomerResponse) GetUpdatedAt ¶
func (x *CreateCustomerResponse) GetUpdatedAt() string
func (*CreateCustomerResponse) ProtoMessage ¶
func (*CreateCustomerResponse) ProtoMessage()
func (*CreateCustomerResponse) ProtoReflect ¶
func (x *CreateCustomerResponse) ProtoReflect() protoreflect.Message
func (*CreateCustomerResponse) Reset ¶
func (x *CreateCustomerResponse) Reset()
func (*CreateCustomerResponse) String ¶
func (x *CreateCustomerResponse) String() string
type DeleteCustomerCardRequest ¶
type DeleteCustomerCardRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCustomerCardRequest) Descriptor
deprecated
func (*DeleteCustomerCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerCardRequest.ProtoReflect.Descriptor instead.
func (*DeleteCustomerCardRequest) GetId ¶
func (x *DeleteCustomerCardRequest) GetId() string
func (*DeleteCustomerCardRequest) ProtoMessage ¶
func (*DeleteCustomerCardRequest) ProtoMessage()
func (*DeleteCustomerCardRequest) ProtoReflect ¶
func (x *DeleteCustomerCardRequest) ProtoReflect() protoreflect.Message
func (*DeleteCustomerCardRequest) Reset ¶
func (x *DeleteCustomerCardRequest) Reset()
func (*DeleteCustomerCardRequest) String ¶
func (x *DeleteCustomerCardRequest) String() string
func (*DeleteCustomerCardRequest) Validate ¶
func (req *DeleteCustomerCardRequest) Validate() error
Validate validates the DeleteCustomerCardRequest. It implements the grpcs.RequestValidator interface.
type DeleteCustomerRequest ¶
type DeleteCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCustomerRequest) Descriptor
deprecated
func (*DeleteCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCustomerRequest.ProtoReflect.Descriptor instead.
func (*DeleteCustomerRequest) GetId ¶
func (x *DeleteCustomerRequest) GetId() string
func (*DeleteCustomerRequest) ProtoMessage ¶
func (*DeleteCustomerRequest) ProtoMessage()
func (*DeleteCustomerRequest) ProtoReflect ¶
func (x *DeleteCustomerRequest) ProtoReflect() protoreflect.Message
func (*DeleteCustomerRequest) Reset ¶
func (x *DeleteCustomerRequest) Reset()
func (*DeleteCustomerRequest) String ¶
func (x *DeleteCustomerRequest) String() string
func (*DeleteCustomerRequest) Validate ¶
func (req *DeleteCustomerRequest) Validate() error
Validate validates the DeleteCustomerRequest. It implements the grpcs.RequestValidator interface.
type GetCustomerCardListRequest ¶
type GetCustomerCardListRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerCardListRequest) Descriptor
deprecated
func (*GetCustomerCardListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerCardListRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerCardListRequest) GetCustomerId ¶
func (x *GetCustomerCardListRequest) GetCustomerId() string
func (*GetCustomerCardListRequest) ProtoMessage ¶
func (*GetCustomerCardListRequest) ProtoMessage()
func (*GetCustomerCardListRequest) ProtoReflect ¶
func (x *GetCustomerCardListRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerCardListRequest) Reset ¶
func (x *GetCustomerCardListRequest) Reset()
func (*GetCustomerCardListRequest) String ¶
func (x *GetCustomerCardListRequest) String() string
func (*GetCustomerCardListRequest) Validate ¶
func (req *GetCustomerCardListRequest) Validate() error
Validate validates the GetCustomerCardListRequest. It implements the grpcs.RequestValidator interface.
type GetCustomerCardListResponse ¶
type GetCustomerCardListResponse struct { Cards []*CreateCustomerCardResponse `protobuf:"bytes,1,rep,name=cards,proto3" json:"cards,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerCardListResponse) Descriptor
deprecated
func (*GetCustomerCardListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerCardListResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerCardListResponse) GetCards ¶
func (x *GetCustomerCardListResponse) GetCards() []*CreateCustomerCardResponse
func (*GetCustomerCardListResponse) ProtoMessage ¶
func (*GetCustomerCardListResponse) ProtoMessage()
func (*GetCustomerCardListResponse) ProtoReflect ¶
func (x *GetCustomerCardListResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerCardListResponse) Reset ¶
func (x *GetCustomerCardListResponse) Reset()
func (*GetCustomerCardListResponse) String ¶
func (x *GetCustomerCardListResponse) String() string
type GetCustomerCardRequest ¶
type GetCustomerCardRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerCardRequest) Descriptor
deprecated
func (*GetCustomerCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerCardRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerCardRequest) GetId ¶
func (x *GetCustomerCardRequest) GetId() string
func (*GetCustomerCardRequest) ProtoMessage ¶
func (*GetCustomerCardRequest) ProtoMessage()
func (*GetCustomerCardRequest) ProtoReflect ¶
func (x *GetCustomerCardRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerCardRequest) Reset ¶
func (x *GetCustomerCardRequest) Reset()
func (*GetCustomerCardRequest) String ¶
func (x *GetCustomerCardRequest) String() string
func (*GetCustomerCardRequest) Validate ¶
func (req *GetCustomerCardRequest) Validate() error
Validate validates the GetCustomerCardRequest. It implements the grpcs.RequestValidator interface.
type GetCustomerCardResponse ¶
type GetCustomerCardResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ThirdPartyCardId string `protobuf:"bytes,3,opt,name=third_party_card_id,json=thirdPartyCardId,proto3" json:"third_party_card_id,omitempty"` BillingAddress *_struct.Struct `protobuf:"bytes,4,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address,omitempty"` CardBrand string `protobuf:"bytes,5,opt,name=card_brand,json=cardBrand,proto3" json:"card_brand,omitempty"` ExpMonth int64 `protobuf:"varint,6,opt,name=exp_month,json=expMonth,proto3" json:"exp_month,omitempty"` ExpYear int64 `protobuf:"varint,7,opt,name=exp_year,json=expYear,proto3" json:"exp_year,omitempty"` Last_4 string `protobuf:"bytes,8,opt,name=last_4,json=last4,proto3" json:"last_4,omitempty"` IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerCardResponse) Descriptor
deprecated
func (*GetCustomerCardResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerCardResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerCardResponse) GetBillingAddress ¶
func (x *GetCustomerCardResponse) GetBillingAddress() *_struct.Struct
func (*GetCustomerCardResponse) GetCardBrand ¶
func (x *GetCustomerCardResponse) GetCardBrand() string
func (*GetCustomerCardResponse) GetCreatedAt ¶
func (x *GetCustomerCardResponse) GetCreatedAt() string
func (*GetCustomerCardResponse) GetCustomerId ¶
func (x *GetCustomerCardResponse) GetCustomerId() string
func (*GetCustomerCardResponse) GetExpMonth ¶
func (x *GetCustomerCardResponse) GetExpMonth() int64
func (*GetCustomerCardResponse) GetExpYear ¶
func (x *GetCustomerCardResponse) GetExpYear() int64
func (*GetCustomerCardResponse) GetId ¶
func (x *GetCustomerCardResponse) GetId() string
func (*GetCustomerCardResponse) GetIsDefault ¶
func (x *GetCustomerCardResponse) GetIsDefault() bool
func (*GetCustomerCardResponse) GetLast_4 ¶
func (x *GetCustomerCardResponse) GetLast_4() string
func (*GetCustomerCardResponse) GetThirdPartyCardId ¶
func (x *GetCustomerCardResponse) GetThirdPartyCardId() string
func (*GetCustomerCardResponse) GetUpdatedAt ¶
func (x *GetCustomerCardResponse) GetUpdatedAt() string
func (*GetCustomerCardResponse) ProtoMessage ¶
func (*GetCustomerCardResponse) ProtoMessage()
func (*GetCustomerCardResponse) ProtoReflect ¶
func (x *GetCustomerCardResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerCardResponse) Reset ¶
func (x *GetCustomerCardResponse) Reset()
func (*GetCustomerCardResponse) String ¶
func (x *GetCustomerCardResponse) String() string
type GetCustomerListRequest ¶
type GetCustomerListRequest struct { MerchantId string `protobuf:"bytes,1,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerListRequest) Descriptor
deprecated
func (*GetCustomerListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerListRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerListRequest) GetMerchantId ¶
func (x *GetCustomerListRequest) GetMerchantId() string
func (*GetCustomerListRequest) ProtoMessage ¶
func (*GetCustomerListRequest) ProtoMessage()
func (*GetCustomerListRequest) ProtoReflect ¶
func (x *GetCustomerListRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerListRequest) Reset ¶
func (x *GetCustomerListRequest) Reset()
func (*GetCustomerListRequest) String ¶
func (x *GetCustomerListRequest) String() string
func (*GetCustomerListRequest) Validate ¶
func (req *GetCustomerListRequest) Validate() error
Validate validates the GetCustomerRequest. It implements the grpcs.RequestValidator interface.
type GetCustomerListResponse ¶
type GetCustomerListResponse struct { Customers []*CreateCustomerResponse `protobuf:"bytes,1,rep,name=customers,proto3" json:"customers,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerListResponse) Descriptor
deprecated
func (*GetCustomerListResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerListResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerListResponse) GetCustomers ¶
func (x *GetCustomerListResponse) GetCustomers() []*CreateCustomerResponse
func (*GetCustomerListResponse) ProtoMessage ¶
func (*GetCustomerListResponse) ProtoMessage()
func (*GetCustomerListResponse) ProtoReflect ¶
func (x *GetCustomerListResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerListResponse) Reset ¶
func (x *GetCustomerListResponse) Reset()
func (*GetCustomerListResponse) String ¶
func (x *GetCustomerListResponse) String() string
type GetCustomerRequest ¶
type GetCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerRequest) Descriptor
deprecated
func (*GetCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerRequest.ProtoReflect.Descriptor instead.
func (*GetCustomerRequest) GetId ¶
func (x *GetCustomerRequest) GetId() string
func (*GetCustomerRequest) ProtoMessage ¶
func (*GetCustomerRequest) ProtoMessage()
func (*GetCustomerRequest) ProtoReflect ¶
func (x *GetCustomerRequest) ProtoReflect() protoreflect.Message
func (*GetCustomerRequest) Reset ¶
func (x *GetCustomerRequest) Reset()
func (*GetCustomerRequest) String ¶
func (x *GetCustomerRequest) String() string
func (*GetCustomerRequest) Validate ¶
func (req *GetCustomerRequest) Validate() error
Validate validates the GetCustomerRequest. It implements the grpcs.RequestValidator interface.
type GetCustomerResponse ¶
type GetCustomerResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MerchantId string `protobuf:"bytes,2,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"` Avatar string `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*GetCustomerResponse) Descriptor
deprecated
func (*GetCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCustomerResponse.ProtoReflect.Descriptor instead.
func (*GetCustomerResponse) GetAvatar ¶
func (x *GetCustomerResponse) GetAvatar() string
func (*GetCustomerResponse) GetCreatedAt ¶
func (x *GetCustomerResponse) GetCreatedAt() string
func (*GetCustomerResponse) GetDisplayName ¶
func (x *GetCustomerResponse) GetDisplayName() string
func (*GetCustomerResponse) GetEmail ¶
func (x *GetCustomerResponse) GetEmail() string
func (*GetCustomerResponse) GetFirstName ¶
func (x *GetCustomerResponse) GetFirstName() string
func (*GetCustomerResponse) GetGender ¶
func (x *GetCustomerResponse) GetGender() string
func (*GetCustomerResponse) GetId ¶
func (x *GetCustomerResponse) GetId() string
func (*GetCustomerResponse) GetLastName ¶
func (x *GetCustomerResponse) GetLastName() string
func (*GetCustomerResponse) GetMerchantId ¶
func (x *GetCustomerResponse) GetMerchantId() string
func (*GetCustomerResponse) GetMobile ¶
func (x *GetCustomerResponse) GetMobile() string
func (*GetCustomerResponse) GetUpdatedAt ¶
func (x *GetCustomerResponse) GetUpdatedAt() string
func (*GetCustomerResponse) ProtoMessage ¶
func (*GetCustomerResponse) ProtoMessage()
func (*GetCustomerResponse) ProtoReflect ¶
func (x *GetCustomerResponse) ProtoReflect() protoreflect.Message
func (*GetCustomerResponse) Reset ¶
func (x *GetCustomerResponse) Reset()
func (*GetCustomerResponse) String ¶
func (x *GetCustomerResponse) String() string
type GreetingServiceClient ¶
type GreetingServiceClient interface { CreateCustomer(ctx context.Context, in *CreateCustomerRequest, opts ...grpc.CallOption) (*CreateCustomerResponse, error) GetCustomerList(ctx context.Context, in *GetCustomerListRequest, opts ...grpc.CallOption) (*GetCustomerListResponse, error) GetCustomer(ctx context.Context, in *GetCustomerRequest, opts ...grpc.CallOption) (*GetCustomerResponse, error) UpdateCustomer(ctx context.Context, in *UpdateCustomerRequest, opts ...grpc.CallOption) (*UpdateCustomerResponse, error) DeleteCustomer(ctx context.Context, in *DeleteCustomerRequest, opts ...grpc.CallOption) (*empty.Empty, error) GetCustomerCardList(ctx context.Context, in *GetCustomerCardListRequest, opts ...grpc.CallOption) (*GetCustomerCardListResponse, error) CreateCustomerCard(ctx context.Context, in *CreateCustomerCardRequest, opts ...grpc.CallOption) (*CreateCustomerCardResponse, error) GetCustomerCard(ctx context.Context, in *GetCustomerCardRequest, opts ...grpc.CallOption) (*GetCustomerCardResponse, error) UpdateCustomerCard(ctx context.Context, in *UpdateCustomerCardRequest, opts ...grpc.CallOption) (*UpdateCustomerCardResponse, error) DeleteCustomerCard(ctx context.Context, in *DeleteCustomerCardRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
GreetingServiceClient is the client API for GreetingService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewGreetingServiceClient ¶
func NewGreetingServiceClient(cc grpc.ClientConnInterface) GreetingServiceClient
type GreetingServiceServer ¶
type GreetingServiceServer interface { CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error) GetCustomerList(context.Context, *GetCustomerListRequest) (*GetCustomerListResponse, error) GetCustomer(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error) UpdateCustomer(context.Context, *UpdateCustomerRequest) (*UpdateCustomerResponse, error) DeleteCustomer(context.Context, *DeleteCustomerRequest) (*empty.Empty, error) GetCustomerCardList(context.Context, *GetCustomerCardListRequest) (*GetCustomerCardListResponse, error) CreateCustomerCard(context.Context, *CreateCustomerCardRequest) (*CreateCustomerCardResponse, error) GetCustomerCard(context.Context, *GetCustomerCardRequest) (*GetCustomerCardResponse, error) UpdateCustomerCard(context.Context, *UpdateCustomerCardRequest) (*UpdateCustomerCardResponse, error) DeleteCustomerCard(context.Context, *DeleteCustomerCardRequest) (*empty.Empty, error) // contains filtered or unexported methods }
GreetingServiceServer is the server API for GreetingService service. All implementations must embed UnimplementedGreetingServiceServer for forward compatibility
type RPClient ¶
type RPClient struct {
// contains filtered or unexported fields
}
RPClient is the gRPC client
func NewWithConn ¶
func NewWithConn(conn *grpc.ClientConn) *RPClient
NewWithConn creates a new gRPC client with an existing connection
func NewWithURL ¶
func (*RPClient) CreateCustomer ¶
func (c *RPClient) CreateCustomer( ctx context.Context, req *CreateCustomerRequest, ) (*CreateCustomerResponse, error)
CreateCustomer is a gRPC client method to call the CreateCustomer method on the gRPC server
func (*RPClient) CreateCustomerCard ¶
func (c *RPClient) CreateCustomerCard( ctx context.Context, req *CreateCustomerCardRequest, ) (*CreateCustomerCardResponse, error)
CreateCustomerCard is a gRPC client method to call the CreateCustomer method on the gRPC server
func (*RPClient) DeleteCustomer ¶
DeleteCustomer is a gRPC client method to call the DeleteCustomer method on the gRPC server
func (*RPClient) DeleteCustomerCard ¶
DeleteCustomerCard is a gRPC client method to call the DeleteCustomer method on the gRPC server
func (*RPClient) GetCustomer ¶
GetCustomer is a gRPC client method to call the GetCustomer method on the gRPC server
func (*RPClient) GetCustomerCard ¶
func (c *RPClient) GetCustomerCard( ctx context.Context, id string, ) (*GetCustomerCardResponse, error)
GetCustomerCard is a gRPC client method to call the GetCustomer method on the gRPC server
func (*RPClient) GetCustomerCardList ¶
func (c *RPClient) GetCustomerCardList( ctx context.Context, customerId string, ) (*GetCustomerCardListResponse, error)
GetCustomerCardList is a gRPC client method to call the GetCustomer method on the gRPC server
func (*RPClient) GetCustomerList ¶
func (c *RPClient) GetCustomerList( ctx context.Context, merchantId string, ) (*GetCustomerListResponse, error)
GetCustomerList is a gRPC client method to call the GetCustomer method on the gRPC server
func (*RPClient) UpdateCustomer ¶
func (c *RPClient) UpdateCustomer( ctx context.Context, req *UpdateCustomerRequest, ) (*UpdateCustomerResponse, error)
UpdateCustomer is a gRPC client method to call the UpdateCustomer method on the gRPC server
func (*RPClient) UpdateCustomerCard ¶
func (c *RPClient) UpdateCustomerCard( ctx context.Context, req *UpdateCustomerCardRequest, ) (*UpdateCustomerCardResponse, error)
UpdateCustomerCard is a gRPC client method to call the UpdateCustomer method on the gRPC server
type UnimplementedGreetingServiceServer ¶
type UnimplementedGreetingServiceServer struct { }
UnimplementedGreetingServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedGreetingServiceServer) CreateCustomer ¶
func (UnimplementedGreetingServiceServer) CreateCustomer(context.Context, *CreateCustomerRequest) (*CreateCustomerResponse, error)
func (UnimplementedGreetingServiceServer) CreateCustomerCard ¶
func (UnimplementedGreetingServiceServer) CreateCustomerCard(context.Context, *CreateCustomerCardRequest) (*CreateCustomerCardResponse, error)
func (UnimplementedGreetingServiceServer) DeleteCustomer ¶
func (UnimplementedGreetingServiceServer) DeleteCustomer(context.Context, *DeleteCustomerRequest) (*empty.Empty, error)
func (UnimplementedGreetingServiceServer) DeleteCustomerCard ¶
func (UnimplementedGreetingServiceServer) DeleteCustomerCard(context.Context, *DeleteCustomerCardRequest) (*empty.Empty, error)
func (UnimplementedGreetingServiceServer) GetCustomer ¶
func (UnimplementedGreetingServiceServer) GetCustomer(context.Context, *GetCustomerRequest) (*GetCustomerResponse, error)
func (UnimplementedGreetingServiceServer) GetCustomerCard ¶
func (UnimplementedGreetingServiceServer) GetCustomerCard(context.Context, *GetCustomerCardRequest) (*GetCustomerCardResponse, error)
func (UnimplementedGreetingServiceServer) GetCustomerCardList ¶
func (UnimplementedGreetingServiceServer) GetCustomerCardList(context.Context, *GetCustomerCardListRequest) (*GetCustomerCardListResponse, error)
func (UnimplementedGreetingServiceServer) GetCustomerList ¶
func (UnimplementedGreetingServiceServer) GetCustomerList(context.Context, *GetCustomerListRequest) (*GetCustomerListResponse, error)
func (UnimplementedGreetingServiceServer) UpdateCustomer ¶
func (UnimplementedGreetingServiceServer) UpdateCustomer(context.Context, *UpdateCustomerRequest) (*UpdateCustomerResponse, error)
func (UnimplementedGreetingServiceServer) UpdateCustomerCard ¶
func (UnimplementedGreetingServiceServer) UpdateCustomerCard(context.Context, *UpdateCustomerCardRequest) (*UpdateCustomerCardResponse, error)
type UnsafeGreetingServiceServer ¶
type UnsafeGreetingServiceServer interface {
// contains filtered or unexported methods
}
UnsafeGreetingServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GreetingServiceServer will result in compilation errors.
type UpdateCustomerCardRequest ¶
type UpdateCustomerCardRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ThirdPartyCardId string `protobuf:"bytes,3,opt,name=third_party_card_id,json=thirdPartyCardId,proto3" json:"third_party_card_id,omitempty"` BillingAddress *_struct.Struct `protobuf:"bytes,4,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address,omitempty"` CardBrand string `protobuf:"bytes,5,opt,name=card_brand,json=cardBrand,proto3" json:"card_brand,omitempty"` ExpMonth int64 `protobuf:"varint,6,opt,name=exp_month,json=expMonth,proto3" json:"exp_month,omitempty"` ExpYear int64 `protobuf:"varint,7,opt,name=exp_year,json=expYear,proto3" json:"exp_year,omitempty"` Last_4 string `protobuf:"bytes,8,opt,name=last_4,json=last4,proto3" json:"last_4,omitempty"` IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // contains filtered or unexported fields }
func (*UpdateCustomerCardRequest) Descriptor
deprecated
func (*UpdateCustomerCardRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCustomerCardRequest.ProtoReflect.Descriptor instead.
func (*UpdateCustomerCardRequest) GetBillingAddress ¶
func (x *UpdateCustomerCardRequest) GetBillingAddress() *_struct.Struct
func (*UpdateCustomerCardRequest) GetCardBrand ¶
func (x *UpdateCustomerCardRequest) GetCardBrand() string
func (*UpdateCustomerCardRequest) GetCustomerId ¶
func (x *UpdateCustomerCardRequest) GetCustomerId() string
func (*UpdateCustomerCardRequest) GetExpMonth ¶
func (x *UpdateCustomerCardRequest) GetExpMonth() int64
func (*UpdateCustomerCardRequest) GetExpYear ¶
func (x *UpdateCustomerCardRequest) GetExpYear() int64
func (*UpdateCustomerCardRequest) GetId ¶
func (x *UpdateCustomerCardRequest) GetId() string
func (*UpdateCustomerCardRequest) GetIsDefault ¶
func (x *UpdateCustomerCardRequest) GetIsDefault() bool
func (*UpdateCustomerCardRequest) GetLast_4 ¶
func (x *UpdateCustomerCardRequest) GetLast_4() string
func (*UpdateCustomerCardRequest) GetThirdPartyCardId ¶
func (x *UpdateCustomerCardRequest) GetThirdPartyCardId() string
func (*UpdateCustomerCardRequest) ProtoMessage ¶
func (*UpdateCustomerCardRequest) ProtoMessage()
func (*UpdateCustomerCardRequest) ProtoReflect ¶
func (x *UpdateCustomerCardRequest) ProtoReflect() protoreflect.Message
func (*UpdateCustomerCardRequest) Reset ¶
func (x *UpdateCustomerCardRequest) Reset()
func (*UpdateCustomerCardRequest) String ¶
func (x *UpdateCustomerCardRequest) String() string
func (*UpdateCustomerCardRequest) Validate ¶
func (req *UpdateCustomerCardRequest) Validate() error
Validate validates the UpdateCustomerCardRequest. It implements the grpcs.RequestValidator interface.
type UpdateCustomerCardResponse ¶
type UpdateCustomerCardResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ThirdPartyCardId string `protobuf:"bytes,3,opt,name=third_party_card_id,json=thirdPartyCardId,proto3" json:"third_party_card_id,omitempty"` BillingAddress *_struct.Struct `protobuf:"bytes,4,opt,name=billing_address,json=billingAddress,proto3" json:"billing_address,omitempty"` CardBrand string `protobuf:"bytes,5,opt,name=card_brand,json=cardBrand,proto3" json:"card_brand,omitempty"` ExpMonth int64 `protobuf:"varint,6,opt,name=exp_month,json=expMonth,proto3" json:"exp_month,omitempty"` ExpYear int64 `protobuf:"varint,7,opt,name=exp_year,json=expYear,proto3" json:"exp_year,omitempty"` Last_4 string `protobuf:"bytes,8,opt,name=last_4,json=last4,proto3" json:"last_4,omitempty"` IsDefault bool `protobuf:"varint,9,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*UpdateCustomerCardResponse) Descriptor
deprecated
func (*UpdateCustomerCardResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCustomerCardResponse.ProtoReflect.Descriptor instead.
func (*UpdateCustomerCardResponse) GetBillingAddress ¶
func (x *UpdateCustomerCardResponse) GetBillingAddress() *_struct.Struct
func (*UpdateCustomerCardResponse) GetCardBrand ¶
func (x *UpdateCustomerCardResponse) GetCardBrand() string
func (*UpdateCustomerCardResponse) GetCreatedAt ¶
func (x *UpdateCustomerCardResponse) GetCreatedAt() string
func (*UpdateCustomerCardResponse) GetCustomerId ¶
func (x *UpdateCustomerCardResponse) GetCustomerId() string
func (*UpdateCustomerCardResponse) GetExpMonth ¶
func (x *UpdateCustomerCardResponse) GetExpMonth() int64
func (*UpdateCustomerCardResponse) GetExpYear ¶
func (x *UpdateCustomerCardResponse) GetExpYear() int64
func (*UpdateCustomerCardResponse) GetId ¶
func (x *UpdateCustomerCardResponse) GetId() string
func (*UpdateCustomerCardResponse) GetIsDefault ¶
func (x *UpdateCustomerCardResponse) GetIsDefault() bool
func (*UpdateCustomerCardResponse) GetLast_4 ¶
func (x *UpdateCustomerCardResponse) GetLast_4() string
func (*UpdateCustomerCardResponse) GetThirdPartyCardId ¶
func (x *UpdateCustomerCardResponse) GetThirdPartyCardId() string
func (*UpdateCustomerCardResponse) GetUpdatedAt ¶
func (x *UpdateCustomerCardResponse) GetUpdatedAt() string
func (*UpdateCustomerCardResponse) ProtoMessage ¶
func (*UpdateCustomerCardResponse) ProtoMessage()
func (*UpdateCustomerCardResponse) ProtoReflect ¶
func (x *UpdateCustomerCardResponse) ProtoReflect() protoreflect.Message
func (*UpdateCustomerCardResponse) Reset ¶
func (x *UpdateCustomerCardResponse) Reset()
func (*UpdateCustomerCardResponse) String ¶
func (x *UpdateCustomerCardResponse) String() string
type UpdateCustomerRequest ¶
type UpdateCustomerRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MerchantId string `protobuf:"bytes,2,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"` Avatar string `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"` // contains filtered or unexported fields }
func (*UpdateCustomerRequest) Descriptor
deprecated
func (*UpdateCustomerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCustomerRequest.ProtoReflect.Descriptor instead.
func (*UpdateCustomerRequest) GetAvatar ¶
func (x *UpdateCustomerRequest) GetAvatar() string
func (*UpdateCustomerRequest) GetDisplayName ¶
func (x *UpdateCustomerRequest) GetDisplayName() string
func (*UpdateCustomerRequest) GetEmail ¶
func (x *UpdateCustomerRequest) GetEmail() string
func (*UpdateCustomerRequest) GetFirstName ¶
func (x *UpdateCustomerRequest) GetFirstName() string
func (*UpdateCustomerRequest) GetGender ¶
func (x *UpdateCustomerRequest) GetGender() string
func (*UpdateCustomerRequest) GetId ¶
func (x *UpdateCustomerRequest) GetId() string
func (*UpdateCustomerRequest) GetLastName ¶
func (x *UpdateCustomerRequest) GetLastName() string
func (*UpdateCustomerRequest) GetMerchantId ¶
func (x *UpdateCustomerRequest) GetMerchantId() string
func (*UpdateCustomerRequest) GetMobile ¶
func (x *UpdateCustomerRequest) GetMobile() string
func (*UpdateCustomerRequest) ProtoMessage ¶
func (*UpdateCustomerRequest) ProtoMessage()
func (*UpdateCustomerRequest) ProtoReflect ¶
func (x *UpdateCustomerRequest) ProtoReflect() protoreflect.Message
func (*UpdateCustomerRequest) Reset ¶
func (x *UpdateCustomerRequest) Reset()
func (*UpdateCustomerRequest) String ¶
func (x *UpdateCustomerRequest) String() string
func (*UpdateCustomerRequest) Validate ¶
func (req *UpdateCustomerRequest) Validate() error
Validate validates the UpdateCustomerRequest. It implements the grpcs.RequestValidator interface.
type UpdateCustomerResponse ¶
type UpdateCustomerResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` MerchantId string `protobuf:"bytes,2,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Mobile string `protobuf:"bytes,3,opt,name=mobile,proto3" json:"mobile,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` FirstName string `protobuf:"bytes,5,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,6,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` DisplayName string `protobuf:"bytes,7,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"` Avatar string `protobuf:"bytes,9,opt,name=avatar,proto3" json:"avatar,omitempty"` CreatedAt string `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt string `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*UpdateCustomerResponse) Descriptor
deprecated
func (*UpdateCustomerResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCustomerResponse.ProtoReflect.Descriptor instead.
func (*UpdateCustomerResponse) GetAvatar ¶
func (x *UpdateCustomerResponse) GetAvatar() string
func (*UpdateCustomerResponse) GetCreatedAt ¶
func (x *UpdateCustomerResponse) GetCreatedAt() string
func (*UpdateCustomerResponse) GetDisplayName ¶
func (x *UpdateCustomerResponse) GetDisplayName() string
func (*UpdateCustomerResponse) GetEmail ¶
func (x *UpdateCustomerResponse) GetEmail() string
func (*UpdateCustomerResponse) GetFirstName ¶
func (x *UpdateCustomerResponse) GetFirstName() string
func (*UpdateCustomerResponse) GetGender ¶
func (x *UpdateCustomerResponse) GetGender() string
func (*UpdateCustomerResponse) GetId ¶
func (x *UpdateCustomerResponse) GetId() string
func (*UpdateCustomerResponse) GetLastName ¶
func (x *UpdateCustomerResponse) GetLastName() string
func (*UpdateCustomerResponse) GetMerchantId ¶
func (x *UpdateCustomerResponse) GetMerchantId() string
func (*UpdateCustomerResponse) GetMobile ¶
func (x *UpdateCustomerResponse) GetMobile() string
func (*UpdateCustomerResponse) GetUpdatedAt ¶
func (x *UpdateCustomerResponse) GetUpdatedAt() string
func (*UpdateCustomerResponse) ProtoMessage ¶
func (*UpdateCustomerResponse) ProtoMessage()
func (*UpdateCustomerResponse) ProtoReflect ¶
func (x *UpdateCustomerResponse) ProtoReflect() protoreflect.Message
func (*UpdateCustomerResponse) Reset ¶
func (x *UpdateCustomerResponse) Reset()
func (*UpdateCustomerResponse) String ¶
func (x *UpdateCustomerResponse) String() string