payment

package
v0.0.0-...-3414fa2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePaymentLogic

type CreatePaymentLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreatePaymentLogic

func NewCreatePaymentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreatePaymentLogic

func (*CreatePaymentLogic) CreatePayment

func (l *CreatePaymentLogic) CreatePayment(req *types.CreatePaymentReq) (resp *types.CreatePaymentResp, err error)

type GetPaymentStatusLogic

type GetPaymentStatusLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetPaymentStatusLogic

func NewGetPaymentStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPaymentStatusLogic

func (*GetPaymentStatusLogic) GetPaymentStatus

func (l *GetPaymentStatusLogic) GetPaymentStatus(req *types.PaymentStatusReq) (resp *types.PaymentStatusResp, err error)

type GetRefundStatusLogic

type GetRefundStatusLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetRefundStatusLogic

func NewGetRefundStatusLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetRefundStatusLogic

func (*GetRefundStatusLogic) GetRefundStatus

func (l *GetRefundStatusLogic) GetRefundStatus(req *types.RefundStatusReq) (resp *types.RefundStatusResp, err error)

type Payment

type Payment struct {
	mock.Mock
}

Payment is an autogenerated mock type for the Payment type

func NewPayment

func NewPayment(t interface {
	mock.TestingT
	Cleanup(func())
}) *Payment

NewPayment creates a new instance of Payment. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Payment) CreatePayment

CreatePayment provides a mock function with given fields: ctx, in, opts

func (*Payment) CreatePaymentChannel

CreatePaymentChannel provides a mock function with given fields: ctx, in, opts

func (*Payment) CreateRefund

CreateRefund provides a mock function with given fields: ctx, in, opts

func (*Payment) EXPECT

func (_m *Payment) EXPECT() *Payment_Expecter

func (*Payment) GetPayment

GetPayment provides a mock function with given fields: ctx, in, opts

func (*Payment) GetPaymentStatus

GetPaymentStatus provides a mock function with given fields: ctx, in, opts

func (*Payment) GetRefund

GetRefund provides a mock function with given fields: ctx, in, opts

func (*Payment) ListPaymentChannels

ListPaymentChannels provides a mock function with given fields: ctx, in, opts

func (*Payment) PaymentNotify

PaymentNotify provides a mock function with given fields: ctx, in, opts

func (*Payment) RefundNotify

RefundNotify provides a mock function with given fields: ctx, in, opts

func (*Payment) UpdatePaymentChannel

UpdatePaymentChannel provides a mock function with given fields: ctx, in, opts

type PaymentNotifyLogic

type PaymentNotifyLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPaymentNotifyLogic

func NewPaymentNotifyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PaymentNotifyLogic

func (*PaymentNotifyLogic) PaymentNotify

func (l *PaymentNotifyLogic) PaymentNotify(req *types.PaymentNotifyReq) (resp *types.PaymentNotifyResp, err error)

type Payment_CreatePaymentChannel_Call

type Payment_CreatePaymentChannel_Call struct {
	*mock.Call
}

Payment_CreatePaymentChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePaymentChannel'

func (*Payment_CreatePaymentChannel_Call) Return

func (*Payment_CreatePaymentChannel_Call) Run

type Payment_CreatePayment_Call

type Payment_CreatePayment_Call struct {
	*mock.Call
}

Payment_CreatePayment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreatePayment'

func (*Payment_CreatePayment_Call) Return

func (*Payment_CreatePayment_Call) Run

type Payment_CreateRefund_Call

type Payment_CreateRefund_Call struct {
	*mock.Call
}

Payment_CreateRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRefund'

func (*Payment_CreateRefund_Call) Return

func (*Payment_CreateRefund_Call) Run

type Payment_Expecter

type Payment_Expecter struct {
	// contains filtered or unexported fields
}

func (*Payment_Expecter) CreatePayment

func (_e *Payment_Expecter) CreatePayment(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreatePayment_Call

CreatePayment is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.CreatePaymentRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) CreatePaymentChannel

func (_e *Payment_Expecter) CreatePaymentChannel(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreatePaymentChannel_Call

CreatePaymentChannel is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.CreatePaymentChannelRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) CreateRefund

