Documentation ¶
Index ¶
- func NewPaymentServiceEndpoints() []*api.Endpoint
- func RegisterPaymentServiceHandler(s server.Server, hdlr PaymentServiceHandler, opts ...server.HandlerOption) error
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetAmount() float64
- func (m *CreateRequest) GetMerchantId() string
- func (m *CreateRequest) GetOrderUuid() string
- func (m *CreateRequest) GetPaymentType() string
- func (m *CreateRequest) GetUrl() *CreateRequest_Url
- func (*CreateRequest) ProtoMessage()
- func (m *CreateRequest) Reset()
- func (m *CreateRequest) String() string
- func (m *CreateRequest) Validate() error
- func (m *CreateRequest) XXX_DiscardUnknown()
- func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest) XXX_Merge(src proto.Message)
- func (m *CreateRequest) XXX_Size() int
- func (m *CreateRequest) XXX_Unmarshal(b []byte) error
- type CreateRequestValidationError
- func (e CreateRequestValidationError) Cause() error
- func (e CreateRequestValidationError) Error() string
- func (e CreateRequestValidationError) ErrorName() string
- func (e CreateRequestValidationError) Field() string
- func (e CreateRequestValidationError) Key() bool
- func (e CreateRequestValidationError) Reason() string
- type CreateRequest_Url
- func (*CreateRequest_Url) Descriptor() ([]byte, []int)
- func (m *CreateRequest_Url) GetFail() string
- func (m *CreateRequest_Url) GetNeutral() string
- func (m *CreateRequest_Url) GetSuccess() string
- func (*CreateRequest_Url) ProtoMessage()
- func (m *CreateRequest_Url) Reset()
- func (m *CreateRequest_Url) String() string
- func (m *CreateRequest_Url) Validate() error
- func (m *CreateRequest_Url) XXX_DiscardUnknown()
- func (m *CreateRequest_Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateRequest_Url) XXX_Merge(src proto.Message)
- func (m *CreateRequest_Url) XXX_Size() int
- func (m *CreateRequest_Url) XXX_Unmarshal(b []byte) error
- type CreateRequest_UrlValidationError
- func (e CreateRequest_UrlValidationError) Cause() error
- func (e CreateRequest_UrlValidationError) Error() string
- func (e CreateRequest_UrlValidationError) ErrorName() string
- func (e CreateRequest_UrlValidationError) Field() string
- func (e CreateRequest_UrlValidationError) Key() bool
- func (e CreateRequest_UrlValidationError) Reason() string
- type CreateResponse
- func (*CreateResponse) Descriptor() ([]byte, []int)
- func (m *CreateResponse) GetStatus() string
- func (m *CreateResponse) GetUrl() string
- func (m *CreateResponse) GetUuid() string
- func (*CreateResponse) ProtoMessage()
- func (m *CreateResponse) Reset()
- func (m *CreateResponse) String() string
- func (m *CreateResponse) Validate() error
- func (m *CreateResponse) XXX_DiscardUnknown()
- func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateResponse) XXX_Merge(src proto.Message)
- func (m *CreateResponse) XXX_Size() int
- func (m *CreateResponse) XXX_Unmarshal(b []byte) error
- type CreateResponseValidationError
- func (e CreateResponseValidationError) Cause() error
- func (e CreateResponseValidationError) Error() string
- func (e CreateResponseValidationError) ErrorName() string
- func (e CreateResponseValidationError) Field() string
- func (e CreateResponseValidationError) Key() bool
- func (e CreateResponseValidationError) Reason() string
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)
- func (m *Payment) GetAmount() float64
- func (m *Payment) GetCreatedAt() string
- func (m *Payment) GetEmail() string
- func (m *Payment) GetExternalId() string
- func (m *Payment) GetMerchantId() string
- func (m *Payment) GetPaymentId() int64
- func (m *Payment) GetPaymentType() string
- func (m *Payment) GetPhone() string
- func (m *Payment) GetRefundAmount() float64
- func (m *Payment) GetStatus() string
- func (m *Payment) GetUpdatedAt() string
- func (m *Payment) GetUrl() *Payment_Url
- func (m *Payment) GetUuid() string
- func (*Payment) ProtoMessage()
- func (m *Payment) Reset()
- func (m *Payment) String() string
- func (m *Payment) Validate() error
- func (m *Payment) XXX_DiscardUnknown()
- func (m *Payment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payment) XXX_Merge(src proto.Message)
- func (m *Payment) XXX_Size() int
- func (m *Payment) XXX_Unmarshal(b []byte) error
- type PaymentService
- type PaymentServiceHandler
- type PaymentValidationError
- type Payment_Url
- func (*Payment_Url) Descriptor() ([]byte, []int)
- func (m *Payment_Url) GetFail() string
- func (m *Payment_Url) GetNeutral() string
- func (m *Payment_Url) GetSuccess() string
- func (m *Payment_Url) GetUrl() string
- func (*Payment_Url) ProtoMessage()
- func (m *Payment_Url) Reset()
- func (m *Payment_Url) String() string
- func (m *Payment_Url) Validate() error
- func (m *Payment_Url) XXX_DiscardUnknown()
- func (m *Payment_Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payment_Url) XXX_Merge(src proto.Message)
- func (m *Payment_Url) XXX_Size() int
- func (m *Payment_Url) XXX_Unmarshal(b []byte) error
- type Payment_UrlValidationError
- func (e Payment_UrlValidationError) Cause() error
- func (e Payment_UrlValidationError) Error() string
- func (e Payment_UrlValidationError) ErrorName() string
- func (e Payment_UrlValidationError) Field() string
- func (e Payment_UrlValidationError) Key() bool
- func (e Payment_UrlValidationError) Reason() string
- type RefundRequest
- func (*RefundRequest) Descriptor() ([]byte, []int)
- func (m *RefundRequest) GetAmount() float64
- func (m *RefundRequest) GetUuid() string
- func (*RefundRequest) ProtoMessage()
- func (m *RefundRequest) Reset()
- func (m *RefundRequest) String() string
- func (m *RefundRequest) Validate() error
- func (m *RefundRequest) XXX_DiscardUnknown()
- func (m *RefundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RefundRequest) XXX_Merge(src proto.Message)
- func (m *RefundRequest) XXX_Size() int
- func (m *RefundRequest) XXX_Unmarshal(b []byte) error
- type RefundRequestValidationError
- func (e RefundRequestValidationError) Cause() error
- func (e RefundRequestValidationError) Error() string
- func (e RefundRequestValidationError) ErrorName() string
- func (e RefundRequestValidationError) Field() string
- func (e RefundRequestValidationError) Key() bool
- func (e RefundRequestValidationError) Reason() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetUuid() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) Validate() error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type RequestValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPaymentServiceHandler ¶
func RegisterPaymentServiceHandler(s server.Server, hdlr PaymentServiceHandler, opts ...server.HandlerOption) error
Types ¶
type CreateRequest ¶
type CreateRequest struct { OrderUuid string `protobuf:"bytes,1,opt,name=order_uuid,json=orderUuid,proto3" json:"order_uuid,omitempty"` Url *CreateRequest_Url `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` PaymentType string `protobuf:"bytes,3,opt,name=payment_type,json=paymentType,proto3" json:"payment_type,omitempty"` MerchantId string `protobuf:"bytes,4,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"` Amount float64 `protobuf:"fixed64,5,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetAmount ¶
func (m *CreateRequest) GetAmount() float64
func (*CreateRequest) GetMerchantId ¶
func (m *CreateRequest) GetMerchantId() string
func (*CreateRequest) GetOrderUuid ¶
func (m *CreateRequest) GetOrderUuid() string
func (*CreateRequest) GetPaymentType ¶
func (m *CreateRequest) GetPaymentType() string
func (*CreateRequest) GetUrl ¶
func (m *CreateRequest) GetUrl() *CreateRequest_Url
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) Reset ¶
func (m *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (m *CreateRequest) String() string
func (*CreateRequest) Validate ¶
func (m *CreateRequest) Validate() error
Validate checks the field values on CreateRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateRequest) XXX_DiscardUnknown ¶
func (m *CreateRequest) XXX_DiscardUnknown()
func (*CreateRequest) XXX_Marshal ¶
func (m *CreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest) XXX_Merge ¶
func (m *CreateRequest) XXX_Merge(src proto.Message)
func (*CreateRequest) XXX_Size ¶
func (m *CreateRequest) XXX_Size() int
func (*CreateRequest) XXX_Unmarshal ¶
func (m *CreateRequest) XXX_Unmarshal(b []byte) error
type CreateRequestValidationError ¶
type CreateRequestValidationError struct {
// contains filtered or unexported fields
}
CreateRequestValidationError is the validation error returned by CreateRequest.Validate if the designated constraints aren't met.
func (CreateRequestValidationError) Cause ¶
func (e CreateRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRequestValidationError) Error ¶
func (e CreateRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequestValidationError) ErrorName ¶
func (e CreateRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequestValidationError) Field ¶
func (e CreateRequestValidationError) Field() string
Field function returns field value.
func (CreateRequestValidationError) Key ¶
func (e CreateRequestValidationError) Key() bool
Key function returns key value.
func (CreateRequestValidationError) Reason ¶
func (e CreateRequestValidationError) Reason() string
Reason function returns reason value.
type CreateRequest_Url ¶
type CreateRequest_Url struct { Success string `protobuf:"bytes,1,opt,name=success,proto3" json:"success,omitempty"` Fail string `protobuf:"bytes,2,opt,name=fail,proto3" json:"fail,omitempty"` Neutral string `protobuf:"bytes,3,opt,name=neutral,proto3" json:"neutral,omitempty"` }
func (*CreateRequest_Url) Descriptor ¶
func (*CreateRequest_Url) Descriptor() ([]byte, []int)
func (*CreateRequest_Url) GetFail ¶
func (m *CreateRequest_Url) GetFail() string
func (*CreateRequest_Url) GetNeutral ¶
func (m *CreateRequest_Url) GetNeutral() string
func (*CreateRequest_Url) GetSuccess ¶
func (m *CreateRequest_Url) GetSuccess() string
func (*CreateRequest_Url) ProtoMessage ¶
func (*CreateRequest_Url) ProtoMessage()
func (*CreateRequest_Url) Reset ¶
func (m *CreateRequest_Url) Reset()
func (*CreateRequest_Url) String ¶
func (m *CreateRequest_Url) String() string
func (*CreateRequest_Url) Validate ¶
func (m *CreateRequest_Url) Validate() error
Validate checks the field values on CreateRequest_Url with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateRequest_Url) XXX_DiscardUnknown ¶
func (m *CreateRequest_Url) XXX_DiscardUnknown()
func (*CreateRequest_Url) XXX_Marshal ¶
func (m *CreateRequest_Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRequest_Url) XXX_Merge ¶
func (m *CreateRequest_Url) XXX_Merge(src proto.Message)
func (*CreateRequest_Url) XXX_Size ¶
func (m *CreateRequest_Url) XXX_Size() int
func (*CreateRequest_Url) XXX_Unmarshal ¶
func (m *CreateRequest_Url) XXX_Unmarshal(b []byte) error
type CreateRequest_UrlValidationError ¶
type CreateRequest_UrlValidationError struct {
// contains filtered or unexported fields
}
CreateRequest_UrlValidationError is the validation error returned by CreateRequest_Url.Validate if the designated constraints aren't met.
func (CreateRequest_UrlValidationError) Cause ¶
func (e CreateRequest_UrlValidationError) Cause() error
Cause function returns cause value.
func (CreateRequest_UrlValidationError) Error ¶
func (e CreateRequest_UrlValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRequest_UrlValidationError) ErrorName ¶
func (e CreateRequest_UrlValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRequest_UrlValidationError) Field ¶
func (e CreateRequest_UrlValidationError) Field() string
Field function returns field value.
func (CreateRequest_UrlValidationError) Key ¶
func (e CreateRequest_UrlValidationError) Key() bool
Key function returns key value.
func (CreateRequest_UrlValidationError) Reason ¶
func (e CreateRequest_UrlValidationError) Reason() string
Reason function returns reason value.
type CreateResponse ¶
type CreateResponse struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` }
func (*CreateResponse) Descriptor ¶
func (*CreateResponse) Descriptor() ([]byte, []int)
func (*CreateResponse) GetStatus ¶
func (m *CreateResponse) GetStatus() string
func (*CreateResponse) GetUrl ¶
func (m *CreateResponse) GetUrl() string
func (*CreateResponse) GetUuid ¶
func (m *CreateResponse) GetUuid() string
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) Reset ¶
func (m *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (m *CreateResponse) String() string
func (*CreateResponse) Validate ¶
func (m *CreateResponse) Validate() error
Validate checks the field values on CreateResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CreateResponse) XXX_DiscardUnknown ¶
func (m *CreateResponse) XXX_DiscardUnknown()
func (*CreateResponse) XXX_Marshal ¶
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateResponse) XXX_Merge ¶
func (m *CreateResponse) XXX_Merge(src proto.Message)
func (*CreateResponse) XXX_Size ¶
func (m *CreateResponse) XXX_Size() int
func (*CreateResponse) XXX_Unmarshal ¶
func (m *CreateResponse) XXX_Unmarshal(b []byte) error
type CreateResponseValidationError ¶
type CreateResponseValidationError struct {
// contains filtered or unexported fields
}
CreateResponseValidationError is the validation error returned by CreateResponse.Validate if the designated constraints aren't met.
func (CreateResponseValidationError) Cause ¶
func (e CreateResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateResponseValidationError) Error ¶
func (e CreateResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateResponseValidationError) ErrorName ¶
func (e CreateResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateResponseValidationError) Field ¶
func (e CreateResponseValidationError) Field() string
Field function returns field value.
func (CreateResponseValidationError) Key ¶
func (e CreateResponseValidationError) Key() bool
Key function returns key value.
func (CreateResponseValidationError) Reason ¶
func (e CreateResponseValidationError) Reason() string
Reason function returns reason value.
type Payment ¶
type Payment struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty" bson:"uuid"` PaymentId int64 `protobuf:"varint,2,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty" bson:"payment_id"` Url *Payment_Url `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty" bson:"url"` Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty" bson:"amount"` RefundAmount float64 `protobuf:"fixed64,5,opt,name=refund_amount,json=refundAmount,proto3" json:"refund_amount,omitempty" bson:"refund_amount"` PaymentType string `protobuf:"bytes,6,opt,name=payment_type,json=paymentType,proto3" json:"payment_type,omitempty" bson:"payment_type"` Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty" bson:"status"` ExternalId string `protobuf:"bytes,8,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty" bson:"external_id"` Email string `protobuf:"bytes,9,opt,name=email,proto3" json:"email,omitempty" bson:"email"` Phone string `protobuf:"bytes,10,opt,name=phone,proto3" json:"phone,omitempty" bson:"phone"` MerchantId string `protobuf:"bytes,11,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty" bson:"merchant_id"` CreatedAt string `protobuf:"bytes,1001,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty" bson:"created_at"` UpdatedAt string `protobuf:"bytes,1002,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty" bson:"updated_at"` }
func (*Payment) Descriptor ¶
func (*Payment) GetCreatedAt ¶
func (*Payment) GetExternalId ¶
func (*Payment) GetMerchantId ¶
func (*Payment) GetPaymentId ¶
func (*Payment) GetPaymentType ¶
func (*Payment) GetRefundAmount ¶
func (*Payment) GetUpdatedAt ¶
func (*Payment) GetUrl ¶
func (m *Payment) GetUrl() *Payment_Url
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
func (*Payment) Validate ¶
Validate checks the field values on Payment with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Payment) XXX_DiscardUnknown ¶
func (m *Payment) XXX_DiscardUnknown()
func (*Payment) XXX_Marshal ¶
func (*Payment) XXX_Unmarshal ¶
type PaymentService ¶
type PaymentService interface { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) GetStatus(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) Refund(ctx context.Context, in *RefundRequest, opts ...client.CallOption) (*shared.StatusResponse, error) Cancel(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) Finish(ctx context.Context, in *Request, opts ...client.CallOption) (*shared.StatusResponse, error) }
func NewPaymentService ¶
func NewPaymentService(name string, c client.Client) PaymentService
type PaymentServiceHandler ¶
type PaymentServiceHandler interface { Create(context.Context, *CreateRequest, *CreateResponse) error GetStatus(context.Context, *Request, *shared.StatusResponse) error Refund(context.Context, *RefundRequest, *shared.StatusResponse) error Cancel(context.Context, *Request, *shared.StatusResponse) error Finish(context.Context, *Request, *shared.StatusResponse) error }
type PaymentValidationError ¶
type PaymentValidationError struct {
// contains filtered or unexported fields
}
PaymentValidationError is the validation error returned by Payment.Validate if the designated constraints aren't met.
func (PaymentValidationError) Cause ¶
func (e PaymentValidationError) Cause() error
Cause function returns cause value.
func (PaymentValidationError) Error ¶
func (e PaymentValidationError) Error() string
Error satisfies the builtin error interface
func (PaymentValidationError) ErrorName ¶
func (e PaymentValidationError) ErrorName() string
ErrorName returns error name.
func (PaymentValidationError) Field ¶
func (e PaymentValidationError) Field() string
Field function returns field value.
func (PaymentValidationError) Key ¶
func (e PaymentValidationError) Key() bool
Key function returns key value.
func (PaymentValidationError) Reason ¶
func (e PaymentValidationError) Reason() string
Reason function returns reason value.
type Payment_Url ¶
type Payment_Url struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty" bson:"url"` Success string `protobuf:"bytes,2,opt,name=success,proto3" json:"success,omitempty" bson:"succes"` Fail string `protobuf:"bytes,3,opt,name=fail,proto3" json:"fail,omitempty" bson:"fail"` Neutral string `protobuf:"bytes,4,opt,name=neutral,proto3" json:"neutral,omitempty" bson:"neutral"` }
func (*Payment_Url) Descriptor ¶
func (*Payment_Url) Descriptor() ([]byte, []int)
func (*Payment_Url) GetFail ¶
func (m *Payment_Url) GetFail() string
func (*Payment_Url) GetNeutral ¶
func (m *Payment_Url) GetNeutral() string
func (*Payment_Url) GetSuccess ¶
func (m *Payment_Url) GetSuccess() string
func (*Payment_Url) GetUrl ¶
func (m *Payment_Url) GetUrl() string
func (*Payment_Url) ProtoMessage ¶
func (*Payment_Url) ProtoMessage()
func (*Payment_Url) Reset ¶
func (m *Payment_Url) Reset()
func (*Payment_Url) String ¶
func (m *Payment_Url) String() string
func (*Payment_Url) Validate ¶
func (m *Payment_Url) Validate() error
Validate checks the field values on Payment_Url with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Payment_Url) XXX_DiscardUnknown ¶
func (m *Payment_Url) XXX_DiscardUnknown()
func (*Payment_Url) XXX_Marshal ¶
func (m *Payment_Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Payment_Url) XXX_Merge ¶
func (m *Payment_Url) XXX_Merge(src proto.Message)
func (*Payment_Url) XXX_Size ¶
func (m *Payment_Url) XXX_Size() int
func (*Payment_Url) XXX_Unmarshal ¶
func (m *Payment_Url) XXX_Unmarshal(b []byte) error
type Payment_UrlValidationError ¶
type Payment_UrlValidationError struct {
// contains filtered or unexported fields
}
Payment_UrlValidationError is the validation error returned by Payment_Url.Validate if the designated constraints aren't met.
func (Payment_UrlValidationError) Cause ¶
func (e Payment_UrlValidationError) Cause() error
Cause function returns cause value.
func (Payment_UrlValidationError) Error ¶
func (e Payment_UrlValidationError) Error() string
Error satisfies the builtin error interface
func (Payment_UrlValidationError) ErrorName ¶
func (e Payment_UrlValidationError) ErrorName() string
ErrorName returns error name.
func (Payment_UrlValidationError) Field ¶
func (e Payment_UrlValidationError) Field() string
Field function returns field value.
func (Payment_UrlValidationError) Key ¶
func (e Payment_UrlValidationError) Key() bool
Key function returns key value.
func (Payment_UrlValidationError) Reason ¶
func (e Payment_UrlValidationError) Reason() string
Reason function returns reason value.
type RefundRequest ¶
type RefundRequest struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` Amount float64 `protobuf:"fixed64,2,opt,name=amount,proto3" json:"amount,omitempty"` }
func (*RefundRequest) Descriptor ¶
func (*RefundRequest) Descriptor() ([]byte, []int)
func (*RefundRequest) GetAmount ¶
func (m *RefundRequest) GetAmount() float64
func (*RefundRequest) GetUuid ¶
func (m *RefundRequest) GetUuid() string
func (*RefundRequest) ProtoMessage ¶
func (*RefundRequest) ProtoMessage()
func (*RefundRequest) Reset ¶
func (m *RefundRequest) Reset()
func (*RefundRequest) String ¶
func (m *RefundRequest) String() string
func (*RefundRequest) Validate ¶
func (m *RefundRequest) Validate() error
Validate checks the field values on RefundRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*RefundRequest) XXX_DiscardUnknown ¶
func (m *RefundRequest) XXX_DiscardUnknown()
func (*RefundRequest) XXX_Marshal ¶
func (m *RefundRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RefundRequest) XXX_Merge ¶
func (m *RefundRequest) XXX_Merge(src proto.Message)
func (*RefundRequest) XXX_Size ¶
func (m *RefundRequest) XXX_Size() int
func (*RefundRequest) XXX_Unmarshal ¶
func (m *RefundRequest) XXX_Unmarshal(b []byte) error
type RefundRequestValidationError ¶
type RefundRequestValidationError struct {
// contains filtered or unexported fields
}
RefundRequestValidationError is the validation error returned by RefundRequest.Validate if the designated constraints aren't met.
func (RefundRequestValidationError) Cause ¶
func (e RefundRequestValidationError) Cause() error
Cause function returns cause value.
func (RefundRequestValidationError) Error ¶
func (e RefundRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RefundRequestValidationError) ErrorName ¶
func (e RefundRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RefundRequestValidationError) Field ¶
func (e RefundRequestValidationError) Field() string
Field function returns field value.
func (RefundRequestValidationError) Key ¶
func (e RefundRequestValidationError) Key() bool
Key function returns key value.
func (RefundRequestValidationError) Reason ¶
func (e RefundRequestValidationError) Reason() string
Reason function returns reason value.
type Request ¶
type Request struct {
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
}
func (*Request) Descriptor ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) Validate ¶
Validate checks the field values on Request with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type RequestValidationError ¶
type RequestValidationError struct {
// contains filtered or unexported fields
}
RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.
func (RequestValidationError) Cause ¶
func (e RequestValidationError) Cause() error
Cause function returns cause value.
func (RequestValidationError) Error ¶
func (e RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RequestValidationError) ErrorName ¶
func (e RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RequestValidationError) Field ¶
func (e RequestValidationError) Field() string
Field function returns field value.
func (RequestValidationError) Key ¶
func (e RequestValidationError) Key() bool
Key function returns key value.
func (RequestValidationError) Reason ¶
func (e RequestValidationError) Reason() string
Reason function returns reason value.