mocks

package
v3.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebCartPaymentGateway

type WebCartPaymentGateway struct {
	mock.Mock
}

WebCartPaymentGateway is an autogenerated mock type for the WebCartPaymentGateway type

func NewWebCartPaymentGateway added in v3.7.0

func NewWebCartPaymentGateway(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebCartPaymentGateway

NewWebCartPaymentGateway creates a new instance of WebCartPaymentGateway. 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 (*WebCartPaymentGateway) CancelOrderPayment

func (_m *WebCartPaymentGateway) CancelOrderPayment(ctx context.Context, cartPayment *placeorder.Payment) error

CancelOrderPayment provides a mock function with given fields: ctx, cartPayment

func (*WebCartPaymentGateway) ConfirmResult

func (_m *WebCartPaymentGateway) ConfirmResult(ctx context.Context, _a1 *cart.Cart, cartPayment *placeorder.Payment) error

ConfirmResult provides a mock function with given fields: ctx, _a1, cartPayment

func (*WebCartPaymentGateway) EXPECT added in v3.7.0

func (*WebCartPaymentGateway) FlowStatus

func (_m *WebCartPaymentGateway) FlowStatus(ctx context.Context, _a1 *cart.Cart, correlationID string) (*domain.FlowStatus, error)

FlowStatus provides a mock function with given fields: ctx, _a1, correlationID

func (*WebCartPaymentGateway) Methods

func (_m *WebCartPaymentGateway) Methods() []domain.Method

Methods provides a mock function with given fields:

func (*WebCartPaymentGateway) OrderPaymentFromFlow

func (_m *WebCartPaymentGateway) OrderPaymentFromFlow(ctx context.Context, _a1 *cart.Cart, correlationID string) (*placeorder.Payment, error)

OrderPaymentFromFlow provides a mock function with given fields: ctx, _a1, correlationID

func (*WebCartPaymentGateway) StartFlow

func (_m *WebCartPaymentGateway) StartFlow(ctx context.Context, _a1 *cart.Cart, correlationID string, returnURL *url.URL) (*domain.FlowResult, error)

StartFlow provides a mock function with given fields: ctx, _a1, correlationID, returnURL

type WebCartPaymentGateway_CancelOrderPayment_Call added in v3.7.0

type WebCartPaymentGateway_CancelOrderPayment_Call struct {
	*mock.Call
}

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

func (*WebCartPaymentGateway_CancelOrderPayment_Call) Return added in v3.7.0

func (*WebCartPaymentGateway_CancelOrderPayment_Call) Run added in v3.7.0

func (*WebCartPaymentGateway_CancelOrderPayment_Call) RunAndReturn added in v3.7.0

type WebCartPaymentGateway_ConfirmResult_Call added in v3.7.0

type WebCartPaymentGateway_ConfirmResult_Call struct {
	*mock.Call
}

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

func (*WebCartPaymentGateway_ConfirmResult_Call) Return added in v3.7.0

func (*WebCartPaymentGateway_ConfirmResult_Call) Run added in v3.7.0

func (*WebCartPaymentGateway_ConfirmResult_Call) RunAndReturn added in v3.7.0

type WebCartPaymentGateway_Expecter added in v3.7.0

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

func (*WebCartPaymentGateway_Expecter) CancelOrderPayment added in v3.7.0

func (_e *WebCartPaymentGateway_Expecter) CancelOrderPayment(ctx interface{}, cartPayment interface{}) *WebCartPaymentGateway_CancelOrderPayment_Call

CancelOrderPayment is a helper method to define mock.On call

  • ctx context.Context
  • cartPayment *placeorder.Payment

func (*WebCartPaymentGateway_Expecter) ConfirmResult added in v3.7.0

func (_e *WebCartPaymentGateway_Expecter) ConfirmResult(ctx interface{}, _a1 interface{}, cartPayment interface{}) *WebCartPaymentGateway_ConfirmResult_Call

ConfirmResult is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • cartPayment *placeorder.Payment

func (*WebCartPaymentGateway_Expecter) FlowStatus added in v3.7.0

func (_e *WebCartPaymentGateway_Expecter) FlowStatus(ctx interface{}, _a1 interface{}, correlationID interface{}) *WebCartPaymentGateway_FlowStatus_Call

FlowStatus is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • correlationID string

func (*WebCartPaymentGateway_Expecter) Methods added in v3.7.0

Methods is a helper method to define mock.On call

func (*WebCartPaymentGateway_Expecter) OrderPaymentFromFlow added in v3.7.0

func (_e *WebCartPaymentGateway_Expecter) OrderPaymentFromFlow(ctx interface{}, _a1 interface{}, correlationID interface{}) *WebCartPaymentGateway_OrderPaymentFromFlow_Call

OrderPaymentFromFlow is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • correlationID string

func (*WebCartPaymentGateway_Expecter) StartFlow added in v3.7.0

func (_e *WebCartPaymentGateway_Expecter) StartFlow(ctx interface{}, _a1 interface{}, correlationID interface{}, returnURL interface{}) *WebCartPaymentGateway_StartFlow_Call

StartFlow is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • correlationID string
  • returnURL *url.URL

type WebCartPaymentGateway_FlowStatus_Call added in v3.7.0

type WebCartPaymentGateway_FlowStatus_Call struct {
	*mock.Call
}

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

func (*WebCartPaymentGateway_FlowStatus_Call) Return added in v3.7.0

func (*WebCartPaymentGateway_FlowStatus_Call) Run added in v3.7.0

func (*WebCartPaymentGateway_FlowStatus_Call) RunAndReturn added in v3.7.0

type WebCartPaymentGateway_Methods_Call added in v3.7.0

type WebCartPaymentGateway_Methods_Call struct {
	*mock.Call
}

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

func (*WebCartPaymentGateway_Methods_Call) Return added in v3.7.0

func (*WebCartPaymentGateway_Methods_Call) Run added in v3.7.0

func (*WebCartPaymentGateway_Methods_Call) RunAndReturn added in v3.7.0

type WebCartPaymentGateway_OrderPaymentFromFlow_Call added in v3.7.0

type WebCartPaymentGateway_OrderPaymentFromFlow_Call struct {
	*mock.Call
}

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

func (*WebCartPaymentGateway_OrderPaymentFromFlow_Call) Return added in v3.7.0

func (*WebCartPaymentGateway_OrderPaymentFromFlow_Call) Run added in v3.7.0

func (*WebCartPaymentGateway_OrderPaymentFromFlow_Call) RunAndReturn added in v3.7.0

type WebCartPaymentGateway_StartFlow_Call added in v3.7.0

type WebCartPaymentGateway_StartFlow_Call struct {
	*mock.Call
}

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

func (*WebCartPaymentGateway_StartFlow_Call) Return added in v3.7.0

func (*WebCartPaymentGateway_StartFlow_Call) Run added in v3.7.0

func (_c *WebCartPaymentGateway_StartFlow_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, correlationID string, returnURL *url.URL)) *WebCartPaymentGateway_StartFlow_Call

func (*WebCartPaymentGateway_StartFlow_Call) RunAndReturn added in v3.7.0

Jump to

Keyboard shortcuts

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