fs_srv_payments

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_payments_payments_proto protoreflect.FileDescriptor

Functions

func NewPaymentsEndpoints added in v1.2.0

func NewPaymentsEndpoints() []*api.Endpoint

func RegisterPaymentsHandler

func RegisterPaymentsHandler(s server.Server, hdlr PaymentsHandler, opts ...server.HandlerOption) error

Types

type CreateRequest

type CreateRequest struct {
	PaymentTypeId int32   `protobuf:"varint,1,opt,name=paymentTypeId,proto3" json:"paymentTypeId,omitempty"`
	Price         float64 `protobuf:"fixed64,2,opt,name=price,proto3" json:"price,omitempty"`
	Comment       string  `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
	ClientId      int32   `protobuf:"varint,4,opt,name=clientId,proto3" json:"clientId,omitempty"`
	ServiceId     int32   `protobuf:"varint,5,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
	ManagerId     int32   `protobuf:"varint,6,opt,name=managerId,proto3" json:"managerId,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

func (*CreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetClientId

func (x *CreateRequest) GetClientId() int32

func (*CreateRequest) GetComment

func (x *CreateRequest) GetComment() string

func (*CreateRequest) GetManagerId

func (x *CreateRequest) GetManagerId() int32

func (*CreateRequest) GetPaymentTypeId

func (x *CreateRequest) GetPaymentTypeId() int32

func (*CreateRequest) GetPrice

func (x *CreateRequest) GetPrice() float64

func (*CreateRequest) GetServiceId

func (x *CreateRequest) GetServiceId() int32

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

func (x *CreateRequest) ProtoReflect() protoreflect.Message

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateReturnPaymentRequest

type CreateReturnPaymentRequest struct {
	PaymentId int32  `protobuf:"varint,1,opt,name=paymentId,proto3" json:"paymentId,omitempty"`
	ManagerId int32  `protobuf:"varint,2,opt,name=managerId,proto3" json:"managerId,omitempty"`
	Comment   string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateReturnPaymentRequest) Descriptor deprecated

func (*CreateReturnPaymentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateReturnPaymentRequest.ProtoReflect.Descriptor instead.

func (*CreateReturnPaymentRequest) GetComment

func (x *CreateReturnPaymentRequest) GetComment() string

func (*CreateReturnPaymentRequest) GetManagerId

func (x *CreateReturnPaymentRequest) GetManagerId() int32

func (*CreateReturnPaymentRequest) GetPaymentId

func (x *CreateReturnPaymentRequest) GetPaymentId() int32

func (*CreateReturnPaymentRequest) ProtoMessage

func (*CreateReturnPaymentRequest) ProtoMessage()

func (*CreateReturnPaymentRequest) ProtoReflect

func (*CreateReturnPaymentRequest) Reset

func (x *CreateReturnPaymentRequest) Reset()

func (*CreateReturnPaymentRequest) String

func (x *CreateReturnPaymentRequest) String() string

type PaymentResponse

type PaymentResponse struct {
	Id            int32   `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Active        bool    `protobuf:"varint,2,opt,name=active,proto3" json:"active,omitempty"`
	Price         float64 `protobuf:"fixed64,3,opt,name=price,proto3" json:"price,omitempty"`
	Comment       string  `protobuf:"bytes,4,opt,name=comment,proto3" json:"comment,omitempty"`
	PaymentTypeId int32   `protobuf:"varint,5,opt,name=paymentTypeId,proto3" json:"paymentTypeId,omitempty"`
	ManagerId     int32   `protobuf:"varint,6,opt,name=managerId,proto3" json:"managerId,omitempty"`
	ServiceId     int32   `protobuf:"varint,7,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
	ClientId      int32   `protobuf:"varint,8,opt,name=clientId,proto3" json:"clientId,omitempty"`
	ParentId      int32   `protobuf:"varint,9,opt,name=parentId,proto3" json:"parentId,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentResponse) Descriptor deprecated

func (*PaymentResponse) Descriptor() ([]byte, []int)

Deprecated: Use PaymentResponse.ProtoReflect.Descriptor instead.

func (*PaymentResponse) GetActive

func (x *PaymentResponse) GetActive() bool

func (*PaymentResponse) GetClientId

func (x *PaymentResponse) GetClientId() int32

func (*PaymentResponse) GetComment

func (x *PaymentResponse) GetComment() string

func (*PaymentResponse) GetId

func (x *PaymentResponse) GetId() int32

func (*PaymentResponse) GetManagerId

func (x *PaymentResponse) GetManagerId() int32

func (*PaymentResponse) GetParentId

func (x *PaymentResponse) GetParentId() int32

func (*PaymentResponse) GetPaymentTypeId

func (x *PaymentResponse) GetPaymentTypeId() int32

func (*PaymentResponse) GetPrice

func (x *PaymentResponse) GetPrice() float64

func (*PaymentResponse) GetServiceId

func (x *PaymentResponse) GetServiceId() int32

func (*PaymentResponse) ProtoMessage

func (*PaymentResponse) ProtoMessage()

func (*PaymentResponse) ProtoReflect

func (x *PaymentResponse) ProtoReflect() protoreflect.Message

func (*PaymentResponse) Reset

func (x *PaymentResponse) Reset()

func (*PaymentResponse) String

func (x *PaymentResponse) String() string

type PaymentsService

type PaymentsService interface {
	Create(ctx context.Context, in *CreateRequest, opts ...client.CallOption) (*PaymentResponse, error)
	CreateReturnPayment(ctx context.Context, in *CreateReturnPaymentRequest, opts ...client.CallOption) (*PaymentResponse, error)
	UpdateClientIdByServiceId(ctx context.Context, in *UpdateClientIdByServiceIdRequest, opts ...client.CallOption) (*PaymentResponse, error)
}

func NewPaymentsService

func NewPaymentsService(name string, c client.Client) PaymentsService

type UpdateClientIdByServiceIdRequest added in v1.3.0

type UpdateClientIdByServiceIdRequest struct {
	ServiceId int32 `protobuf:"varint,1,opt,name=serviceId,proto3" json:"serviceId,omitempty"`
	ClientId  int32 `protobuf:"varint,2,opt,name=clientId,proto3" json:"clientId,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateClientIdByServiceIdRequest) Descriptor deprecated added in v1.3.0

func (*UpdateClientIdByServiceIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateClientIdByServiceIdRequest.ProtoReflect.Descriptor instead.

func (*UpdateClientIdByServiceIdRequest) GetClientId added in v1.3.0

func (x *UpdateClientIdByServiceIdRequest) GetClientId() int32

func (*UpdateClientIdByServiceIdRequest) GetServiceId added in v1.3.0

func (x *UpdateClientIdByServiceIdRequest) GetServiceId() int32

func (*UpdateClientIdByServiceIdRequest) ProtoMessage added in v1.3.0

func (*UpdateClientIdByServiceIdRequest) ProtoMessage()

func (*UpdateClientIdByServiceIdRequest) ProtoReflect added in v1.3.0

func (*UpdateClientIdByServiceIdRequest) Reset added in v1.3.0

func (*UpdateClientIdByServiceIdRequest) String added in v1.3.0

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL