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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllBehaviour

AllBehaviour is an manually created mock to combine all autogenerated mocks

type CompleteBehaviour

type CompleteBehaviour struct {
	mock.Mock
}

CompleteBehaviour is an autogenerated mock type for the CompleteBehaviour type

func NewCompleteBehaviour added in v3.6.0

func NewCompleteBehaviour(t interface {
	mock.TestingT
	Cleanup(func())
}) *CompleteBehaviour

NewCompleteBehaviour creates a new instance of CompleteBehaviour. 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 (*CompleteBehaviour) Complete

func (_m *CompleteBehaviour) Complete(_a0 context.Context, _a1 *cart.Cart) (*cart.Cart, cart.DeferEvents, error)

Complete provides a mock function with given fields: _a0, _a1

func (*CompleteBehaviour) EXPECT added in v3.7.0

func (*CompleteBehaviour) Restore

func (_m *CompleteBehaviour) Restore(_a0 context.Context, _a1 *cart.Cart) (*cart.Cart, cart.DeferEvents, error)

Restore provides a mock function with given fields: _a0, _a1

type CompleteBehaviour_Complete_Call added in v3.7.0

type CompleteBehaviour_Complete_Call struct {
	*mock.Call
}

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

func (*CompleteBehaviour_Complete_Call) Return added in v3.7.0

func (*CompleteBehaviour_Complete_Call) Run added in v3.7.0

func (*CompleteBehaviour_Complete_Call) RunAndReturn added in v3.7.0

type CompleteBehaviour_Expecter added in v3.7.0

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

func (*CompleteBehaviour_Expecter) Complete added in v3.7.0

func (_e *CompleteBehaviour_Expecter) Complete(_a0 interface{}, _a1 interface{}) *CompleteBehaviour_Complete_Call

Complete is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *cart.Cart

func (*CompleteBehaviour_Expecter) Restore added in v3.7.0

func (_e *CompleteBehaviour_Expecter) Restore(_a0 interface{}, _a1 interface{}) *CompleteBehaviour_Restore_Call

Restore is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *cart.Cart

type CompleteBehaviour_Restore_Call added in v3.7.0

type CompleteBehaviour_Restore_Call struct {
	*mock.Call
}

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

func (*CompleteBehaviour_Restore_Call) Return added in v3.7.0

func (*CompleteBehaviour_Restore_Call) Run added in v3.7.0

func (*CompleteBehaviour_Restore_Call) RunAndReturn added in v3.7.0

type CustomerCartService

type CustomerCartService struct {
	mock.Mock
}

CustomerCartService is an autogenerated mock type for the CustomerCartService type

func NewCustomerCartService added in v3.6.0

func NewCustomerCartService(t interface {
	mock.TestingT
	Cleanup(func())
}) *CustomerCartService

NewCustomerCartService creates a new instance of CustomerCartService. 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 (*CustomerCartService) EXPECT added in v3.7.0

func (*CustomerCartService) GetCart

func (_m *CustomerCartService) GetCart(ctx context.Context, identity auth.Identity, cartID string) (*cart.Cart, error)

GetCart provides a mock function with given fields: ctx, identity, cartID

func (*CustomerCartService) GetModifyBehaviour

func (_m *CustomerCartService) GetModifyBehaviour(_a0 context.Context, _a1 auth.Identity) (cart.ModifyBehaviour, error)

GetModifyBehaviour provides a mock function with given fields: _a0, _a1

func (*CustomerCartService) RestoreCart

func (_m *CustomerCartService) RestoreCart(ctx context.Context, identity auth.Identity, _a2 cart.Cart) (*cart.Cart, error)

RestoreCart provides a mock function with given fields: ctx, identity, _a2

type CustomerCartService_Expecter added in v3.7.0

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

func (*CustomerCartService_Expecter) GetCart added in v3.7.0

func (_e *CustomerCartService_Expecter) GetCart(ctx interface{}, identity interface{}, cartID interface{}) *CustomerCartService_GetCart_Call

GetCart is a helper method to define mock.On call

  • ctx context.Context
  • identity auth.Identity
  • cartID string

func (*CustomerCartService_Expecter) GetModifyBehaviour added in v3.7.0

func (_e *CustomerCartService_Expecter) GetModifyBehaviour(_a0 interface{}, _a1 interface{}) *CustomerCartService_GetModifyBehaviour_Call

GetModifyBehaviour is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 auth.Identity

func (*CustomerCartService_Expecter) RestoreCart added in v3.7.0

func (_e *CustomerCartService_Expecter) RestoreCart(ctx interface{}, identity interface{}, _a2 interface{}) *CustomerCartService_RestoreCart_Call

RestoreCart is a helper method to define mock.On call

  • ctx context.Context
  • identity auth.Identity
  • _a2 cart.Cart

type CustomerCartService_GetCart_Call added in v3.7.0

type CustomerCartService_GetCart_Call struct {
	*mock.Call
}

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

func (*CustomerCartService_GetCart_Call) Return added in v3.7.0

func (*CustomerCartService_GetCart_Call) Run added in v3.7.0

func (*CustomerCartService_GetCart_Call) RunAndReturn added in v3.7.0

type CustomerCartService_GetModifyBehaviour_Call added in v3.7.0

type CustomerCartService_GetModifyBehaviour_Call struct {
	*mock.Call
}

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

func (*CustomerCartService_GetModifyBehaviour_Call) Return added in v3.7.0

func (*CustomerCartService_GetModifyBehaviour_Call) Run added in v3.7.0

func (*CustomerCartService_GetModifyBehaviour_Call) RunAndReturn added in v3.7.0

type CustomerCartService_RestoreCart_Call added in v3.7.0

type CustomerCartService_RestoreCart_Call struct {
	*mock.Call
}

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

func (*CustomerCartService_RestoreCart_Call) Return added in v3.7.0

func (*CustomerCartService_RestoreCart_Call) Run added in v3.7.0

func (*CustomerCartService_RestoreCart_Call) RunAndReturn added in v3.7.0

type GiftCardAndVoucherBehaviour

type GiftCardAndVoucherBehaviour struct {
	mock.Mock
}

GiftCardAndVoucherBehaviour is an autogenerated mock type for the GiftCardAndVoucherBehaviour type

func NewGiftCardAndVoucherBehaviour added in v3.6.0

func NewGiftCardAndVoucherBehaviour(t interface {
	mock.TestingT
	Cleanup(func())
}) *GiftCardAndVoucherBehaviour

NewGiftCardAndVoucherBehaviour creates a new instance of GiftCardAndVoucherBehaviour. 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 (*GiftCardAndVoucherBehaviour) ApplyAny

func (_m *GiftCardAndVoucherBehaviour) ApplyAny(ctx context.Context, _a1 *cart.Cart, anyCode string) (*cart.Cart, cart.DeferEvents, error)

ApplyAny provides a mock function with given fields: ctx, _a1, anyCode

func (*GiftCardAndVoucherBehaviour) EXPECT added in v3.7.0

type GiftCardAndVoucherBehaviour_ApplyAny_Call added in v3.7.0

type GiftCardAndVoucherBehaviour_ApplyAny_Call struct {
	*mock.Call
}

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

func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) Return added in v3.7.0

func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) Run added in v3.7.0

func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) RunAndReturn added in v3.7.0

type GiftCardAndVoucherBehaviour_Expecter added in v3.7.0

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

func (*GiftCardAndVoucherBehaviour_Expecter) ApplyAny added in v3.7.0

func (_e *GiftCardAndVoucherBehaviour_Expecter) ApplyAny(ctx interface{}, _a1 interface{}, anyCode interface{}) *GiftCardAndVoucherBehaviour_ApplyAny_Call

ApplyAny is a helper method to define mock.On call

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

type GiftCardBehaviour

type GiftCardBehaviour struct {
	mock.Mock
}

