Documentation ¶
Index ¶
- type WebCartPaymentGateway
- func (_m *WebCartPaymentGateway) CancelOrderPayment(ctx context.Context, cartPayment *placeorder.Payment) error
- func (_m *WebCartPaymentGateway) ConfirmResult(ctx context.Context, _a1 *cart.Cart, cartPayment *placeorder.Payment) error
- func (_m *WebCartPaymentGateway) EXPECT() *WebCartPaymentGateway_Expecter
- func (_m *WebCartPaymentGateway) FlowStatus(ctx context.Context, _a1 *cart.Cart, correlationID string) (*domain.FlowStatus, error)
- func (_m *WebCartPaymentGateway) Methods() []domain.Method
- func (_m *WebCartPaymentGateway) OrderPaymentFromFlow(ctx context.Context, _a1 *cart.Cart, correlationID string) (*placeorder.Payment, error)
- func (_m *WebCartPaymentGateway) StartFlow(ctx context.Context, _a1 *cart.Cart, correlationID string, returnURL *url.URL) (*domain.FlowResult, error)
- type WebCartPaymentGateway_CancelOrderPayment_Call
- func (_c *WebCartPaymentGateway_CancelOrderPayment_Call) Return(_a0 error) *WebCartPaymentGateway_CancelOrderPayment_Call
- func (_c *WebCartPaymentGateway_CancelOrderPayment_Call) Run(run func(ctx context.Context, cartPayment *placeorder.Payment)) *WebCartPaymentGateway_CancelOrderPayment_Call
- func (_c *WebCartPaymentGateway_CancelOrderPayment_Call) RunAndReturn(run func(context.Context, *placeorder.Payment) error) *WebCartPaymentGateway_CancelOrderPayment_Call
- type WebCartPaymentGateway_ConfirmResult_Call
- func (_c *WebCartPaymentGateway_ConfirmResult_Call) Return(_a0 error) *WebCartPaymentGateway_ConfirmResult_Call
- func (_c *WebCartPaymentGateway_ConfirmResult_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, cartPayment *placeorder.Payment)) *WebCartPaymentGateway_ConfirmResult_Call
- func (_c *WebCartPaymentGateway_ConfirmResult_Call) RunAndReturn(run func(context.Context, *cart.Cart, *placeorder.Payment) error) *WebCartPaymentGateway_ConfirmResult_Call
- type WebCartPaymentGateway_Expecter
- func (_e *WebCartPaymentGateway_Expecter) CancelOrderPayment(ctx interface{}, cartPayment interface{}) *WebCartPaymentGateway_CancelOrderPayment_Call
- func (_e *WebCartPaymentGateway_Expecter) ConfirmResult(ctx interface{}, _a1 interface{}, cartPayment interface{}) *WebCartPaymentGateway_ConfirmResult_Call
- func (_e *WebCartPaymentGateway_Expecter) FlowStatus(ctx interface{}, _a1 interface{}, correlationID interface{}) *WebCartPaymentGateway_FlowStatus_Call
- func (_e *WebCartPaymentGateway_Expecter) Methods() *WebCartPaymentGateway_Methods_Call
- func (_e *WebCartPaymentGateway_Expecter) OrderPaymentFromFlow(ctx interface{}, _a1 interface{}, correlationID interface{}) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
- func (_e *WebCartPaymentGateway_Expecter) StartFlow(ctx interface{}, _a1 interface{}, correlationID interface{}, ...) *WebCartPaymentGateway_StartFlow_Call
- type WebCartPaymentGateway_FlowStatus_Call
- func (_c *WebCartPaymentGateway_FlowStatus_Call) Return(_a0 *domain.FlowStatus, _a1 error) *WebCartPaymentGateway_FlowStatus_Call
- func (_c *WebCartPaymentGateway_FlowStatus_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, correlationID string)) *WebCartPaymentGateway_FlowStatus_Call
- func (_c *WebCartPaymentGateway_FlowStatus_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*domain.FlowStatus, error)) *WebCartPaymentGateway_FlowStatus_Call
- type WebCartPaymentGateway_Methods_Call
- func (_c *WebCartPaymentGateway_Methods_Call) Return(_a0 []domain.Method) *WebCartPaymentGateway_Methods_Call
- func (_c *WebCartPaymentGateway_Methods_Call) Run(run func()) *WebCartPaymentGateway_Methods_Call
- func (_c *WebCartPaymentGateway_Methods_Call) RunAndReturn(run func() []domain.Method) *WebCartPaymentGateway_Methods_Call
- type WebCartPaymentGateway_OrderPaymentFromFlow_Call
- func (_c *WebCartPaymentGateway_OrderPaymentFromFlow_Call) Return(_a0 *placeorder.Payment, _a1 error) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
- func (_c *WebCartPaymentGateway_OrderPaymentFromFlow_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, correlationID string)) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
- func (_c *WebCartPaymentGateway_OrderPaymentFromFlow_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*placeorder.Payment, error)) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
- type WebCartPaymentGateway_StartFlow_Call
- func (_c *WebCartPaymentGateway_StartFlow_Call) Return(_a0 *domain.FlowResult, _a1 error) *WebCartPaymentGateway_StartFlow_Call
- func (_c *WebCartPaymentGateway_StartFlow_Call) Run(...) *WebCartPaymentGateway_StartFlow_Call
- func (_c *WebCartPaymentGateway_StartFlow_Call) RunAndReturn(...) *WebCartPaymentGateway_StartFlow_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebCartPaymentGateway ¶
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 (_m *WebCartPaymentGateway) EXPECT() *WebCartPaymentGateway_Expecter
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
type WebCartPaymentGateway_CancelOrderPayment_Call ¶ added in v3.7.0
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 (_c *WebCartPaymentGateway_CancelOrderPayment_Call) Return(_a0 error) *WebCartPaymentGateway_CancelOrderPayment_Call
func (*WebCartPaymentGateway_CancelOrderPayment_Call) Run ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_CancelOrderPayment_Call) Run(run func(ctx context.Context, cartPayment *placeorder.Payment)) *WebCartPaymentGateway_CancelOrderPayment_Call
func (*WebCartPaymentGateway_CancelOrderPayment_Call) RunAndReturn ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_CancelOrderPayment_Call) RunAndReturn(run func(context.Context, *placeorder.Payment) error) *WebCartPaymentGateway_CancelOrderPayment_Call
type WebCartPaymentGateway_ConfirmResult_Call ¶ added in v3.7.0
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 (_c *WebCartPaymentGateway_ConfirmResult_Call) Return(_a0 error) *WebCartPaymentGateway_ConfirmResult_Call
func (*WebCartPaymentGateway_ConfirmResult_Call) Run ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_ConfirmResult_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, cartPayment *placeorder.Payment)) *WebCartPaymentGateway_ConfirmResult_Call
func (*WebCartPaymentGateway_ConfirmResult_Call) RunAndReturn ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_ConfirmResult_Call) RunAndReturn(run func(context.Context, *cart.Cart, *placeorder.Payment) error) *WebCartPaymentGateway_ConfirmResult_Call
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
func (_e *WebCartPaymentGateway_Expecter) Methods() *WebCartPaymentGateway_Methods_Call
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
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 (_c *WebCartPaymentGateway_FlowStatus_Call) Return(_a0 *domain.FlowStatus, _a1 error) *WebCartPaymentGateway_FlowStatus_Call
func (*WebCartPaymentGateway_FlowStatus_Call) Run ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_FlowStatus_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, correlationID string)) *WebCartPaymentGateway_FlowStatus_Call
func (*WebCartPaymentGateway_FlowStatus_Call) RunAndReturn ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_FlowStatus_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*domain.FlowStatus, error)) *WebCartPaymentGateway_FlowStatus_Call
type WebCartPaymentGateway_Methods_Call ¶ added in v3.7.0
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 (_c *WebCartPaymentGateway_Methods_Call) Return(_a0 []domain.Method) *WebCartPaymentGateway_Methods_Call
func (*WebCartPaymentGateway_Methods_Call) Run ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_Methods_Call) Run(run func()) *WebCartPaymentGateway_Methods_Call
func (*WebCartPaymentGateway_Methods_Call) RunAndReturn ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_Methods_Call) RunAndReturn(run func() []domain.Method) *WebCartPaymentGateway_Methods_Call
type WebCartPaymentGateway_OrderPaymentFromFlow_Call ¶ added in v3.7.0
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 (_c *WebCartPaymentGateway_OrderPaymentFromFlow_Call) Return(_a0 *placeorder.Payment, _a1 error) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
func (*WebCartPaymentGateway_OrderPaymentFromFlow_Call) Run ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_OrderPaymentFromFlow_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, correlationID string)) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
func (*WebCartPaymentGateway_OrderPaymentFromFlow_Call) RunAndReturn ¶ added in v3.7.0
func (_c *WebCartPaymentGateway_OrderPaymentFromFlow_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*placeorder.Payment, error)) *WebCartPaymentGateway_OrderPaymentFromFlow_Call
type WebCartPaymentGateway_StartFlow_Call ¶ added in v3.7.0
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 (_c *WebCartPaymentGateway_StartFlow_Call) Return(_a0 *domain.FlowResult, _a1 error) *WebCartPaymentGateway_StartFlow_Call
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
func (_c *WebCartPaymentGateway_StartFlow_Call) RunAndReturn(run func(context.Context, *cart.Cart, string, *url.URL) (*domain.FlowResult, error)) *WebCartPaymentGateway_StartFlow_Call