Documentation ¶
Index ¶
- func NewPaymentServiceEndpoints() []*api.Endpoint
- func RegisterPaymentServiceHandler(s server.Server, hdlr PaymentServiceHandler, opts ...server.HandlerOption) error
- type CallbackRequest
- func (*CallbackRequest) Descriptor() ([]byte, []int)
- func (m *CallbackRequest) GetData() []byte
- func (m *CallbackRequest) GetSignature() string
- func (*CallbackRequest) ProtoMessage()
- func (m *CallbackRequest) Reset()
- func (m *CallbackRequest) String() string
- func (m *CallbackRequest) Validate() error
- func (m *CallbackRequest) XXX_DiscardUnknown()
- func (m *CallbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallbackRequest) XXX_Merge(src proto.Message)
- func (m *CallbackRequest) XXX_Size() int
- func (m *CallbackRequest) XXX_Unmarshal(b []byte) error
- type CallbackRequestValidationError
- func (e CallbackRequestValidationError) Cause() error
- func (e CallbackRequestValidationError) Error() string
- func (e CallbackRequestValidationError) ErrorName() string
- func (e CallbackRequestValidationError) Field() string
- func (e CallbackRequestValidationError) Key() bool
- func (e CallbackRequestValidationError) Reason() string
- type GetRequest
- func (*GetRequest) Descriptor() ([]byte, []int)
- func (m *GetRequest) GetLiqpayOrderId() string
- func (m *GetRequest) GetOrderId() string
- func (m *GetRequest) GetPaymentId() string
- func (*GetRequest) ProtoMessage()
- func (m *GetRequest) Reset()
- func (m *GetRequest) String() string
- func (m *GetRequest) Validate() error
- func (m *GetRequest) XXX_DiscardUnknown()
- func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetRequest) XXX_Merge(src proto.Message)
- func (m *GetRequest) XXX_Size() int
- func (m *GetRequest) XXX_Unmarshal(b []byte) error
- type GetRequestValidationError
- type HoldUrlRequest
- func (*HoldUrlRequest) Descriptor() ([]byte, []int)
- func (m *HoldUrlRequest) GetLanguage() string
- func (m *HoldUrlRequest) GetOrderUuid() string
- func (m *HoldUrlRequest) GetUrl() *HoldUrlRequest_Url
- func (*HoldUrlRequest) ProtoMessage()
- func (m *HoldUrlRequest) Reset()
- func (m *HoldUrlRequest) String() string
- func (m *HoldUrlRequest) Validate() error
- func (m *HoldUrlRequest) XXX_DiscardUnknown()
- func (m *HoldUrlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HoldUrlRequest) XXX_Merge(src proto.Message)
- func (m *HoldUrlRequest) XXX_Size() int
- func (m *HoldUrlRequest) XXX_Unmarshal(b []byte) error
- type HoldUrlRequestValidationError
- func (e HoldUrlRequestValidationError) Cause() error
- func (e HoldUrlRequestValidationError) Error() string
- func (e HoldUrlRequestValidationError) ErrorName() string
- func (e HoldUrlRequestValidationError) Field() string
- func (e HoldUrlRequestValidationError) Key() bool
- func (e HoldUrlRequestValidationError) Reason() string
- type HoldUrlRequest_Url
- func (*HoldUrlRequest_Url) Descriptor() ([]byte, []int)
- func (m *HoldUrlRequest_Url) GetResult() string
- func (m *HoldUrlRequest_Url) GetServer() string
- func (*HoldUrlRequest_Url) ProtoMessage()
- func (m *HoldUrlRequest_Url) Reset()
- func (m *HoldUrlRequest_Url) String() string
- func (m *HoldUrlRequest_Url) Validate() error
- func (m *HoldUrlRequest_Url) XXX_DiscardUnknown()
- func (m *HoldUrlRequest_Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HoldUrlRequest_Url) XXX_Merge(src proto.Message)
- func (m *HoldUrlRequest_Url) XXX_Size() int
- func (m *HoldUrlRequest_Url) XXX_Unmarshal(b []byte) error
- type HoldUrlRequest_UrlValidationError
- func (e HoldUrlRequest_UrlValidationError) Cause() error
- func (e HoldUrlRequest_UrlValidationError) Error() string
- func (e HoldUrlRequest_UrlValidationError) ErrorName() string
- func (e HoldUrlRequest_UrlValidationError) Field() string
- func (e HoldUrlRequest_UrlValidationError) Key() bool
- func (e HoldUrlRequest_UrlValidationError) Reason() string
- type HoldUrlResponse
- func (*HoldUrlResponse) Descriptor() ([]byte, []int)
- func (m *HoldUrlResponse) GetUrl() string
- func (*HoldUrlResponse) ProtoMessage()
- func (m *HoldUrlResponse) Reset()
- func (m *HoldUrlResponse) String() string
- func (m *HoldUrlResponse) Validate() error
- func (m *HoldUrlResponse) XXX_DiscardUnknown()
- func (m *HoldUrlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HoldUrlResponse) XXX_Merge(src proto.Message)
- func (m *HoldUrlResponse) XXX_Size() int
- func (m *HoldUrlResponse) XXX_Unmarshal(b []byte) error
- type HoldUrlResponseValidationError
- func (e HoldUrlResponseValidationError) Cause() error
- func (e HoldUrlResponseValidationError) Error() string
- func (e HoldUrlResponseValidationError) ErrorName() string
- func (e HoldUrlResponseValidationError) Field() string
- func (e HoldUrlResponseValidationError) Key() bool
- func (e HoldUrlResponseValidationError) Reason() string
- type Payment
- func (*Payment) Descriptor() ([]byte, []int)
- func (m *Payment) GetAction() string
- func (m *Payment) GetAmount() float64
- func (m *Payment) GetData() [][]byte
- func (m *Payment) GetDescription() string
- func (m *Payment) GetErrCode() string
- func (m *Payment) GetErrDescription() string
- func (m *Payment) GetErrErc() string
- func (m *Payment) GetLiqpayOrderId() string
- func (m *Payment) GetOrderId() string
- func (m *Payment) GetPaymentId() int64
- func (m *Payment) GetPaytype() string
- func (m *Payment) GetPublicKey() string
- func (m *Payment) GetRefundAmount() float64
- func (m *Payment) GetStatus() string
- func (m *Payment) GetType() string
- func (m *Payment) GetVersion() int64
- 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 RefundRequest
- func (*RefundRequest) Descriptor() ([]byte, []int)
- func (m *RefundRequest) GetAmount() float64
- func (m *RefundRequest) GetPaymentOrderId() 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 Response
- func (*Response) Descriptor() ([]byte, []int)
- func (m *Response) GetData() *Payment
- func (*Response) ProtoMessage()
- func (m *Response) Reset()
- func (m *Response) String() string
- func (m *Response) Validate() error
- func (m *Response) XXX_DiscardUnknown()
- func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Response) XXX_Merge(src proto.Message)
- func (m *Response) XXX_Size() int
- func (m *Response) XXX_Unmarshal(b []byte) error
- type ResponseValidationError
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 CallbackRequest ¶
type CallbackRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
func (*CallbackRequest) Descriptor ¶
func (*CallbackRequest) Descriptor() ([]byte, []int)
func (*CallbackRequest) GetData ¶
func (m *CallbackRequest) GetData() []byte
func (*CallbackRequest) GetSignature ¶
func (m *CallbackRequest) GetSignature() string
func (*CallbackRequest) ProtoMessage ¶
func (*CallbackRequest) ProtoMessage()
func (*CallbackRequest) Reset ¶
func (m *CallbackRequest) Reset()
func (*CallbackRequest) String ¶
func (m *CallbackRequest) String() string
func (*CallbackRequest) Validate ¶
func (m *CallbackRequest) Validate() error
Validate checks the field values on CallbackRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*CallbackRequest) XXX_DiscardUnknown ¶
func (m *CallbackRequest) XXX_DiscardUnknown()
func (*CallbackRequest) XXX_Marshal ¶
func (m *CallbackRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CallbackRequest) XXX_Merge ¶
func (m *CallbackRequest) XXX_Merge(src proto.Message)
func (*CallbackRequest) XXX_Size ¶
func (m *CallbackRequest) XXX_Size() int
func (*CallbackRequest) XXX_Unmarshal ¶
func (m *CallbackRequest) XXX_Unmarshal(b []byte) error
type CallbackRequestValidationError ¶
type CallbackRequestValidationError struct {
// contains filtered or unexported fields
}
CallbackRequestValidationError is the validation error returned by CallbackRequest.Validate if the designated constraints aren't met.
func (CallbackRequestValidationError) Cause ¶
func (e CallbackRequestValidationError) Cause() error
Cause function returns cause value.
func (CallbackRequestValidationError) Error ¶
func (e CallbackRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CallbackRequestValidationError) ErrorName ¶
func (e CallbackRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CallbackRequestValidationError) Field ¶
func (e CallbackRequestValidationError) Field() string
Field function returns field value.
func (CallbackRequestValidationError) Key ¶
func (e CallbackRequestValidationError) Key() bool
Key function returns key value.
func (CallbackRequestValidationError) Reason ¶
func (e CallbackRequestValidationError) Reason() string
Reason function returns reason value.
type GetRequest ¶ added in v2.17.1
type GetRequest struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` PaymentId string `protobuf:"bytes,2,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty"` LiqpayOrderId string `protobuf:"bytes,3,opt,name=liqpay_order_id,json=liqpayOrderId,proto3" json:"liqpay_order_id,omitempty"` }
func (*GetRequest) Descriptor ¶ added in v2.17.1
func (*GetRequest) Descriptor() ([]byte, []int)
func (*GetRequest) GetLiqpayOrderId ¶ added in v2.17.1
func (m *GetRequest) GetLiqpayOrderId() string
func (*GetRequest) GetOrderId ¶ added in v2.17.1
func (m *GetRequest) GetOrderId() string
func (*GetRequest) GetPaymentId ¶ added in v2.17.1
func (m *GetRequest) GetPaymentId() string
func (*GetRequest) ProtoMessage ¶ added in v2.17.1
func (*GetRequest) ProtoMessage()
func (*GetRequest) Reset ¶ added in v2.17.1
func (m *GetRequest) Reset()
func (*GetRequest) String ¶ added in v2.17.1
func (m *GetRequest) String() string
func (*GetRequest) Validate ¶ added in v2.17.1
func (m *GetRequest) Validate() error
Validate checks the field values on GetRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*GetRequest) XXX_DiscardUnknown ¶ added in v2.17.1
func (m *GetRequest) XXX_DiscardUnknown()
func (*GetRequest) XXX_Marshal ¶ added in v2.17.1
func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetRequest) XXX_Merge ¶ added in v2.17.1
func (m *GetRequest) XXX_Merge(src proto.Message)
func (*GetRequest) XXX_Size ¶ added in v2.17.1
func (m *GetRequest) XXX_Size() int
func (*GetRequest) XXX_Unmarshal ¶ added in v2.17.1
func (m *GetRequest) XXX_Unmarshal(b []byte) error
type GetRequestValidationError ¶ added in v2.17.1
type GetRequestValidationError struct {
// contains filtered or unexported fields
}
GetRequestValidationError is the validation error returned by GetRequest.Validate if the designated constraints aren't met.
func (GetRequestValidationError) Cause ¶ added in v2.17.1
func (e GetRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRequestValidationError) Error ¶ added in v2.17.1
func (e GetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRequestValidationError) ErrorName ¶ added in v2.17.1
func (e GetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRequestValidationError) Field ¶ added in v2.17.1
func (e GetRequestValidationError) Field() string
Field function returns field value.
func (GetRequestValidationError) Key ¶ added in v2.17.1
func (e GetRequestValidationError) Key() bool
Key function returns key value.
func (GetRequestValidationError) Reason ¶ added in v2.17.1
func (e GetRequestValidationError) Reason() string
Reason function returns reason value.
type HoldUrlRequest ¶ added in v2.17.1
type HoldUrlRequest struct { OrderUuid string `protobuf:"bytes,1,opt,name=order_uuid,json=orderUuid,proto3" json:"order_uuid,omitempty"` Url *HoldUrlRequest_Url `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` }
func (*HoldUrlRequest) Descriptor ¶ added in v2.17.1
func (*HoldUrlRequest) Descriptor() ([]byte, []int)
func (*HoldUrlRequest) GetLanguage ¶ added in v2.17.1
func (m *HoldUrlRequest) GetLanguage() string
func (*HoldUrlRequest) GetOrderUuid ¶ added in v2.17.1
func (m *HoldUrlRequest) GetOrderUuid() string
func (*HoldUrlRequest) GetUrl ¶ added in v2.17.1
func (m *HoldUrlRequest) GetUrl() *HoldUrlRequest_Url
func (*HoldUrlRequest) ProtoMessage ¶ added in v2.17.1
func (*HoldUrlRequest) ProtoMessage()
func (*HoldUrlRequest) Reset ¶ added in v2.17.1
func (m *HoldUrlRequest) Reset()
func (*HoldUrlRequest) String ¶ added in v2.17.1
func (m *HoldUrlRequest) String() string
func (*HoldUrlRequest) Validate ¶ added in v2.17.1
func (m *HoldUrlRequest) Validate() error
Validate checks the field values on HoldUrlRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HoldUrlRequest) XXX_DiscardUnknown ¶ added in v2.17.1
func (m *HoldUrlRequest) XXX_DiscardUnknown()
func (*HoldUrlRequest) XXX_Marshal ¶ added in v2.17.1
func (m *HoldUrlRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HoldUrlRequest) XXX_Merge ¶ added in v2.17.1
func (m *HoldUrlRequest) XXX_Merge(src proto.Message)
func (*HoldUrlRequest) XXX_Size ¶ added in v2.17.1
func (m *HoldUrlRequest) XXX_Size() int
func (*HoldUrlRequest) XXX_Unmarshal ¶ added in v2.17.1
func (m *HoldUrlRequest) XXX_Unmarshal(b []byte) error
type HoldUrlRequestValidationError ¶ added in v2.17.1
type HoldUrlRequestValidationError struct {
// contains filtered or unexported fields
}
HoldUrlRequestValidationError is the validation error returned by HoldUrlRequest.Validate if the designated constraints aren't met.
func (HoldUrlRequestValidationError) Cause ¶ added in v2.17.1
func (e HoldUrlRequestValidationError) Cause() error
Cause function returns cause value.
func (HoldUrlRequestValidationError) Error ¶ added in v2.17.1
func (e HoldUrlRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HoldUrlRequestValidationError) ErrorName ¶ added in v2.17.1
func (e HoldUrlRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HoldUrlRequestValidationError) Field ¶ added in v2.17.1
func (e HoldUrlRequestValidationError) Field() string
Field function returns field value.
func (HoldUrlRequestValidationError) Key ¶ added in v2.17.1
func (e HoldUrlRequestValidationError) Key() bool
Key function returns key value.
func (HoldUrlRequestValidationError) Reason ¶ added in v2.17.1
func (e HoldUrlRequestValidationError) Reason() string
Reason function returns reason value.
type HoldUrlRequest_Url ¶ added in v2.17.1
type HoldUrlRequest_Url struct { Result string `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` Server string `protobuf:"bytes,2,opt,name=server,proto3" json:"server,omitempty"` }
func (*HoldUrlRequest_Url) Descriptor ¶ added in v2.17.1
func (*HoldUrlRequest_Url) Descriptor() ([]byte, []int)
func (*HoldUrlRequest_Url) GetResult ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) GetResult() string
func (*HoldUrlRequest_Url) GetServer ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) GetServer() string
func (*HoldUrlRequest_Url) ProtoMessage ¶ added in v2.17.1
func (*HoldUrlRequest_Url) ProtoMessage()
func (*HoldUrlRequest_Url) Reset ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) Reset()
func (*HoldUrlRequest_Url) String ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) String() string
func (*HoldUrlRequest_Url) Validate ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) Validate() error
Validate checks the field values on HoldUrlRequest_Url with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HoldUrlRequest_Url) XXX_DiscardUnknown ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) XXX_DiscardUnknown()
func (*HoldUrlRequest_Url) XXX_Marshal ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HoldUrlRequest_Url) XXX_Merge ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) XXX_Merge(src proto.Message)
func (*HoldUrlRequest_Url) XXX_Size ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) XXX_Size() int
func (*HoldUrlRequest_Url) XXX_Unmarshal ¶ added in v2.17.1
func (m *HoldUrlRequest_Url) XXX_Unmarshal(b []byte) error
type HoldUrlRequest_UrlValidationError ¶ added in v2.17.1
type HoldUrlRequest_UrlValidationError struct {
// contains filtered or unexported fields
}
HoldUrlRequest_UrlValidationError is the validation error returned by HoldUrlRequest_Url.Validate if the designated constraints aren't met.
func (HoldUrlRequest_UrlValidationError) Cause ¶ added in v2.17.1
func (e HoldUrlRequest_UrlValidationError) Cause() error
Cause function returns cause value.
func (HoldUrlRequest_UrlValidationError) Error ¶ added in v2.17.1
func (e HoldUrlRequest_UrlValidationError) Error() string
Error satisfies the builtin error interface
func (HoldUrlRequest_UrlValidationError) ErrorName ¶ added in v2.17.1
func (e HoldUrlRequest_UrlValidationError) ErrorName() string
ErrorName returns error name.
func (HoldUrlRequest_UrlValidationError) Field ¶ added in v2.17.1
func (e HoldUrlRequest_UrlValidationError) Field() string
Field function returns field value.
func (HoldUrlRequest_UrlValidationError) Key ¶ added in v2.17.1
func (e HoldUrlRequest_UrlValidationError) Key() bool
Key function returns key value.
func (HoldUrlRequest_UrlValidationError) Reason ¶ added in v2.17.1
func (e HoldUrlRequest_UrlValidationError) Reason() string
Reason function returns reason value.
type HoldUrlResponse ¶ added in v2.17.1
type HoldUrlResponse struct {
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}
func (*HoldUrlResponse) Descriptor ¶ added in v2.17.1
func (*HoldUrlResponse) Descriptor() ([]byte, []int)
func (*HoldUrlResponse) GetUrl ¶ added in v2.17.1
func (m *HoldUrlResponse) GetUrl() string
func (*HoldUrlResponse) ProtoMessage ¶ added in v2.17.1
func (*HoldUrlResponse) ProtoMessage()
func (*HoldUrlResponse) Reset ¶ added in v2.17.1
func (m *HoldUrlResponse) Reset()
func (*HoldUrlResponse) String ¶ added in v2.17.1
func (m *HoldUrlResponse) String() string
func (*HoldUrlResponse) Validate ¶ added in v2.17.1
func (m *HoldUrlResponse) Validate() error
Validate checks the field values on HoldUrlResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HoldUrlResponse) XXX_DiscardUnknown ¶ added in v2.17.1
func (m *HoldUrlResponse) XXX_DiscardUnknown()
func (*HoldUrlResponse) XXX_Marshal ¶ added in v2.17.1
func (m *HoldUrlResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HoldUrlResponse) XXX_Merge ¶ added in v2.17.1
func (m *HoldUrlResponse) XXX_Merge(src proto.Message)
func (*HoldUrlResponse) XXX_Size ¶ added in v2.17.1
func (m *HoldUrlResponse) XXX_Size() int
func (*HoldUrlResponse) XXX_Unmarshal ¶ added in v2.17.1
func (m *HoldUrlResponse) XXX_Unmarshal(b []byte) error
type HoldUrlResponseValidationError ¶ added in v2.17.1
type HoldUrlResponseValidationError struct {
// contains filtered or unexported fields
}
HoldUrlResponseValidationError is the validation error returned by HoldUrlResponse.Validate if the designated constraints aren't met.
func (HoldUrlResponseValidationError) Cause ¶ added in v2.17.1
func (e HoldUrlResponseValidationError) Cause() error
Cause function returns cause value.
func (HoldUrlResponseValidationError) Error ¶ added in v2.17.1
func (e HoldUrlResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HoldUrlResponseValidationError) ErrorName ¶ added in v2.17.1
func (e HoldUrlResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HoldUrlResponseValidationError) Field ¶ added in v2.17.1
func (e HoldUrlResponseValidationError) Field() string
Field function returns field value.
func (HoldUrlResponseValidationError) Key ¶ added in v2.17.1
func (e HoldUrlResponseValidationError) Key() bool
Key function returns key value.
func (HoldUrlResponseValidationError) Reason ¶ added in v2.17.1
func (e HoldUrlResponseValidationError) Reason() string
Reason function returns reason value.
type Payment ¶
type Payment struct { // int64 acq_id = 1 [(gogoproto.moretags) = "bson:\"acq_id\""]; // Number ID эквайера Action string `protobuf:"bytes,2,opt,name=action,proto3" json:"action,omitempty" bson:"action"` // double agent_commission = 3 [(gogoproto.moretags) = "bson:\"agent_commission\""]; // Number Комиссия агента в валюте платежа Amount float64 `protobuf:"fixed64,4,opt,name=amount,proto3" json:"amount,omitempty" bson:"amount"` // double amount_bonus = 5 [(gogoproto.moretags) = "bson:\"amount_bonus\""]; // Number Бонус отправителя в валюте платежа debit // double amount_credit = 6 [(gogoproto.moretags) = "bson:\"amount_credit\""]; // Number Сумма транзакции credit в валюте currency_credit // double amount_debit = 7 [(gogoproto.moretags) = "bson:\"amount_debit\""]; // Number Сумма транзакции debit в валюте currency_debit // string authcode_credit = 8 [(gogoproto.moretags) = "bson:\"authcode_credit\""]; // String Код авторизации по транзакции credit // string authcode_debit = 9 [(gogoproto.moretags) = "bson:\"authcode_debit\""]; // String Код авторизации по транзакции debit // string card_token = 10 [(gogoproto.moretags) = "bson:\"card_token\""]; // String Token карты оправителя // double commission_credit = 11 [(gogoproto.moretags) = "bson:\"commission_credit\""]; // Number Комиссия с получателя в валюте currency_credit // double commission_debit = 12 [(gogoproto.moretags) = "bson:\"commission_debit\""]; // Number Комиссия с отправителя в валюте currency_debit // string completion_date = 13 [(gogoproto.moretags) = "bson:\"completion_date\""]; // String Дата списания средств // string create_date = 14 [(gogoproto.moretags) = "bson:\"create_date\""]; // String Дата создания платежа // string currency = 15 [(gogoproto.moretags) = "bson:\"currency\""]; // String Валюта платежа // string currency_credit = 16 [(gogoproto.moretags) = "bson:\"currency_credit\""]; // String Валюта транзакции credit // string currency_debit = 17 [(gogoproto.moretags) = "bson:\"currency_debit\""]; // String Валюта транзакции debit // string customer = 18 [(gogoproto.moretags) = "bson:\"customer\""]; // String Уникальный идентификатор пользователя на сайте мерчанта. Максимальная длина 100 символов Description string `protobuf:"bytes,19,opt,name=description,proto3" json:"description,omitempty" bson:"description"` // string end_date = 20 [(gogoproto.moretags) = "bson:\"end_date\""]; // String Дата завершения/изменения платежа ErrCode string `protobuf:"bytes,21,opt,name=err_code,json=errCode,proto3" json:"err_code,omitempty" bson:"err_code"` ErrDescription string `` /* 127-byte string literal not displayed */ // string info = 23 [(gogoproto.moretags) = "bson:\"info\""]; // String Дополнительная информация о платеже // string ip = 24 [(gogoproto.moretags) = "bson:\"ip\""]; // String IP адрес отправителя // bool is_3ds = 25 [(gogoproto.moretags) = "bson:\"is_3ds\""]; // Boolean Возможные значения: // true - транзакция прошла с 3DS проверкой, // false - транзакция прошла без 3DS проверки LiqpayOrderId string `` /* 126-byte string literal not displayed */ // int64 mpi_eci = 27 [(gogoproto.moretags) = "bson:\"mpi_eci\""]; // Number Возможные значения: 5 - транзакция прошла с 3DS (эмитент и эквайер поддерживают технологию 3D-Secure), 6 - эмитент карты плательщика не поддерживает технологию 3D-Secure, 7 - операция прошла без 3D-Secure OrderId string `protobuf:"bytes,28,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty" bson:"order_id"` PaymentId int64 `protobuf:"varint,29,opt,name=payment_id,json=paymentId,proto3" json:"payment_id,omitempty" bson:"payment_id"` Paytype string `protobuf:"bytes,30,opt,name=paytype,proto3" json:"paytype,omitempty" bson:"paytype"` PublicKey string `protobuf:"bytes,31,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty" bson:"public_key"` // double receiver_commission = 32 [(gogoproto.moretags) = "bson:\"receiver_commission\""]; // Number Комиссия с получателя в валюте платежа // string redirect_to = 33 [(gogoproto.moretags) = "bson:\"redirect_to\""]; // String Ссылка на которую необходимо перенаправить клиента для прохождения 3DS верификации // string refund_date_last = 34 [(gogoproto.moretags) = "bson:\"refund_date_last\""]; // String Дата последнего возврата по платежу // string rrn_credit = 35 [(gogoproto.moretags) = "bson:\"rrn_credit\""]; // String Уникальный номер транзакции в системе авторизации и расчетов обслуживающего банка Retrieval Reference number // string rrn_debit = 36 [(gogoproto.moretags) = "bson:\"rrn_debit\""]; // String Уникальный номер транзакции в системе авторизации и расчетов обслуживающего банка Retrieval Reference number // double sender_bonus = 37 [(gogoproto.moretags) = "bson:\"sender_bonus\""]; // Number Бонус отправителя в валюте платежа // string sender_card_bank = 38 [(gogoproto.moretags) = "bson:\"sender_card_bank\""]; // String Банк отправителя // string sender_card_country = 39 [(gogoproto.moretags) = "bson:\"sender_card_country\""]; // String Страна карты отправителя. Цифровой ISO 3166-1 код // string sender_card_mask2 = 40 [(gogoproto.moretags) = "bson:\"sender_card_mask2\""]; // String Карта отправителя // string sender_card_type = 41 [(gogoproto.moretags) = "bson:\"sender_card_type\""]; // String Тип карты отправителя MC/Visa // double sender_commission = 42 [(gogoproto.moretags) = "bson:\"sender_commission\""]; // Number Комиссия с отправителя в валюте платежа // string sender_first_name = 43 [(gogoproto.moretags) = "bson:\"sender_first_name\""]; // String Имя отправителя // string sender_last_name = 44 [(gogoproto.moretags) = "bson:\"sender_last_name\""]; // String Фамилия отправителя // string sender_phone = 45 [(gogoproto.moretags) = "bson:\"sender_phone\""]; // String Телефон отправителя Status string `protobuf:"bytes,46,opt,name=status,proto3" json:"status,omitempty" bson:"status"` // Возможные значения: // Конечные статусы платежа // error Неуспешный платеж. Некорректно заполнены данные // failure Неуспешный платеж // reversed Платеж возвращен // subscribed Подписка успешно оформлена // success Успешный платеж // unsubscribed Подписка успешно деактивирована // Cтатусы требующие подтверждения платежа // 3ds_verify Требуется 3DS верификация. // Для завершения платежа, требуется выполнить 3ds_verify // captcha_verify Ожидается подтверждение captcha // cvv_verify Требуется ввод CVV карты отправителя. // Для завершения платежа, требуется выполнить cvv_verify // ivr_verify Ожидается подтверждение звонком ivr // otp_verify Требуется OTP подтверждение клиента. OTP пароль отправлен на номер телефона Клиента. // Для завершения платежа, требуется выполнить otp_verify // password_verify Ожидается подтверждение пароля приложения Приват24 // phone_verify Ожидается ввод телефона клиентом. // Для завершения платежа, требуется выполнить phone_verify // pin_verify Ожидается подтверждение pin-code // receiver_verify Требуется ввод данных получателя. // Для завершения платежа, требуется выполнить receiver_verify // sender_verify Требуется ввод данных отправителя. // Для завершения платежа, требуется выполнить sender_verify // senderapp_verify Ожидается подтверждение в приложении Privat24 // wait_qr Ожидается сканирование QR-кода клиентом // wait_sender Ожидается подтверждение оплаты клиентом в приложении Privat24/SENDER // Другие статусы платежа // cash_wait Ожидается оплата наличными в ТСО // hold_wait Сумма успешно заблокирована на счету отправителя // invoice_wait Инвойс создан успешно, ожидается оплата // prepared Платеж создан, ожидается его завершение отправителем // processing Платеж обрабатывается // wait_accept Деньги с клиента списаны, но магазин еще не прошел проверку. Если магазин не пройдет активацию в течение 180 дней, платежи будут автоматически отменены // wait_card Не установлен способ возмещения у получателя // wait_compensation Платеж успешный, будет зачислен в ежесуточной проводке // wait_lc Аккредитив. Деньги с клиента списаны, ожидается подтверждение доставки товара // wait_reserve Средства по платежу зарезервированы для проведения возврата по ранее поданной заявке // wait_secure Платеж на проверке // string token = 47 [(gogoproto.moretags) = "bson:\"token\""]; // String Token платежа Type string `protobuf:"bytes,48,opt,name=type,proto3" json:"type,omitempty" bson:"type"` Version int64 `protobuf:"varint,49,opt,name=version,proto3" json:"version,omitempty" bson:"version"` ErrErc string `protobuf:"bytes,50,opt,name=err_erc,json=errErc,proto3" json:"err_erc,omitempty" bson:"err_erc"` // string product_category = 51 [(gogoproto.moretags) = "bson:\"product_category\""]; // String Категория товара // string product_description = 52 [(gogoproto.moretags) = "bson:\"product_description\""]; // String Описание товара // string product_name = 53 [(gogoproto.moretags) = "bson:\"product_name\""]; // String Название товара // string product_url = 54 [(gogoproto.moretags) = "bson:\"product_url\""]; // String Адрес страницы с товаром RefundAmount float64 `protobuf:"fixed64,55,opt,name=refund_amount,json=refundAmount,proto3" json:"refund_amount,omitempty" bson:"refund_amount"` // string verifycode = 56 [(gogoproto.moretags) = "bson:\"verifycode\""]; // String Код верификации Data [][]byte `protobuf:"bytes,56,rep,name=data,proto3" json:"data,omitempty" bson:"data"` }
func (*Payment) Descriptor ¶
func (*Payment) GetDescription ¶
func (*Payment) GetErrCode ¶
func (*Payment) GetErrDescription ¶
func (*Payment) GetLiqpayOrderId ¶
func (*Payment) GetOrderId ¶
func (*Payment) GetPaymentId ¶
func (*Payment) GetPaytype ¶
func (*Payment) GetPublicKey ¶
func (*Payment) GetRefundAmount ¶
func (*Payment) GetVersion ¶
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 { Get(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*Response, error) HoldUrl(ctx context.Context, in *HoldUrlRequest, opts ...client.CallOption) (*HoldUrlResponse, error) Refund(ctx context.Context, in *RefundRequest, opts ...client.CallOption) (*shared.StatusResponse, error) Callback(ctx context.Context, in *CallbackRequest, opts ...client.CallOption) (*empty.Empty, error) GetStatus(ctx context.Context, in *GetRequest, opts ...client.CallOption) (*shared.StatusResponse, error) }
func NewPaymentService ¶
func NewPaymentService(name string, c client.Client) PaymentService
type PaymentServiceHandler ¶
type PaymentServiceHandler interface { Get(context.Context, *GetRequest, *Response) error HoldUrl(context.Context, *HoldUrlRequest, *HoldUrlResponse) error Refund(context.Context, *RefundRequest, *shared.StatusResponse) error Callback(context.Context, *CallbackRequest, *empty.Empty) error GetStatus(context.Context, *GetRequest, *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 RefundRequest ¶
type RefundRequest struct { PaymentOrderId string `protobuf:"bytes,1,opt,name=payment_order_id,json=paymentOrderId,proto3" json:"payment_order_id,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) GetPaymentOrderId ¶ added in v2.17.1
func (m *RefundRequest) GetPaymentOrderId() 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 Response ¶
type Response struct {
Data *Payment `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (*Response) Descriptor ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) Validate ¶
Validate checks the field values on Response with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*Response) XXX_DiscardUnknown ¶
func (m *Response) XXX_DiscardUnknown()
func (*Response) XXX_Marshal ¶
func (*Response) XXX_Unmarshal ¶
type ResponseValidationError ¶
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.