GiftCardBehaviour is an autogenerated mock type for the GiftCardBehaviour type

func NewGiftCardBehaviour added in v3.6.0

func NewGiftCardBehaviour(t interface {
	mock.TestingT
	Cleanup(func())
}) *GiftCardBehaviour

NewGiftCardBehaviour creates a new instance of GiftCardBehaviour. 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 (*GiftCardBehaviour) ApplyGiftCard

func (_m *GiftCardBehaviour) ApplyGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, cart.DeferEvents, error)

ApplyGiftCard provides a mock function with given fields: ctx, _a1, giftCardCode

func (*GiftCardBehaviour) EXPECT added in v3.7.0

func (*GiftCardBehaviour) RemoveGiftCard

func (_m *GiftCardBehaviour) RemoveGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, cart.DeferEvents, error)

RemoveGiftCard provides a mock function with given fields: ctx, _a1, giftCardCode

type GiftCardBehaviour_ApplyGiftCard_Call added in v3.7.0

type GiftCardBehaviour_ApplyGiftCard_Call struct {
	*mock.Call
}

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

func (*GiftCardBehaviour_ApplyGiftCard_Call) Return added in v3.7.0

func (*GiftCardBehaviour_ApplyGiftCard_Call) Run added in v3.7.0

func (*GiftCardBehaviour_ApplyGiftCard_Call) RunAndReturn added in v3.7.0

type GiftCardBehaviour_Expecter added in v3.7.0

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

func (*GiftCardBehaviour_Expecter) ApplyGiftCard added in v3.7.0

func (_e *GiftCardBehaviour_Expecter) ApplyGiftCard(ctx interface{}, _a1 interface{}, giftCardCode interface{}) *GiftCardBehaviour_ApplyGiftCard_Call

ApplyGiftCard is a helper method to define mock.On call

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

func (*GiftCardBehaviour_Expecter) RemoveGiftCard added in v3.7.0

func (_e *GiftCardBehaviour_Expecter) RemoveGiftCard(ctx interface{}, _a1 interface{}, giftCardCode interface{}) *GiftCardBehaviour_RemoveGiftCard_Call

RemoveGiftCard is a helper method to define mock.On call

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

type GiftCardBehaviour_RemoveGiftCard_Call added in v3.7.0

type GiftCardBehaviour_RemoveGiftCard_Call struct {
	*mock.Call
}

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

func (*GiftCardBehaviour_RemoveGiftCard_Call) Return added in v3.7.0

func (*GiftCardBehaviour_RemoveGiftCard_Call) Run added in v3.7.0

func (*GiftCardBehaviour_RemoveGiftCard_Call) RunAndReturn added in v3.7.0

type GuestCartService

type GuestCartService struct {
	mock.Mock
}

GuestCartService is an autogenerated mock type for the GuestCartService type

func NewGuestCartService added in v3.6.0

func NewGuestCartService(t interface {
	mock.TestingT
	Cleanup(func())
}) *GuestCartService

NewGuestCartService creates a new instance of GuestCartService. 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 (*GuestCartService) EXPECT added in v3.7.0

func (*GuestCartService) GetCart

func (_m *GuestCartService) GetCart(ctx context.Context, cartID string) (*cart.Cart, error)

GetCart provides a mock function with given fields: ctx, cartID

func (*GuestCartService) GetModifyBehaviour

func (_m *GuestCartService) GetModifyBehaviour(_a0 context.Context) (cart.ModifyBehaviour, error)

GetModifyBehaviour provides a mock function with given fields: _a0

func (*GuestCartService) GetNewCart

func (_m *GuestCartService) GetNewCart(ctx context.Context) (*cart.Cart, error)

GetNewCart provides a mock function with given fields: ctx

func (*GuestCartService) RestoreCart

func (_m *GuestCartService) RestoreCart(ctx context.Context, _a1 cart.Cart) (*cart.Cart, error)

RestoreCart provides a mock function with given fields: ctx, _a1

type GuestCartService_Expecter added in v3.7.0

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

