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 CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)
- func (m *CreateRequest) GetLanguage() string
- func (m *CreateRequest) GetOrderUuid() 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) GetResult() string
- func (m *CreateRequest_Url) GetServer() 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) 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) 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) 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
- 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 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"` Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` }
func (*CreateRequest) Descriptor ¶
func (*CreateRequest) Descriptor() ([]byte, []int)
func (*CreateRequest) GetLanguage ¶
func (m *CreateRequest) GetLanguage() string
func (*CreateRequest) GetOrderUuid ¶
func (m *CreateRequest) GetOrderUuid() 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 { 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 (*CreateRequest_Url) Descriptor ¶
func (*CreateRequest_Url) Descriptor() ([]byte, []int)
func (*CreateRequest_Url) GetResult ¶
func (m *CreateRequest_Url) GetResult() string
func (*CreateRequest_Url) GetServer ¶
func (m *CreateRequest_Url) GetServer() 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 { // 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"` // string public_key = 31 [(gogoproto.moretags) = "bson:\"public_key\""]; // String Публичный ключ магазина // 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) 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 { Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*CreateResponse, error) Get(ctx context.Context, in *Request, opts ...client.CallOption) (*Response, 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) Callback(ctx context.Context, in *CallbackRequest, opts ...client.CallOption) (*empty.Empty, error) GetStatus(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 Get(context.Context, *Request, *Response) error Refund(context.Context, *RefundRequest, *shared.StatusResponse) error Cancel(context.Context, *Request, *shared.StatusResponse) error Finish(context.Context, *Request, *shared.StatusResponse) error Callback(context.Context, *CallbackRequest, *empty.Empty) error GetStatus(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 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.
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.