func (_e *Payment_Expecter) CreateRefund(ctx interface{}, in interface{}, opts ...interface{}) *Payment_CreateRefund_Call

CreateRefund is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.CreateRefundRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) GetPayment

func (_e *Payment_Expecter) GetPayment(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetPayment_Call

GetPayment is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.GetPaymentRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) GetPaymentStatus

func (_e *Payment_Expecter) GetPaymentStatus(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetPaymentStatus_Call

GetPaymentStatus is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.GetPaymentStatusRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) GetRefund

func (_e *Payment_Expecter) GetRefund(ctx interface{}, in interface{}, opts ...interface{}) *Payment_GetRefund_Call

GetRefund is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.GetRefundRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) ListPaymentChannels

func (_e *Payment_Expecter) ListPaymentChannels(ctx interface{}, in interface{}, opts ...interface{}) *Payment_ListPaymentChannels_Call

ListPaymentChannels is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.ListPaymentChannelsRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) PaymentNotify

func (_e *Payment_Expecter) PaymentNotify(ctx interface{}, in interface{}, opts ...interface{}) *Payment_PaymentNotify_Call

PaymentNotify is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.PaymentNotifyRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) RefundNotify

func (_e *Payment_Expecter) RefundNotify(ctx interface{}, in interface{}, opts ...interface{}) *Payment_RefundNotify_Call

RefundNotify is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.RefundNotifyRequest
  • opts ...grpc.CallOption

func (*Payment_Expecter) UpdatePaymentChannel

func (_e *Payment_Expecter) UpdatePaymentChannel(ctx interface{}, in interface{}, opts ...interface{}) *Payment_UpdatePaymentChannel_Call

UpdatePaymentChannel is a helper method to define mock.On call

  • ctx context.Context
  • in *payment.UpdatePaymentChannelRequest
  • opts ...grpc.CallOption

type Payment_GetPaymentStatus_Call

type Payment_GetPaymentStatus_Call struct {
	*mock.Call
}

Payment_GetPaymentStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPaymentStatus'

func (*Payment_GetPaymentStatus_Call) Return

func (*Payment_GetPaymentStatus_Call) Run

type Payment_GetPayment_Call

type Payment_GetPayment_Call struct {
	*mock.Call
}

Payment_GetPayment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPayment'

func (*Payment_GetPayment_Call) Return

func (*Payment_GetPayment_Call) Run

type Payment_GetRefund_Call

type Payment_GetRefund_Call struct {
	*mock.Call
}

Payment_GetRefund_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRefund'

func (*Payment_GetRefund_Call) Return

func (*Payment_GetRefund_Call) Run

type Payment_ListPaymentChannels_Call

type Payment_ListPaymentChannels_Call struct {
	*mock.Call
}

Payment_ListPaymentChannels_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListPaymentChannels'

func (*Payment_ListPaymentChannels_Call) Return

func (*Payment_ListPaymentChannels_Call) Run

type Payment_PaymentNotify_Call

type Payment_PaymentNotify_Call struct {
	*mock.Call
}

Payment_PaymentNotify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PaymentNotify'

func (*Payment_PaymentNotify_Call) Return

func (*Payment_PaymentNotify_Call) Run

type Payment_RefundNotify_Call

type Payment_RefundNotify_Call struct {
	*mock.Call
}

Payment_RefundNotify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RefundNotify'

func (*Payment_RefundNotify_Call) Return

func (*Payment_RefundNotify_Call) Run

type Payment_UpdatePaymentChannel_Call

type Payment_UpdatePaymentChannel_Call struct {
	*mock.Call
}

Payment_UpdatePaymentChannel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePaymentChannel'

func (*Payment_UpdatePaymentChannel_Call) Return

func (*Payment_UpdatePaymentChannel_Call) Run

type RefundNotifyLogic

type RefundNotifyLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewRefundNotifyLogic

func NewRefundNotifyLogic(ctx context.Context, svcCtx *svc.ServiceContext) *RefundNotifyLogic

func (*RefundNotifyLogic) RefundNotify

func (l *RefundNotifyLogic) RefundNotify(req *types.RefundNotifyReq) (resp *types.RefundNotifyResp, err error)

Jump to

Keyboard shortcuts

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