func (*GuestCartService_Expecter) GetCart added in v3.7.0

func (_e *GuestCartService_Expecter) GetCart(ctx interface{}, cartID interface{}) *GuestCartService_GetCart_Call

GetCart is a helper method to define mock.On call

  • ctx context.Context
  • cartID string

func (*GuestCartService_Expecter) GetModifyBehaviour added in v3.7.0

func (_e *GuestCartService_Expecter) GetModifyBehaviour(_a0 interface{}) *GuestCartService_GetModifyBehaviour_Call

GetModifyBehaviour is a helper method to define mock.On call

  • _a0 context.Context

func (*GuestCartService_Expecter) GetNewCart added in v3.7.0

func (_e *GuestCartService_Expecter) GetNewCart(ctx interface{}) *GuestCartService_GetNewCart_Call

GetNewCart is a helper method to define mock.On call

  • ctx context.Context

func (*GuestCartService_Expecter) RestoreCart added in v3.7.0

func (_e *GuestCartService_Expecter) RestoreCart(ctx interface{}, _a1 interface{}) *GuestCartService_RestoreCart_Call

RestoreCart is a helper method to define mock.On call

  • ctx context.Context
  • _a1 cart.Cart

type GuestCartService_GetCart_Call added in v3.7.0

type GuestCartService_GetCart_Call struct {
	*mock.Call
}

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

func (*GuestCartService_GetCart_Call) Return added in v3.7.0

func (*GuestCartService_GetCart_Call) Run added in v3.7.0

func (*GuestCartService_GetCart_Call) RunAndReturn added in v3.7.0

type GuestCartService_GetModifyBehaviour_Call added in v3.7.0

type GuestCartService_GetModifyBehaviour_Call struct {
	*mock.Call
}

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

func (*GuestCartService_GetModifyBehaviour_Call) Return added in v3.7.0

func (*GuestCartService_GetModifyBehaviour_Call) Run added in v3.7.0

func (*GuestCartService_GetModifyBehaviour_Call) RunAndReturn added in v3.7.0

type GuestCartService_GetNewCart_Call added in v3.7.0

type GuestCartService_GetNewCart_Call struct {
	*mock.Call
}

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

func (*GuestCartService_GetNewCart_Call) Return added in v3.7.0

func (*GuestCartService_GetNewCart_Call) Run added in v3.7.0

func (*GuestCartService_GetNewCart_Call) RunAndReturn added in v3.7.0

type GuestCartService_RestoreCart_Call added in v3.7.0

type GuestCartService_RestoreCart_Call struct {
	*mock.Call
}

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

func (*GuestCartService_RestoreCart_Call) Return added in v3.7.0

func (*GuestCartService_RestoreCart_Call) Run added in v3.7.0

func (*GuestCartService_RestoreCart_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour

type ModifyBehaviour struct {
	mock.Mock
}

ModifyBehaviour is an autogenerated mock type for the ModifyBehaviour type

func NewModifyBehaviour added in v3.6.0

func NewModifyBehaviour(t interface {
	mock.TestingT
	Cleanup(func())
}) *ModifyBehaviour

NewModifyBehaviour creates a new instance of ModifyBehaviour. 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 (*ModifyBehaviour) AddToCart

func (_m *ModifyBehaviour) AddToCart(ctx context.Context, _a1 *cart.Cart, deliveryCode string, addRequest cart.AddRequest) (*cart.Cart, cart.DeferEvents, error)

AddToCart provides a mock function with given fields: ctx, _a1, deliveryCode, addRequest

func (*ModifyBehaviour) ApplyVoucher

func (_m *ModifyBehaviour) ApplyVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)

ApplyVoucher provides a mock function with given fields: ctx, _a1, couponCode

func (*ModifyBehaviour) CleanCart

func (_m *ModifyBehaviour) CleanCart(ctx context.Context, _a1 *cart.Cart) (*cart.Cart, cart.DeferEvents, error)

CleanCart provides a mock function with given fields: ctx, _a1

