Documentation ¶
Overview ¶
Package repository is a generated protocol buffer package.
It is generated from these files:
repository/repository.proto
It has these top-level messages:
Result FindByStringValue SavedCardRequest SavedCardList DeleteSavedCardRequest DeleteSavedCardResponse
Index ¶
- func RegisterRepositoryHandler(s server.Server, hdlr RepositoryHandler, opts ...server.HandlerOption) error
- type DeleteSavedCardRequest
- func (*DeleteSavedCardRequest) Descriptor() ([]byte, []int)
- func (m *DeleteSavedCardRequest) GetId() string
- func (m *DeleteSavedCardRequest) GetToken() string
- func (*DeleteSavedCardRequest) ProtoMessage()
- func (m *DeleteSavedCardRequest) Reset()
- func (m *DeleteSavedCardRequest) String() string
- func (m *DeleteSavedCardRequest) XXX_DiscardUnknown()
- func (m *DeleteSavedCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteSavedCardRequest) XXX_Merge(src proto.Message)
- func (m *DeleteSavedCardRequest) XXX_Size() int
- func (m *DeleteSavedCardRequest) XXX_Unmarshal(b []byte) error
- type DeleteSavedCardResponse
- func (*DeleteSavedCardResponse) Descriptor() ([]byte, []int)
- func (m *DeleteSavedCardResponse) GetMessage() string
- func (m *DeleteSavedCardResponse) GetStatus() int32
- func (*DeleteSavedCardResponse) ProtoMessage()
- func (m *DeleteSavedCardResponse) Reset()
- func (m *DeleteSavedCardResponse) String() string
- func (m *DeleteSavedCardResponse) XXX_DiscardUnknown()
- func (m *DeleteSavedCardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *DeleteSavedCardResponse) XXX_Merge(src proto.Message)
- func (m *DeleteSavedCardResponse) XXX_Size() int
- func (m *DeleteSavedCardResponse) XXX_Unmarshal(b []byte) error
- type FindByStringValue
- func (*FindByStringValue) Descriptor() ([]byte, []int)
- func (m *FindByStringValue) GetValue() string
- func (*FindByStringValue) ProtoMessage()
- func (m *FindByStringValue) Reset()
- func (m *FindByStringValue) String() string
- func (m *FindByStringValue) XXX_DiscardUnknown()
- func (m *FindByStringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *FindByStringValue) XXX_Merge(src proto.Message)
- func (m *FindByStringValue) XXX_Size() int
- func (m *FindByStringValue) XXX_Unmarshal(b []byte) error
- type RepositoryHandler
- type RepositoryService
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) String() string
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Result) XXX_Merge(src proto.Message)
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type SavedCardList
- func (*SavedCardList) Descriptor() ([]byte, []int)
- func (m *SavedCardList) GetSavedCards() []*entity.SavedCard
- func (*SavedCardList) ProtoMessage()
- func (m *SavedCardList) Reset()
- func (m *SavedCardList) String() string
- func (m *SavedCardList) XXX_DiscardUnknown()
- func (m *SavedCardList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SavedCardList) XXX_Merge(src proto.Message)
- func (m *SavedCardList) XXX_Size() int
- func (m *SavedCardList) XXX_Unmarshal(b []byte) error
- type SavedCardRequest
- func (*SavedCardRequest) Descriptor() ([]byte, []int)
- func (m *SavedCardRequest) GetCardHolder() string
- func (m *SavedCardRequest) GetExpire() *entity.CardExpire
- func (m *SavedCardRequest) GetMaskedPan() string
- func (m *SavedCardRequest) GetMerchantId() string
- func (m *SavedCardRequest) GetProjectId() string
- func (m *SavedCardRequest) GetRecurringId() string
- func (m *SavedCardRequest) GetToken() string
- func (*SavedCardRequest) ProtoMessage()
- func (m *SavedCardRequest) Reset()
- func (m *SavedCardRequest) String() string
- func (m *SavedCardRequest) XXX_DiscardUnknown()
- func (m *SavedCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SavedCardRequest) XXX_Merge(src proto.Message)
- func (m *SavedCardRequest) XXX_Size() int
- func (m *SavedCardRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRepositoryHandler ¶
func RegisterRepositoryHandler(s server.Server, hdlr RepositoryHandler, opts ...server.HandlerOption) error
Types ¶
type DeleteSavedCardRequest ¶ added in v1.0.125
type DeleteSavedCardRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"` XXX_unrecognized []byte `json:"-" bson:"-" structure:"-"` XXX_sizecache int32 `json:"-" bson:"-" structure:"-"` }
func (*DeleteSavedCardRequest) Descriptor ¶ added in v1.0.125
func (*DeleteSavedCardRequest) Descriptor() ([]byte, []int)
func (*DeleteSavedCardRequest) GetId ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) GetId() string
func (*DeleteSavedCardRequest) GetToken ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) GetToken() string
func (*DeleteSavedCardRequest) ProtoMessage ¶ added in v1.0.125
func (*DeleteSavedCardRequest) ProtoMessage()
func (*DeleteSavedCardRequest) Reset ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) Reset()
func (*DeleteSavedCardRequest) String ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) String() string
func (*DeleteSavedCardRequest) XXX_DiscardUnknown ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) XXX_DiscardUnknown()
func (*DeleteSavedCardRequest) XXX_Marshal ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteSavedCardRequest) XXX_Merge ¶ added in v1.0.125
func (dst *DeleteSavedCardRequest) XXX_Merge(src proto.Message)
func (*DeleteSavedCardRequest) XXX_Size ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) XXX_Size() int
func (*DeleteSavedCardRequest) XXX_Unmarshal ¶ added in v1.0.125
func (m *DeleteSavedCardRequest) XXX_Unmarshal(b []byte) error
type DeleteSavedCardResponse ¶ added in v1.0.125
type DeleteSavedCardResponse struct { Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"` XXX_unrecognized []byte `json:"-" bson:"-" structure:"-"` XXX_sizecache int32 `json:"-" bson:"-" structure:"-"` }
func (*DeleteSavedCardResponse) Descriptor ¶ added in v1.0.125
func (*DeleteSavedCardResponse) Descriptor() ([]byte, []int)
func (*DeleteSavedCardResponse) GetMessage ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) GetMessage() string
func (*DeleteSavedCardResponse) GetStatus ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) GetStatus() int32
func (*DeleteSavedCardResponse) ProtoMessage ¶ added in v1.0.125
func (*DeleteSavedCardResponse) ProtoMessage()
func (*DeleteSavedCardResponse) Reset ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) Reset()
func (*DeleteSavedCardResponse) String ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) String() string
func (*DeleteSavedCardResponse) XXX_DiscardUnknown ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) XXX_DiscardUnknown()
func (*DeleteSavedCardResponse) XXX_Marshal ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteSavedCardResponse) XXX_Merge ¶ added in v1.0.125
func (dst *DeleteSavedCardResponse) XXX_Merge(src proto.Message)
func (*DeleteSavedCardResponse) XXX_Size ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) XXX_Size() int
func (*DeleteSavedCardResponse) XXX_Unmarshal ¶ added in v1.0.125
func (m *DeleteSavedCardResponse) XXX_Unmarshal(b []byte) error
type FindByStringValue ¶
type FindByStringValue struct { Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"` XXX_unrecognized []byte `json:"-" bson:"-" structure:"-"` XXX_sizecache int32 `json:"-" bson:"-" structure:"-"` }
func (*FindByStringValue) Descriptor ¶
func (*FindByStringValue) Descriptor() ([]byte, []int)
func (*FindByStringValue) GetValue ¶
func (m *FindByStringValue) GetValue() string
func (*FindByStringValue) ProtoMessage ¶
func (*FindByStringValue) ProtoMessage()
func (*FindByStringValue) Reset ¶
func (m *FindByStringValue) Reset()
func (*FindByStringValue) String ¶
func (m *FindByStringValue) String() string
func (*FindByStringValue) XXX_DiscardUnknown ¶
func (m *FindByStringValue) XXX_DiscardUnknown()
func (*FindByStringValue) XXX_Marshal ¶
func (m *FindByStringValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FindByStringValue) XXX_Merge ¶
func (dst *FindByStringValue) XXX_Merge(src proto.Message)
func (*FindByStringValue) XXX_Size ¶
func (m *FindByStringValue) XXX_Size() int
func (*FindByStringValue) XXX_Unmarshal ¶
func (m *FindByStringValue) XXX_Unmarshal(b []byte) error
type RepositoryHandler ¶
type RepositoryHandler interface { InsertSavedCard(context.Context, *SavedCardRequest, *Result) error DeleteSavedCard(context.Context, *DeleteSavedCardRequest, *DeleteSavedCardResponse) error FindSavedCards(context.Context, *SavedCardRequest, *SavedCardList) error FindSavedCardById(context.Context, *FindByStringValue, *entity.SavedCard) error }
type RepositoryService ¶
type RepositoryService interface { InsertSavedCard(ctx context.Context, in *SavedCardRequest, opts ...client.CallOption) (*Result, error) DeleteSavedCard(ctx context.Context, in *DeleteSavedCardRequest, opts ...client.CallOption) (*DeleteSavedCardResponse, error) FindSavedCards(ctx context.Context, in *SavedCardRequest, opts ...client.CallOption) (*SavedCardList, error) FindSavedCardById(ctx context.Context, in *FindByStringValue, opts ...client.CallOption) (*entity.SavedCard, error) }
func NewRepositoryService ¶
func NewRepositoryService(name string, c client.Client) RepositoryService
type Result ¶
type Result struct { XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"` XXX_unrecognized []byte `json:"-" bson:"-" structure:"-"` XXX_sizecache int32 `json:"-" bson:"-" structure:"-"` }
func (*Result) Descriptor ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_Unmarshal ¶
type SavedCardList ¶
type SavedCardList struct { SavedCards []*entity.SavedCard `protobuf:"bytes,1,rep,name=saved_cards,json=savedCards,proto3" json:"saved_cards,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"` XXX_unrecognized []byte `json:"-" bson:"-" structure:"-"` XXX_sizecache int32 `json:"-" bson:"-" structure:"-"` }
func (*SavedCardList) Descriptor ¶
func (*SavedCardList) Descriptor() ([]byte, []int)
func (*SavedCardList) GetSavedCards ¶
func (m *SavedCardList) GetSavedCards() []*entity.SavedCard
func (*SavedCardList) ProtoMessage ¶
func (*SavedCardList) ProtoMessage()
func (*SavedCardList) Reset ¶
func (m *SavedCardList) Reset()
func (*SavedCardList) String ¶
func (m *SavedCardList) String() string
func (*SavedCardList) XXX_DiscardUnknown ¶
func (m *SavedCardList) XXX_DiscardUnknown()
func (*SavedCardList) XXX_Marshal ¶
func (m *SavedCardList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SavedCardList) XXX_Merge ¶
func (dst *SavedCardList) XXX_Merge(src proto.Message)
func (*SavedCardList) XXX_Size ¶
func (m *SavedCardList) XXX_Size() int
func (*SavedCardList) XXX_Unmarshal ¶
func (m *SavedCardList) XXX_Unmarshal(b []byte) error
type SavedCardRequest ¶
type SavedCardRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` MerchantId string `protobuf:"bytes,3,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` MaskedPan string `protobuf:"bytes,4,opt,name=masked_pan,json=maskedPan,proto3" json:"masked_pan,omitempty"` CardHolder string `protobuf:"bytes,5,opt,name=card_holder,json=cardHolder,proto3" json:"card_holder,omitempty"` RecurringId string `protobuf:"bytes,6,opt,name=recurring_id,json=recurringId,proto3" json:"recurring_id,omitempty"` Expire *entity.CardExpire `protobuf:"bytes,7,opt,name=expire,proto3" json:"expire,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" bson:"-" structure:"-"` XXX_unrecognized []byte `json:"-" bson:"-" structure:"-"` XXX_sizecache int32 `json:"-" bson:"-" structure:"-"` }
func (*SavedCardRequest) Descriptor ¶
func (*SavedCardRequest) Descriptor() ([]byte, []int)
func (*SavedCardRequest) GetCardHolder ¶ added in v1.0.107
func (m *SavedCardRequest) GetCardHolder() string
func (*SavedCardRequest) GetExpire ¶
func (m *SavedCardRequest) GetExpire() *entity.CardExpire
func (*SavedCardRequest) GetMaskedPan ¶
func (m *SavedCardRequest) GetMaskedPan() string
func (*SavedCardRequest) GetMerchantId ¶ added in v1.0.105
func (m *SavedCardRequest) GetMerchantId() string
func (*SavedCardRequest) GetProjectId ¶
func (m *SavedCardRequest) GetProjectId() string
func (*SavedCardRequest) GetRecurringId ¶
func (m *SavedCardRequest) GetRecurringId() string
func (*SavedCardRequest) GetToken ¶ added in v1.0.105
func (m *SavedCardRequest) GetToken() string
func (*SavedCardRequest) ProtoMessage ¶
func (*SavedCardRequest) ProtoMessage()
func (*SavedCardRequest) Reset ¶
func (m *SavedCardRequest) Reset()
func (*SavedCardRequest) String ¶
func (m *SavedCardRequest) String() string
func (*SavedCardRequest) XXX_DiscardUnknown ¶
func (m *SavedCardRequest) XXX_DiscardUnknown()
func (*SavedCardRequest) XXX_Marshal ¶
func (m *SavedCardRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SavedCardRequest) XXX_Merge ¶
func (dst *SavedCardRequest) XXX_Merge(src proto.Message)
func (*SavedCardRequest) XXX_Size ¶
func (m *SavedCardRequest) XXX_Size() int
func (*SavedCardRequest) XXX_Unmarshal ¶
func (m *SavedCardRequest) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.