paymentmocks

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: service.go

Generated by this command:

mockgen -source=service.go -package=paymentmocks -destination=../../mocks/payment.mock.go -typed Service

Package paymentmocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

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

MockService is a mock of Service interface.

func NewMockService

func NewMockService(ctrl *gomock.Controller) *MockService

NewMockService creates a new mock instance.

func (*MockService) CloseTimeoutPayment

func (m *MockService) CloseTimeoutPayment(ctx context.Context, pmt domain.Payment) error

CloseTimeoutPayment mocks base method.

func (*MockService) CreatePayment

func (m *MockService) CreatePayment(ctx context.Context, pmt domain.Payment) (domain.Payment, error)

CreatePayment mocks base method.

func (*MockService) EXPECT

func (m *MockService) EXPECT() *MockServiceMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockService) FindPaymentByID

func (m *MockService) FindPaymentByID(ctx context.Context, pmtID int64) (domain.Payment, error)

FindPaymentByID mocks base method.

func (*MockService) FindTimeoutPayments

func (m *MockService) FindTimeoutPayments(ctx context.Context, offset, limit int, ctime int64) ([]domain.Payment, int64, error)

FindTimeoutPayments mocks base method.

func (*MockService) GetPaymentChannels

func (m *MockService) GetPaymentChannels(ctx context.Context) []domain.PaymentChannel

GetPaymentChannels mocks base method.

func (*MockService) HandleCreditCallback

func (m *MockService) HandleCreditCallback(ctx context.Context, pmt domain.Payment) error

HandleCreditCallback mocks base method.

func (*MockService) HandleWechatCallback

func (m *MockService) HandleWechatCallback(ctx context.Context, txn *payments.Transaction) error

HandleWechatCallback mocks base method.

func (*MockService) PayByID

func (m *MockService) PayByID(ctx context.Context, pmtID int64) (domain.Payment, error)

PayByID mocks base method.

func (*MockService) SetPaymentStatusPaidFailed

func (m *MockService) SetPaymentStatusPaidFailed(ctx context.Context, pmt *domain.Payment) error

SetPaymentStatusPaidFailed mocks base method.

func (*MockService) SyncWechatInfo

func (m *MockService) SyncWechatInfo(ctx context.Context, pmt domain.Payment) error

SyncWechatInfo mocks base method.

type MockServiceMockRecorder

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

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) CloseTimeoutPayment

func (mr *MockServiceMockRecorder) CloseTimeoutPayment(ctx, pmt any) *ServiceCloseTimeoutPaymentCall

CloseTimeoutPayment indicates an expected call of CloseTimeoutPayment.

func (*MockServiceMockRecorder) CreatePayment

func (mr *MockServiceMockRecorder) CreatePayment(ctx, pmt any) *ServiceCreatePaymentCall

CreatePayment indicates an expected call of CreatePayment.

func (*MockServiceMockRecorder) FindPaymentByID

func (mr *MockServiceMockRecorder) FindPaymentByID(ctx, pmtID any) *ServiceFindPaymentByIDCall

FindPaymentByID indicates an expected call of FindPaymentByID.

func (*MockServiceMockRecorder) FindTimeoutPayments

func (mr *MockServiceMockRecorder) FindTimeoutPayments(ctx, offset, limit, ctime any) *ServiceFindTimeoutPaymentsCall

FindTimeoutPayments indicates an expected call of FindTimeoutPayments.

func (*MockServiceMockRecorder) GetPaymentChannels

func (mr *MockServiceMockRecorder) GetPaymentChannels(ctx any) *ServiceGetPaymentChannelsCall

GetPaymentChannels indicates an expected call of GetPaymentChannels.

func (*MockServiceMockRecorder) HandleCreditCallback

func (mr *MockServiceMockRecorder) HandleCreditCallback(ctx, pmt any) *ServiceHandleCreditCallbackCall

HandleCreditCallback indicates an expected call of HandleCreditCallback.

func (*MockServiceMockRecorder) HandleWechatCallback

func (mr *MockServiceMockRecorder) HandleWechatCallback(ctx, txn any) *ServiceHandleWechatCallbackCall

HandleWechatCallback indicates an expected call of HandleWechatCallback.

func (*MockServiceMockRecorder) PayByID

func (mr *MockServiceMockRecorder) PayByID(ctx, pmtID any) *ServicePayByIDCall