func (*ModifyBehaviour) CleanDelivery

func (_m *ModifyBehaviour) CleanDelivery(ctx context.Context, _a1 *cart.Cart, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)

CleanDelivery provides a mock function with given fields: ctx, _a1, deliveryCode

func (*ModifyBehaviour) DeleteItem

func (_m *ModifyBehaviour) DeleteItem(ctx context.Context, _a1 *cart.Cart, itemID string, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)

DeleteItem provides a mock function with given fields: ctx, _a1, itemID, deliveryCode

func (*ModifyBehaviour) EXPECT added in v3.7.0

func (*ModifyBehaviour) RemoveVoucher

func (_m *ModifyBehaviour) RemoveVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)

RemoveVoucher provides a mock function with given fields: ctx, _a1, couponCode

func (*ModifyBehaviour) UpdateAdditionalData

func (_m *ModifyBehaviour) UpdateAdditionalData(ctx context.Context, _a1 *cart.Cart, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)

UpdateAdditionalData provides a mock function with given fields: ctx, _a1, additionalData

func (*ModifyBehaviour) UpdateBillingAddress

func (_m *ModifyBehaviour) UpdateBillingAddress(ctx context.Context, _a1 *cart.Cart, billingAddress cart.Address) (*cart.Cart, cart.DeferEvents, error)

UpdateBillingAddress provides a mock function with given fields: ctx, _a1, billingAddress

func (*ModifyBehaviour) UpdateDeliveryInfo

func (_m *ModifyBehaviour) UpdateDeliveryInfo(ctx context.Context, _a1 *cart.Cart, deliveryCode string, deliveryInfo cart.DeliveryInfoUpdateCommand) (*cart.Cart, cart.DeferEvents, error)

UpdateDeliveryInfo provides a mock function with given fields: ctx, _a1, deliveryCode, deliveryInfo

func (*ModifyBehaviour) UpdateDeliveryInfoAdditionalData

func (_m *ModifyBehaviour) UpdateDeliveryInfoAdditionalData(ctx context.Context, _a1 *cart.Cart, deliveryCode string, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)

UpdateDeliveryInfoAdditionalData provides a mock function with given fields: ctx, _a1, deliveryCode, additionalData

func (*ModifyBehaviour) UpdateItem

func (_m *ModifyBehaviour) UpdateItem(ctx context.Context, _a1 *cart.Cart, itemUpdateCommand cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)

UpdateItem provides a mock function with given fields: ctx, _a1, itemUpdateCommand

func (*ModifyBehaviour) UpdateItems

func (_m *ModifyBehaviour) UpdateItems(ctx context.Context, _a1 *cart.Cart, itemUpdateCommands []cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)

UpdateItems provides a mock function with given fields: ctx, _a1, itemUpdateCommands

func (*ModifyBehaviour) UpdatePaymentSelection

func (_m *ModifyBehaviour) UpdatePaymentSelection(ctx context.Context, _a1 *cart.Cart, paymentSelection cart.PaymentSelection) (*cart.Cart, cart.DeferEvents, error)

UpdatePaymentSelection provides a mock function with given fields: ctx, _a1, paymentSelection

func (*ModifyBehaviour) UpdatePurchaser

func (_m *ModifyBehaviour) UpdatePurchaser(ctx context.Context, _a1 *cart.Cart, purchaser *cart.Person, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)

UpdatePurchaser provides a mock function with given fields: ctx, _a1, purchaser, additionalData

type ModifyBehaviour_AddToCart_Call added in v3.7.0

type ModifyBehaviour_AddToCart_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_AddToCart_Call) Return added in v3.7.0

func (*ModifyBehaviour_AddToCart_Call) Run added in v3.7.0

func (_c *ModifyBehaviour_AddToCart_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string, addRequest cart.AddRequest)) *ModifyBehaviour_AddToCart_Call

func (*ModifyBehaviour_AddToCart_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_ApplyVoucher_Call added in v3.7.0

type ModifyBehaviour_ApplyVoucher_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_ApplyVoucher_Call) Return added in v3.7.0

