mocks

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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

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

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

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

func (*CompleteBehaviour_Complete_Call) Run

func (*CompleteBehaviour_Complete_Call) RunAndReturn

type CompleteBehaviour_Expecter

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

func (*CompleteBehaviour_Expecter) Complete

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

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

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

func (*CompleteBehaviour_Restore_Call) Run

func (*CompleteBehaviour_Restore_Call) RunAndReturn

type CustomerCartService

type CustomerCartService struct {
	mock.Mock
}

CustomerCartService is an autogenerated mock type for the CustomerCartService type

func NewCustomerCartService

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

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

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

func (*CustomerCartService_Expecter) GetCart

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

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

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

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

func (*CustomerCartService_GetCart_Call) Run

func (*CustomerCartService_GetCart_Call) RunAndReturn

type CustomerCartService_GetModifyBehaviour_Call

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

func (*CustomerCartService_GetModifyBehaviour_Call) Run

func (*CustomerCartService_GetModifyBehaviour_Call) RunAndReturn

type CustomerCartService_RestoreCart_Call

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

func (*CustomerCartService_RestoreCart_Call) Run

func (*CustomerCartService_RestoreCart_Call) RunAndReturn

type GiftCardAndVoucherBehaviour

type GiftCardAndVoucherBehaviour struct {
	mock.Mock
}

GiftCardAndVoucherBehaviour is an autogenerated mock type for the GiftCardAndVoucherBehaviour type

func NewGiftCardAndVoucherBehaviour

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

type GiftCardAndVoucherBehaviour_ApplyAny_Call

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

func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) Run

func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) RunAndReturn

type GiftCardAndVoucherBehaviour_Expecter

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

func (*GiftCardAndVoucherBehaviour_Expecter) ApplyAny

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

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

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

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

func (*GiftCardBehaviour_ApplyGiftCard_Call) Run

func (*GiftCardBehaviour_ApplyGiftCard_Call) RunAndReturn

type GiftCardBehaviour_Expecter

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

func (*GiftCardBehaviour_Expecter) ApplyGiftCard

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

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

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

func (*GiftCardBehaviour_RemoveGiftCard_Call) Run

func (*GiftCardBehaviour_RemoveGiftCard_Call) RunAndReturn

type GuestCartService

type GuestCartService struct {
	mock.Mock
}

GuestCartService is an autogenerated mock type for the GuestCartService type

func NewGuestCartService

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

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

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

func (*GuestCartService_Expecter) GetCart

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

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

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

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

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

func (*GuestCartService_GetCart_Call) Run

func (*GuestCartService_GetCart_Call) RunAndReturn

type GuestCartService_GetModifyBehaviour_Call

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

func (*GuestCartService_GetModifyBehaviour_Call) Run

func (*GuestCartService_GetModifyBehaviour_Call) RunAndReturn

type GuestCartService_GetNewCart_Call

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

func (*GuestCartService_GetNewCart_Call) Run

func (*GuestCartService_GetNewCart_Call) RunAndReturn

type GuestCartService_RestoreCart_Call

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

func (*GuestCartService_RestoreCart_Call) Run

func (*GuestCartService_RestoreCart_Call) RunAndReturn

type ModifyBehaviour

type ModifyBehaviour struct {
	mock.Mock
}

ModifyBehaviour is an autogenerated mock type for the ModifyBehaviour type

func NewModifyBehaviour

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

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

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

func (*ModifyBehaviour_AddToCart_Call) Run

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

type ModifyBehaviour_ApplyVoucher_Call

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

func (*ModifyBehaviour_ApplyVoucher_Call) Run

func (*ModifyBehaviour_ApplyVoucher_Call) RunAndReturn

type ModifyBehaviour_CleanCart_Call

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

func (*ModifyBehaviour_CleanCart_Call) Run

func (*ModifyBehaviour_CleanCart_Call) RunAndReturn

type ModifyBehaviour_CleanDelivery_Call

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

func (*ModifyBehaviour_CleanDelivery_Call) Run

func (*ModifyBehaviour_CleanDelivery_Call) RunAndReturn

type ModifyBehaviour_DeleteItem_Call

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

func (*ModifyBehaviour_DeleteItem_Call) Run

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

type ModifyBehaviour_Expecter

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

func (*ModifyBehaviour_Expecter) AddToCart

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (*ModifyBehaviour_RemoveVoucher_Call) Run

func (*ModifyBehaviour_RemoveVoucher_Call) RunAndReturn

type ModifyBehaviour_UpdateAdditionalData_Call

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

func (*ModifyBehaviour_UpdateAdditionalData_Call) Run

func (*ModifyBehaviour_UpdateAdditionalData_Call) RunAndReturn

type ModifyBehaviour_UpdateBillingAddress_Call

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

func (*ModifyBehaviour_UpdateBillingAddress_Call) Run

func (*ModifyBehaviour_UpdateBillingAddress_Call) RunAndReturn

type ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call

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

func (*ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Run

type ModifyBehaviour_UpdateDeliveryInfo_Call

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

func (*ModifyBehaviour_UpdateDeliveryInfo_Call) Run

type ModifyBehaviour_UpdateItem_Call

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

func (*ModifyBehaviour_UpdateItem_Call) Run

func (*ModifyBehaviour_UpdateItem_Call) RunAndReturn

type ModifyBehaviour_UpdateItems_Call

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

func (*ModifyBehaviour_UpdateItems_Call) Run

func (*ModifyBehaviour_UpdateItems_Call) RunAndReturn

type ModifyBehaviour_UpdatePaymentSelection_Call

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

func (*ModifyBehaviour_UpdatePaymentSelection_Call) Run

type ModifyBehaviour_UpdatePurchaser_Call

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

func (*ModifyBehaviour_UpdatePurchaser_Call) Run

func (*ModifyBehaviour_UpdatePurchaser_Call) RunAndReturn

Jump to

Keyboard shortcuts

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