PayByID indicates an expected call of PayByID.

func (*MockServiceMockRecorder) SetPaymentStatusPaidFailed

func (mr *MockServiceMockRecorder) SetPaymentStatusPaidFailed(ctx, pmt any) *ServiceSetPaymentStatusPaidFailedCall

SetPaymentStatusPaidFailed indicates an expected call of SetPaymentStatusPaidFailed.

func (*MockServiceMockRecorder) SyncWechatInfo

func (mr *MockServiceMockRecorder) SyncWechatInfo(ctx, pmt any) *ServiceSyncWechatInfoCall

SyncWechatInfo indicates an expected call of SyncWechatInfo.

type ServiceCloseTimeoutPaymentCall

type ServiceCloseTimeoutPaymentCall struct {
	*gomock.Call
}

ServiceCloseTimeoutPaymentCall wrap *gomock.Call

func (*ServiceCloseTimeoutPaymentCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceCloseTimeoutPaymentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceCloseTimeoutPaymentCall) Return

Return rewrite *gomock.Call.Return

type ServiceCreatePaymentCall

type ServiceCreatePaymentCall struct {
	*gomock.Call
}

ServiceCreatePaymentCall wrap *gomock.Call

func (*ServiceCreatePaymentCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceCreatePaymentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceCreatePaymentCall) Return

Return rewrite *gomock.Call.Return

type ServiceFindPaymentByIDCall

type ServiceFindPaymentByIDCall struct {
	*gomock.Call
}

ServiceFindPaymentByIDCall wrap *gomock.Call

func (*ServiceFindPaymentByIDCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFindPaymentByIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFindPaymentByIDCall) Return

Return rewrite *gomock.Call.Return

type ServiceFindTimeoutPaymentsCall

type ServiceFindTimeoutPaymentsCall struct {
	*gomock.Call
}

ServiceFindTimeoutPaymentsCall wrap *gomock.Call

func (*ServiceFindTimeoutPaymentsCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceFindTimeoutPaymentsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceFindTimeoutPaymentsCall) Return

Return rewrite *gomock.Call.Return

type ServiceGetPaymentChannelsCall

type ServiceGetPaymentChannelsCall struct {
	*gomock.Call
}

ServiceGetPaymentChannelsCall wrap *gomock.Call

func (*ServiceGetPaymentChannelsCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceGetPaymentChannelsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceGetPaymentChannelsCall) Return

Return rewrite *gomock.Call.Return

type ServiceHandleCreditCallbackCall

type ServiceHandleCreditCallbackCall struct {
	*gomock.Call
}

ServiceHandleCreditCallbackCall wrap *gomock.Call

func (*ServiceHandleCreditCallbackCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceHandleCreditCallbackCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceHandleCreditCallbackCall) Return

Return rewrite *gomock.Call.Return

type ServiceHandleWechatCallbackCall

type ServiceHandleWechatCallbackCall struct {
	*gomock.Call
}

ServiceHandleWechatCallbackCall wrap *gomock.Call

func (*ServiceHandleWechatCallbackCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceHandleWechatCallbackCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceHandleWechatCallbackCall) Return

Return rewrite *gomock.Call.Return

type ServicePayByIDCall

type ServicePayByIDCall struct {
	*gomock.Call
}

ServicePayByIDCall wrap *gomock.Call

func (*ServicePayByIDCall) Do

Do rewrite *gomock.Call.Do

func (*ServicePayByIDCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServicePayByIDCall) Return

func (c *ServicePayByIDCall) Return(arg0 domain.Payment, arg1 error) *ServicePayByIDCall

Return rewrite *gomock.Call.Return

type ServiceSetPaymentStatusPaidFailedCall

type ServiceSetPaymentStatusPaidFailedCall struct {
	*gomock.Call
}

ServiceSetPaymentStatusPaidFailedCall wrap *gomock.Call

func (*ServiceSetPaymentStatusPaidFailedCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceSetPaymentStatusPaidFailedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceSetPaymentStatusPaidFailedCall) Return

Return rewrite *gomock.Call.Return

type ServiceSyncWechatInfoCall

type ServiceSyncWechatInfoCall struct {
	*gomock.Call
}

ServiceSyncWechatInfoCall wrap *gomock.Call

func (*ServiceSyncWechatInfoCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceSyncWechatInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceSyncWechatInfoCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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