func (*ModifyBehaviour_ApplyVoucher_Call) Run added in v3.7.0

func (*ModifyBehaviour_ApplyVoucher_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_CleanCart_Call added in v3.7.0

type ModifyBehaviour_CleanCart_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_CleanCart_Call) Return added in v3.7.0

func (*ModifyBehaviour_CleanCart_Call) Run added in v3.7.0

func (*ModifyBehaviour_CleanCart_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_CleanDelivery_Call added in v3.7.0

type ModifyBehaviour_CleanDelivery_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_CleanDelivery_Call) Return added in v3.7.0

func (*ModifyBehaviour_CleanDelivery_Call) Run added in v3.7.0

func (*ModifyBehaviour_CleanDelivery_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_DeleteItem_Call added in v3.7.0

type ModifyBehaviour_DeleteItem_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_DeleteItem_Call) Return added in v3.7.0

func (*ModifyBehaviour_DeleteItem_Call) Run added in v3.7.0

func (_c *ModifyBehaviour_DeleteItem_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, itemID string, deliveryCode string)) *ModifyBehaviour_DeleteItem_Call

func (*ModifyBehaviour_DeleteItem_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_Expecter added in v3.7.0

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

func (*ModifyBehaviour_Expecter) AddToCart added in v3.7.0

func (_e *ModifyBehaviour_Expecter) AddToCart(ctx interface{}, _a1 interface{}, deliveryCode interface{}, addRequest interface{}) *ModifyBehaviour_AddToCart_Call

AddToCart is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • deliveryCode string
  • addRequest cart.AddRequest

func (*ModifyBehaviour_Expecter) ApplyVoucher added in v3.7.0

func (_e *ModifyBehaviour_Expecter) ApplyVoucher(ctx interface{}, _a1 interface{}, couponCode interface{}) *ModifyBehaviour_ApplyVoucher_Call

ApplyVoucher is a helper method to define mock.On call

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

func (*ModifyBehaviour_Expecter) CleanCart added in v3.7.0

func (_e *ModifyBehaviour_Expecter) CleanCart(ctx interface{}, _a1 interface{}) *ModifyBehaviour_CleanCart_Call

CleanCart is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart

func (*ModifyBehaviour_Expecter) CleanDelivery added in v3.7.0

func (_e *ModifyBehaviour_Expecter) CleanDelivery(ctx interface{}, _a1 interface{}, deliveryCode interface{}) *ModifyBehaviour_CleanDelivery_Call

CleanDelivery is a helper method to define mock.On call

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

func (*ModifyBehaviour_Expecter) DeleteItem added in v3.7.0

func (_e *ModifyBehaviour_Expecter) DeleteItem(ctx interface{}, _a1 interface{}, itemID interface{}, deliveryCode interface{}) *ModifyBehaviour_DeleteItem_Call

DeleteItem is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • itemID string
  • deliveryCode string

func (*ModifyBehaviour_Expecter) RemoveVoucher added in v3.7.0

func (_e *ModifyBehaviour_Expecter) RemoveVoucher(ctx interface{}, _a1 interface{}, couponCode interface{}) *ModifyBehaviour_RemoveVoucher_Call

RemoveVoucher is a helper method to define mock.On call

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

func (*ModifyBehaviour_Expecter) UpdateAdditionalData added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdateAdditionalData(ctx interface{}, _a1 interface{}, additionalData interface{}) *ModifyBehaviour_UpdateAdditionalData_Call

UpdateAdditionalData is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • additionalData *cart.AdditionalData

func (*ModifyBehaviour_Expecter) UpdateBillingAddress added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdateBillingAddress(ctx interface{}, _a1 interface{}, billingAddress interface{}) *ModifyBehaviour_UpdateBillingAddress_Call

UpdateBillingAddress is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • billingAddress cart.Address

func (*ModifyBehaviour_Expecter) UpdateDeliveryInfo added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdateDeliveryInfo(ctx interface{}, _a1 interface{}, deliveryCode interface{}, deliveryInfo interface{}) *ModifyBehaviour_UpdateDeliveryInfo_Call

UpdateDeliveryInfo is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • deliveryCode string
  • deliveryInfo cart.DeliveryInfoUpdateCommand

func (*ModifyBehaviour_Expecter) UpdateDeliveryInfoAdditionalData added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdateDeliveryInfoAdditionalData(ctx interface{}, _a1 interface{}, deliveryCode interface{}, additionalData interface{}) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call

UpdateDeliveryInfoAdditionalData is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • deliveryCode string
  • additionalData *cart.AdditionalData

func (*ModifyBehaviour_Expecter) UpdateItem added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdateItem(ctx interface{}, _a1 interface{}, itemUpdateCommand interface{}) *ModifyBehaviour_UpdateItem_Call

UpdateItem is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • itemUpdateCommand cart.ItemUpdateCommand

func (*ModifyBehaviour_Expecter) UpdateItems added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdateItems(ctx interface{}, _a1 interface{}, itemUpdateCommands interface{}) *ModifyBehaviour_UpdateItems_Call

UpdateItems is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • itemUpdateCommands []cart.ItemUpdateCommand

func (*ModifyBehaviour_Expecter) UpdatePaymentSelection added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdatePaymentSelection(ctx interface{}, _a1 interface{}, paymentSelection interface{}) *ModifyBehaviour_UpdatePaymentSelection_Call

UpdatePaymentSelection is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • paymentSelection cart.PaymentSelection

func (*ModifyBehaviour_Expecter) UpdatePurchaser added in v3.7.0

func (_e *ModifyBehaviour_Expecter) UpdatePurchaser(ctx interface{}, _a1 interface{}, purchaser interface{}, additionalData interface{}) *ModifyBehaviour_UpdatePurchaser_Call

UpdatePurchaser is a helper method to define mock.On call

  • ctx context.Context
  • _a1 *cart.Cart
  • purchaser *cart.Person
  • additionalData *cart.AdditionalData

type ModifyBehaviour_RemoveVoucher_Call added in v3.7.0

type ModifyBehaviour_RemoveVoucher_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_RemoveVoucher_Call) Return added in v3.7.0

func (*ModifyBehaviour_RemoveVoucher_Call) Run added in v3.7.0

func (*ModifyBehaviour_RemoveVoucher_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdateAdditionalData_Call added in v3.7.0

type ModifyBehaviour_UpdateAdditionalData_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdateAdditionalData_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdateAdditionalData_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdateAdditionalData_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdateBillingAddress_Call added in v3.7.0

type ModifyBehaviour_UpdateBillingAddress_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdateBillingAddress_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdateBillingAddress_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdateBillingAddress_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call added in v3.7.0

type ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdateDeliveryInfo_Call added in v3.7.0

type ModifyBehaviour_UpdateDeliveryInfo_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdateDeliveryInfo_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdateDeliveryInfo_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdateDeliveryInfo_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdateItem_Call added in v3.7.0

type ModifyBehaviour_UpdateItem_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdateItem_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdateItem_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdateItem_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdateItems_Call added in v3.7.0

type ModifyBehaviour_UpdateItems_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdateItems_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdateItems_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdateItems_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdatePaymentSelection_Call added in v3.7.0

type ModifyBehaviour_UpdatePaymentSelection_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdatePaymentSelection_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdatePaymentSelection_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdatePaymentSelection_Call) RunAndReturn added in v3.7.0

type ModifyBehaviour_UpdatePurchaser_Call added in v3.7.0

type ModifyBehaviour_UpdatePurchaser_Call struct {
	*mock.Call
}

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

func (*ModifyBehaviour_UpdatePurchaser_Call) Return added in v3.7.0

func (*ModifyBehaviour_UpdatePurchaser_Call) Run added in v3.7.0

func (*ModifyBehaviour_UpdatePurchaser_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