Documentation ¶
Index ¶
- type AllBehaviour
- type CompleteBehaviour
- type CompleteBehaviour_Complete_Call
- func (_c *CompleteBehaviour_Complete_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *CompleteBehaviour_Complete_Call
- func (_c *CompleteBehaviour_Complete_Call) Run(run func(_a0 context.Context, _a1 *cart.Cart)) *CompleteBehaviour_Complete_Call
- func (_c *CompleteBehaviour_Complete_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, cart.DeferEvents, error)) *CompleteBehaviour_Complete_Call
- type CompleteBehaviour_Expecter
- type CompleteBehaviour_Restore_Call
- func (_c *CompleteBehaviour_Restore_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *CompleteBehaviour_Restore_Call
- func (_c *CompleteBehaviour_Restore_Call) Run(run func(_a0 context.Context, _a1 *cart.Cart)) *CompleteBehaviour_Restore_Call
- func (_c *CompleteBehaviour_Restore_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, cart.DeferEvents, error)) *CompleteBehaviour_Restore_Call
- type CustomerCartService
- func (_m *CustomerCartService) EXPECT() *CustomerCartService_Expecter
- func (_m *CustomerCartService) GetCart(ctx context.Context, identity auth.Identity, cartID string) (*cart.Cart, error)
- func (_m *CustomerCartService) GetModifyBehaviour(_a0 context.Context, _a1 auth.Identity) (cart.ModifyBehaviour, error)
- func (_m *CustomerCartService) RestoreCart(ctx context.Context, identity auth.Identity, _a2 cart.Cart) (*cart.Cart, error)
- type CustomerCartService_Expecter
- func (_e *CustomerCartService_Expecter) GetCart(ctx interface{}, identity interface{}, cartID interface{}) *CustomerCartService_GetCart_Call
- func (_e *CustomerCartService_Expecter) GetModifyBehaviour(_a0 interface{}, _a1 interface{}) *CustomerCartService_GetModifyBehaviour_Call
- func (_e *CustomerCartService_Expecter) RestoreCart(ctx interface{}, identity interface{}, _a2 interface{}) *CustomerCartService_RestoreCart_Call
- type CustomerCartService_GetCart_Call
- func (_c *CustomerCartService_GetCart_Call) Return(_a0 *cart.Cart, _a1 error) *CustomerCartService_GetCart_Call
- func (_c *CustomerCartService_GetCart_Call) Run(run func(ctx context.Context, identity auth.Identity, cartID string)) *CustomerCartService_GetCart_Call
- func (_c *CustomerCartService_GetCart_Call) RunAndReturn(run func(context.Context, auth.Identity, string) (*cart.Cart, error)) *CustomerCartService_GetCart_Call
- type CustomerCartService_GetModifyBehaviour_Call
- func (_c *CustomerCartService_GetModifyBehaviour_Call) Return(_a0 cart.ModifyBehaviour, _a1 error) *CustomerCartService_GetModifyBehaviour_Call
- func (_c *CustomerCartService_GetModifyBehaviour_Call) Run(run func(_a0 context.Context, _a1 auth.Identity)) *CustomerCartService_GetModifyBehaviour_Call
- func (_c *CustomerCartService_GetModifyBehaviour_Call) RunAndReturn(run func(context.Context, auth.Identity) (cart.ModifyBehaviour, error)) *CustomerCartService_GetModifyBehaviour_Call
- type CustomerCartService_RestoreCart_Call
- func (_c *CustomerCartService_RestoreCart_Call) Return(_a0 *cart.Cart, _a1 error) *CustomerCartService_RestoreCart_Call
- func (_c *CustomerCartService_RestoreCart_Call) Run(run func(ctx context.Context, identity auth.Identity, _a2 cart.Cart)) *CustomerCartService_RestoreCart_Call
- func (_c *CustomerCartService_RestoreCart_Call) RunAndReturn(run func(context.Context, auth.Identity, cart.Cart) (*cart.Cart, error)) *CustomerCartService_RestoreCart_Call
- type GiftCardAndVoucherBehaviour
- type GiftCardAndVoucherBehaviour_ApplyAny_Call
- func (_c *GiftCardAndVoucherBehaviour_ApplyAny_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *GiftCardAndVoucherBehaviour_ApplyAny_Call
- func (_c *GiftCardAndVoucherBehaviour_ApplyAny_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, anyCode string)) *GiftCardAndVoucherBehaviour_ApplyAny_Call
- func (_c *GiftCardAndVoucherBehaviour_ApplyAny_Call) RunAndReturn(...) *GiftCardAndVoucherBehaviour_ApplyAny_Call
- type GiftCardAndVoucherBehaviour_Expecter
- type GiftCardBehaviour
- func (_m *GiftCardBehaviour) ApplyGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *GiftCardBehaviour) EXPECT() *GiftCardBehaviour_Expecter
- func (_m *GiftCardBehaviour) RemoveGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, cart.DeferEvents, error)
- type GiftCardBehaviour_ApplyGiftCard_Call
- func (_c *GiftCardBehaviour_ApplyGiftCard_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *GiftCardBehaviour_ApplyGiftCard_Call
- func (_c *GiftCardBehaviour_ApplyGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardBehaviour_ApplyGiftCard_Call
- func (_c *GiftCardBehaviour_ApplyGiftCard_Call) RunAndReturn(...) *GiftCardBehaviour_ApplyGiftCard_Call
- type GiftCardBehaviour_Expecter
- func (_e *GiftCardBehaviour_Expecter) ApplyGiftCard(ctx interface{}, _a1 interface{}, giftCardCode interface{}) *GiftCardBehaviour_ApplyGiftCard_Call
- func (_e *GiftCardBehaviour_Expecter) RemoveGiftCard(ctx interface{}, _a1 interface{}, giftCardCode interface{}) *GiftCardBehaviour_RemoveGiftCard_Call
- type GiftCardBehaviour_RemoveGiftCard_Call
- func (_c *GiftCardBehaviour_RemoveGiftCard_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *GiftCardBehaviour_RemoveGiftCard_Call
- func (_c *GiftCardBehaviour_RemoveGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardBehaviour_RemoveGiftCard_Call
- func (_c *GiftCardBehaviour_RemoveGiftCard_Call) RunAndReturn(...) *GiftCardBehaviour_RemoveGiftCard_Call
- type GuestCartService
- func (_m *GuestCartService) EXPECT() *GuestCartService_Expecter
- func (_m *GuestCartService) GetCart(ctx context.Context, cartID string) (*cart.Cart, error)
- func (_m *GuestCartService) GetModifyBehaviour(_a0 context.Context) (cart.ModifyBehaviour, error)
- func (_m *GuestCartService) GetNewCart(ctx context.Context) (*cart.Cart, error)
- func (_m *GuestCartService) RestoreCart(ctx context.Context, _a1 cart.Cart) (*cart.Cart, error)
- type GuestCartService_Expecter
- func (_e *GuestCartService_Expecter) GetCart(ctx interface{}, cartID interface{}) *GuestCartService_GetCart_Call
- func (_e *GuestCartService_Expecter) GetModifyBehaviour(_a0 interface{}) *GuestCartService_GetModifyBehaviour_Call
- func (_e *GuestCartService_Expecter) GetNewCart(ctx interface{}) *GuestCartService_GetNewCart_Call
- func (_e *GuestCartService_Expecter) RestoreCart(ctx interface{}, _a1 interface{}) *GuestCartService_RestoreCart_Call
- type GuestCartService_GetCart_Call
- func (_c *GuestCartService_GetCart_Call) Return(_a0 *cart.Cart, _a1 error) *GuestCartService_GetCart_Call
- func (_c *GuestCartService_GetCart_Call) Run(run func(ctx context.Context, cartID string)) *GuestCartService_GetCart_Call
- func (_c *GuestCartService_GetCart_Call) RunAndReturn(run func(context.Context, string) (*cart.Cart, error)) *GuestCartService_GetCart_Call
- type GuestCartService_GetModifyBehaviour_Call
- func (_c *GuestCartService_GetModifyBehaviour_Call) Return(_a0 cart.ModifyBehaviour, _a1 error) *GuestCartService_GetModifyBehaviour_Call
- func (_c *GuestCartService_GetModifyBehaviour_Call) Run(run func(_a0 context.Context)) *GuestCartService_GetModifyBehaviour_Call
- func (_c *GuestCartService_GetModifyBehaviour_Call) RunAndReturn(run func(context.Context) (cart.ModifyBehaviour, error)) *GuestCartService_GetModifyBehaviour_Call
- type GuestCartService_GetNewCart_Call
- func (_c *GuestCartService_GetNewCart_Call) Return(_a0 *cart.Cart, _a1 error) *GuestCartService_GetNewCart_Call
- func (_c *GuestCartService_GetNewCart_Call) Run(run func(ctx context.Context)) *GuestCartService_GetNewCart_Call
- func (_c *GuestCartService_GetNewCart_Call) RunAndReturn(run func(context.Context) (*cart.Cart, error)) *GuestCartService_GetNewCart_Call
- type GuestCartService_RestoreCart_Call
- func (_c *GuestCartService_RestoreCart_Call) Return(_a0 *cart.Cart, _a1 error) *GuestCartService_RestoreCart_Call
- func (_c *GuestCartService_RestoreCart_Call) Run(run func(ctx context.Context, _a1 cart.Cart)) *GuestCartService_RestoreCart_Call
- func (_c *GuestCartService_RestoreCart_Call) RunAndReturn(run func(context.Context, cart.Cart) (*cart.Cart, error)) *GuestCartService_RestoreCart_Call
- type ModifyBehaviour
- func (_m *ModifyBehaviour) AddToCart(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) ApplyVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) CleanCart(ctx context.Context, _a1 *cart.Cart) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) CleanDelivery(ctx context.Context, _a1 *cart.Cart, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) DeleteItem(ctx context.Context, _a1 *cart.Cart, itemID string, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) EXPECT() *ModifyBehaviour_Expecter
- func (_m *ModifyBehaviour) RemoveVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateAdditionalData(ctx context.Context, _a1 *cart.Cart, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateBillingAddress(ctx context.Context, _a1 *cart.Cart, billingAddress cart.Address) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateDeliveryInfo(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateDeliveryInfoAdditionalData(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateItem(ctx context.Context, _a1 *cart.Cart, itemUpdateCommand cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateItems(ctx context.Context, _a1 *cart.Cart, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdatePaymentSelection(ctx context.Context, _a1 *cart.Cart, paymentSelection cart.PaymentSelection) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdatePurchaser(ctx context.Context, _a1 *cart.Cart, purchaser *cart.Person, ...) (*cart.Cart, cart.DeferEvents, error)
- type ModifyBehaviour_AddToCart_Call
- func (_c *ModifyBehaviour_AddToCart_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_AddToCart_Call
- func (_c *ModifyBehaviour_AddToCart_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...)) *ModifyBehaviour_AddToCart_Call
- func (_c *ModifyBehaviour_AddToCart_Call) RunAndReturn(...) *ModifyBehaviour_AddToCart_Call
- type ModifyBehaviour_ApplyVoucher_Call
- func (_c *ModifyBehaviour_ApplyVoucher_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_ApplyVoucher_Call
- func (_c *ModifyBehaviour_ApplyVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *ModifyBehaviour_ApplyVoucher_Call
- func (_c *ModifyBehaviour_ApplyVoucher_Call) RunAndReturn(...) *ModifyBehaviour_ApplyVoucher_Call
- type ModifyBehaviour_CleanCart_Call
- func (_c *ModifyBehaviour_CleanCart_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_CleanCart_Call
- func (_c *ModifyBehaviour_CleanCart_Call) Run(run func(ctx context.Context, _a1 *cart.Cart)) *ModifyBehaviour_CleanCart_Call
- func (_c *ModifyBehaviour_CleanCart_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_CleanCart_Call
- type ModifyBehaviour_CleanDelivery_Call
- func (_c *ModifyBehaviour_CleanDelivery_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_CleanDelivery_Call
- func (_c *ModifyBehaviour_CleanDelivery_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string)) *ModifyBehaviour_CleanDelivery_Call
- func (_c *ModifyBehaviour_CleanDelivery_Call) RunAndReturn(...) *ModifyBehaviour_CleanDelivery_Call
- type ModifyBehaviour_DeleteItem_Call
- func (_c *ModifyBehaviour_DeleteItem_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_DeleteItem_Call
- func (_c *ModifyBehaviour_DeleteItem_Call) Run(...) *ModifyBehaviour_DeleteItem_Call
- func (_c *ModifyBehaviour_DeleteItem_Call) RunAndReturn(...) *ModifyBehaviour_DeleteItem_Call
- type ModifyBehaviour_Expecter
- func (_e *ModifyBehaviour_Expecter) AddToCart(ctx interface{}, _a1 interface{}, deliveryCode interface{}, ...) *ModifyBehaviour_AddToCart_Call
- func (_e *ModifyBehaviour_Expecter) ApplyVoucher(ctx interface{}, _a1 interface{}, couponCode interface{}) *ModifyBehaviour_ApplyVoucher_Call
- func (_e *ModifyBehaviour_Expecter) CleanCart(ctx interface{}, _a1 interface{}) *ModifyBehaviour_CleanCart_Call
- func (_e *ModifyBehaviour_Expecter) CleanDelivery(ctx interface{}, _a1 interface{}, deliveryCode interface{}) *ModifyBehaviour_CleanDelivery_Call
- func (_e *ModifyBehaviour_Expecter) DeleteItem(ctx interface{}, _a1 interface{}, itemID interface{}, deliveryCode interface{}) *ModifyBehaviour_DeleteItem_Call
- func (_e *ModifyBehaviour_Expecter) RemoveVoucher(ctx interface{}, _a1 interface{}, couponCode interface{}) *ModifyBehaviour_RemoveVoucher_Call
- func (_e *ModifyBehaviour_Expecter) UpdateAdditionalData(ctx interface{}, _a1 interface{}, additionalData interface{}) *ModifyBehaviour_UpdateAdditionalData_Call
- func (_e *ModifyBehaviour_Expecter) UpdateBillingAddress(ctx interface{}, _a1 interface{}, billingAddress interface{}) *ModifyBehaviour_UpdateBillingAddress_Call
- func (_e *ModifyBehaviour_Expecter) UpdateDeliveryInfo(ctx interface{}, _a1 interface{}, deliveryCode interface{}, ...) *ModifyBehaviour_UpdateDeliveryInfo_Call
- func (_e *ModifyBehaviour_Expecter) UpdateDeliveryInfoAdditionalData(ctx interface{}, _a1 interface{}, deliveryCode interface{}, ...) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
- func (_e *ModifyBehaviour_Expecter) UpdateItem(ctx interface{}, _a1 interface{}, itemUpdateCommand interface{}) *ModifyBehaviour_UpdateItem_Call
- func (_e *ModifyBehaviour_Expecter) UpdateItems(ctx interface{}, _a1 interface{}, itemUpdateCommands interface{}) *ModifyBehaviour_UpdateItems_Call
- func (_e *ModifyBehaviour_Expecter) UpdatePaymentSelection(ctx interface{}, _a1 interface{}, paymentSelection interface{}) *ModifyBehaviour_UpdatePaymentSelection_Call
- func (_e *ModifyBehaviour_Expecter) UpdatePurchaser(ctx interface{}, _a1 interface{}, purchaser interface{}, ...) *ModifyBehaviour_UpdatePurchaser_Call
- type ModifyBehaviour_RemoveVoucher_Call
- func (_c *ModifyBehaviour_RemoveVoucher_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_RemoveVoucher_Call
- func (_c *ModifyBehaviour_RemoveVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *ModifyBehaviour_RemoveVoucher_Call
- func (_c *ModifyBehaviour_RemoveVoucher_Call) RunAndReturn(...) *ModifyBehaviour_RemoveVoucher_Call
- type ModifyBehaviour_UpdateAdditionalData_Call
- func (_c *ModifyBehaviour_UpdateAdditionalData_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateAdditionalData_Call
- func (_c *ModifyBehaviour_UpdateAdditionalData_Call) Run(...) *ModifyBehaviour_UpdateAdditionalData_Call
- func (_c *ModifyBehaviour_UpdateAdditionalData_Call) RunAndReturn(...) *ModifyBehaviour_UpdateAdditionalData_Call
- type ModifyBehaviour_UpdateBillingAddress_Call
- func (_c *ModifyBehaviour_UpdateBillingAddress_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateBillingAddress_Call
- func (_c *ModifyBehaviour_UpdateBillingAddress_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, billingAddress cart.Address)) *ModifyBehaviour_UpdateBillingAddress_Call
- func (_c *ModifyBehaviour_UpdateBillingAddress_Call) RunAndReturn(...) *ModifyBehaviour_UpdateBillingAddress_Call
- type ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
- func (_c *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
- func (_c *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...)) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
- func (_c *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) RunAndReturn(...) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
- type ModifyBehaviour_UpdateDeliveryInfo_Call
- func (_c *ModifyBehaviour_UpdateDeliveryInfo_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateDeliveryInfo_Call
- func (_c *ModifyBehaviour_UpdateDeliveryInfo_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...)) *ModifyBehaviour_UpdateDeliveryInfo_Call
- func (_c *ModifyBehaviour_UpdateDeliveryInfo_Call) RunAndReturn(...) *ModifyBehaviour_UpdateDeliveryInfo_Call
- type ModifyBehaviour_UpdateItem_Call
- func (_c *ModifyBehaviour_UpdateItem_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateItem_Call
- func (_c *ModifyBehaviour_UpdateItem_Call) Run(...) *ModifyBehaviour_UpdateItem_Call
- func (_c *ModifyBehaviour_UpdateItem_Call) RunAndReturn(...) *ModifyBehaviour_UpdateItem_Call
- type ModifyBehaviour_UpdateItems_Call
- func (_c *ModifyBehaviour_UpdateItems_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateItems_Call
- func (_c *ModifyBehaviour_UpdateItems_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, ...)) *ModifyBehaviour_UpdateItems_Call
- func (_c *ModifyBehaviour_UpdateItems_Call) RunAndReturn(...) *ModifyBehaviour_UpdateItems_Call
- type ModifyBehaviour_UpdatePaymentSelection_Call
- func (_c *ModifyBehaviour_UpdatePaymentSelection_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdatePaymentSelection_Call
- func (_c *ModifyBehaviour_UpdatePaymentSelection_Call) Run(...) *ModifyBehaviour_UpdatePaymentSelection_Call
- func (_c *ModifyBehaviour_UpdatePaymentSelection_Call) RunAndReturn(...) *ModifyBehaviour_UpdatePaymentSelection_Call
- type ModifyBehaviour_UpdatePurchaser_Call
- func (_c *ModifyBehaviour_UpdatePurchaser_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdatePurchaser_Call
- func (_c *ModifyBehaviour_UpdatePurchaser_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, purchaser *cart.Person, ...)) *ModifyBehaviour_UpdatePurchaser_Call
- func (_c *ModifyBehaviour_UpdatePurchaser_Call) RunAndReturn(...) *ModifyBehaviour_UpdatePurchaser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllBehaviour ¶
type AllBehaviour struct { CompleteBehaviour ModifyBehaviour GiftCardAndVoucherBehaviour GiftCardBehaviour }
AllBehaviour is an manually created mock to combine all autogenerated mocks
type CompleteBehaviour ¶
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 (_m *CompleteBehaviour) EXPECT() *CompleteBehaviour_Expecter
type CompleteBehaviour_Complete_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 (_c *CompleteBehaviour_Complete_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *CompleteBehaviour_Complete_Call
func (*CompleteBehaviour_Complete_Call) Run ¶
func (_c *CompleteBehaviour_Complete_Call) Run(run func(_a0 context.Context, _a1 *cart.Cart)) *CompleteBehaviour_Complete_Call
func (*CompleteBehaviour_Complete_Call) RunAndReturn ¶
func (_c *CompleteBehaviour_Complete_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, cart.DeferEvents, error)) *CompleteBehaviour_Complete_Call
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 ¶
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 (_c *CompleteBehaviour_Restore_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *CompleteBehaviour_Restore_Call
func (*CompleteBehaviour_Restore_Call) Run ¶
func (_c *CompleteBehaviour_Restore_Call) Run(run func(_a0 context.Context, _a1 *cart.Cart)) *CompleteBehaviour_Restore_Call
func (*CompleteBehaviour_Restore_Call) RunAndReturn ¶
func (_c *CompleteBehaviour_Restore_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, cart.DeferEvents, error)) *CompleteBehaviour_Restore_Call
type CustomerCartService ¶
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 (_m *CustomerCartService) EXPECT() *CustomerCartService_Expecter
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
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 ¶
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 (_c *CustomerCartService_GetCart_Call) Return(_a0 *cart.Cart, _a1 error) *CustomerCartService_GetCart_Call
func (*CustomerCartService_GetCart_Call) Run ¶
func (_c *CustomerCartService_GetCart_Call) Run(run func(ctx context.Context, identity auth.Identity, cartID string)) *CustomerCartService_GetCart_Call
func (*CustomerCartService_GetCart_Call) RunAndReturn ¶
func (_c *CustomerCartService_GetCart_Call) RunAndReturn(run func(context.Context, auth.Identity, string) (*cart.Cart, error)) *CustomerCartService_GetCart_Call
type CustomerCartService_GetModifyBehaviour_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 (_c *CustomerCartService_GetModifyBehaviour_Call) Return(_a0 cart.ModifyBehaviour, _a1 error) *CustomerCartService_GetModifyBehaviour_Call
func (*CustomerCartService_GetModifyBehaviour_Call) Run ¶
func (_c *CustomerCartService_GetModifyBehaviour_Call) Run(run func(_a0 context.Context, _a1 auth.Identity)) *CustomerCartService_GetModifyBehaviour_Call
func (*CustomerCartService_GetModifyBehaviour_Call) RunAndReturn ¶
func (_c *CustomerCartService_GetModifyBehaviour_Call) RunAndReturn(run func(context.Context, auth.Identity) (cart.ModifyBehaviour, error)) *CustomerCartService_GetModifyBehaviour_Call
type CustomerCartService_RestoreCart_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 (_c *CustomerCartService_RestoreCart_Call) Return(_a0 *cart.Cart, _a1 error) *CustomerCartService_RestoreCart_Call
func (*CustomerCartService_RestoreCart_Call) Run ¶
func (_c *CustomerCartService_RestoreCart_Call) Run(run func(ctx context.Context, identity auth.Identity, _a2 cart.Cart)) *CustomerCartService_RestoreCart_Call
func (*CustomerCartService_RestoreCart_Call) RunAndReturn ¶
type GiftCardAndVoucherBehaviour ¶
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 ¶
func (_m *GiftCardAndVoucherBehaviour) EXPECT() *GiftCardAndVoucherBehaviour_Expecter
type GiftCardAndVoucherBehaviour_ApplyAny_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 (_c *GiftCardAndVoucherBehaviour_ApplyAny_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *GiftCardAndVoucherBehaviour_ApplyAny_Call
func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) Run ¶
func (_c *GiftCardAndVoucherBehaviour_ApplyAny_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, anyCode string)) *GiftCardAndVoucherBehaviour_ApplyAny_Call
func (*GiftCardAndVoucherBehaviour_ApplyAny_Call) RunAndReturn ¶
func (_c *GiftCardAndVoucherBehaviour_ApplyAny_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, cart.DeferEvents, error)) *GiftCardAndVoucherBehaviour_ApplyAny_Call
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 ¶
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 (_m *GiftCardBehaviour) EXPECT() *GiftCardBehaviour_Expecter
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 ¶
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 (_c *GiftCardBehaviour_ApplyGiftCard_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *GiftCardBehaviour_ApplyGiftCard_Call
func (*GiftCardBehaviour_ApplyGiftCard_Call) Run ¶
func (_c *GiftCardBehaviour_ApplyGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardBehaviour_ApplyGiftCard_Call
func (*GiftCardBehaviour_ApplyGiftCard_Call) RunAndReturn ¶
func (_c *GiftCardBehaviour_ApplyGiftCard_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, cart.DeferEvents, error)) *GiftCardBehaviour_ApplyGiftCard_Call
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 ¶
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 (_c *GiftCardBehaviour_RemoveGiftCard_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *GiftCardBehaviour_RemoveGiftCard_Call
func (*GiftCardBehaviour_RemoveGiftCard_Call) Run ¶
func (_c *GiftCardBehaviour_RemoveGiftCard_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, giftCardCode string)) *GiftCardBehaviour_RemoveGiftCard_Call
func (*GiftCardBehaviour_RemoveGiftCard_Call) RunAndReturn ¶
func (_c *GiftCardBehaviour_RemoveGiftCard_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, cart.DeferEvents, error)) *GiftCardBehaviour_RemoveGiftCard_Call
type GuestCartService ¶
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 (_m *GuestCartService) EXPECT() *GuestCartService_Expecter
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 ¶
GetNewCart provides a mock function with given fields: ctx
func (*GuestCartService) RestoreCart ¶
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 ¶
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 (_c *GuestCartService_GetCart_Call) Return(_a0 *cart.Cart, _a1 error) *GuestCartService_GetCart_Call
func (*GuestCartService_GetCart_Call) Run ¶
func (_c *GuestCartService_GetCart_Call) Run(run func(ctx context.Context, cartID string)) *GuestCartService_GetCart_Call
func (*GuestCartService_GetCart_Call) RunAndReturn ¶
func (_c *GuestCartService_GetCart_Call) RunAndReturn(run func(context.Context, string) (*cart.Cart, error)) *GuestCartService_GetCart_Call
type GuestCartService_GetModifyBehaviour_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 (_c *GuestCartService_GetModifyBehaviour_Call) Return(_a0 cart.ModifyBehaviour, _a1 error) *GuestCartService_GetModifyBehaviour_Call
func (*GuestCartService_GetModifyBehaviour_Call) Run ¶
func (_c *GuestCartService_GetModifyBehaviour_Call) Run(run func(_a0 context.Context)) *GuestCartService_GetModifyBehaviour_Call
func (*GuestCartService_GetModifyBehaviour_Call) RunAndReturn ¶
func (_c *GuestCartService_GetModifyBehaviour_Call) RunAndReturn(run func(context.Context) (cart.ModifyBehaviour, error)) *GuestCartService_GetModifyBehaviour_Call
type GuestCartService_GetNewCart_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 (_c *GuestCartService_GetNewCart_Call) Return(_a0 *cart.Cart, _a1 error) *GuestCartService_GetNewCart_Call
func (*GuestCartService_GetNewCart_Call) Run ¶
func (_c *GuestCartService_GetNewCart_Call) Run(run func(ctx context.Context)) *GuestCartService_GetNewCart_Call
func (*GuestCartService_GetNewCart_Call) RunAndReturn ¶
func (_c *GuestCartService_GetNewCart_Call) RunAndReturn(run func(context.Context) (*cart.Cart, error)) *GuestCartService_GetNewCart_Call
type GuestCartService_RestoreCart_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 (_c *GuestCartService_RestoreCart_Call) Return(_a0 *cart.Cart, _a1 error) *GuestCartService_RestoreCart_Call
func (*GuestCartService_RestoreCart_Call) Run ¶
func (_c *GuestCartService_RestoreCart_Call) Run(run func(ctx context.Context, _a1 cart.Cart)) *GuestCartService_RestoreCart_Call
func (*GuestCartService_RestoreCart_Call) RunAndReturn ¶
func (_c *GuestCartService_RestoreCart_Call) RunAndReturn(run func(context.Context, cart.Cart) (*cart.Cart, error)) *GuestCartService_RestoreCart_Call
type ModifyBehaviour ¶
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 (_m *ModifyBehaviour) EXPECT() *ModifyBehaviour_Expecter
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 ¶
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 (_c *ModifyBehaviour_AddToCart_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_AddToCart_Call
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 ¶
func (_c *ModifyBehaviour_AddToCart_Call) RunAndReturn(run func(context.Context, *cart.Cart, string, cart.AddRequest) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_AddToCart_Call
type ModifyBehaviour_ApplyVoucher_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 (_c *ModifyBehaviour_ApplyVoucher_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_ApplyVoucher_Call
func (*ModifyBehaviour_ApplyVoucher_Call) Run ¶
func (_c *ModifyBehaviour_ApplyVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *ModifyBehaviour_ApplyVoucher_Call
func (*ModifyBehaviour_ApplyVoucher_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_ApplyVoucher_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_ApplyVoucher_Call
type ModifyBehaviour_CleanCart_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 (_c *ModifyBehaviour_CleanCart_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_CleanCart_Call
func (*ModifyBehaviour_CleanCart_Call) Run ¶
func (_c *ModifyBehaviour_CleanCart_Call) Run(run func(ctx context.Context, _a1 *cart.Cart)) *ModifyBehaviour_CleanCart_Call
func (*ModifyBehaviour_CleanCart_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_CleanCart_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_CleanCart_Call
type ModifyBehaviour_CleanDelivery_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 (_c *ModifyBehaviour_CleanDelivery_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_CleanDelivery_Call
func (*ModifyBehaviour_CleanDelivery_Call) Run ¶
func (_c *ModifyBehaviour_CleanDelivery_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string)) *ModifyBehaviour_CleanDelivery_Call
func (*ModifyBehaviour_CleanDelivery_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_CleanDelivery_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_CleanDelivery_Call
type ModifyBehaviour_DeleteItem_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 (_c *ModifyBehaviour_DeleteItem_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_DeleteItem_Call
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 ¶
func (_c *ModifyBehaviour_DeleteItem_Call) RunAndReturn(run func(context.Context, *cart.Cart, string, string) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_DeleteItem_Call
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 ¶
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 (_c *ModifyBehaviour_RemoveVoucher_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_RemoveVoucher_Call
func (*ModifyBehaviour_RemoveVoucher_Call) Run ¶
func (_c *ModifyBehaviour_RemoveVoucher_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, couponCode string)) *ModifyBehaviour_RemoveVoucher_Call
func (*ModifyBehaviour_RemoveVoucher_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_RemoveVoucher_Call) RunAndReturn(run func(context.Context, *cart.Cart, string) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_RemoveVoucher_Call
type ModifyBehaviour_UpdateAdditionalData_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 (_c *ModifyBehaviour_UpdateAdditionalData_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateAdditionalData_Call
func (*ModifyBehaviour_UpdateAdditionalData_Call) Run ¶
func (_c *ModifyBehaviour_UpdateAdditionalData_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, additionalData *cart.AdditionalData)) *ModifyBehaviour_UpdateAdditionalData_Call
func (*ModifyBehaviour_UpdateAdditionalData_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdateAdditionalData_Call) RunAndReturn(run func(context.Context, *cart.Cart, *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdateAdditionalData_Call
type ModifyBehaviour_UpdateBillingAddress_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 (_c *ModifyBehaviour_UpdateBillingAddress_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateBillingAddress_Call
func (*ModifyBehaviour_UpdateBillingAddress_Call) Run ¶
func (_c *ModifyBehaviour_UpdateBillingAddress_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, billingAddress cart.Address)) *ModifyBehaviour_UpdateBillingAddress_Call
func (*ModifyBehaviour_UpdateBillingAddress_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdateBillingAddress_Call) RunAndReturn(run func(context.Context, *cart.Cart, cart.Address) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdateBillingAddress_Call
type ModifyBehaviour_UpdateDeliveryInfoAdditionalData_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 (_c *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
func (*ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Run ¶
func (_c *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string, additionalData *cart.AdditionalData)) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
func (*ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call) RunAndReturn(run func(context.Context, *cart.Cart, string, *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdateDeliveryInfoAdditionalData_Call
type ModifyBehaviour_UpdateDeliveryInfo_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 (_c *ModifyBehaviour_UpdateDeliveryInfo_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateDeliveryInfo_Call
func (*ModifyBehaviour_UpdateDeliveryInfo_Call) Run ¶
func (_c *ModifyBehaviour_UpdateDeliveryInfo_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, deliveryCode string, deliveryInfo cart.DeliveryInfoUpdateCommand)) *ModifyBehaviour_UpdateDeliveryInfo_Call
func (*ModifyBehaviour_UpdateDeliveryInfo_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdateDeliveryInfo_Call) RunAndReturn(run func(context.Context, *cart.Cart, string, cart.DeliveryInfoUpdateCommand) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdateDeliveryInfo_Call
type ModifyBehaviour_UpdateItem_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 (_c *ModifyBehaviour_UpdateItem_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateItem_Call
func (*ModifyBehaviour_UpdateItem_Call) Run ¶
func (_c *ModifyBehaviour_UpdateItem_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, itemUpdateCommand cart.ItemUpdateCommand)) *ModifyBehaviour_UpdateItem_Call
func (*ModifyBehaviour_UpdateItem_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdateItem_Call) RunAndReturn(run func(context.Context, *cart.Cart, cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdateItem_Call
type ModifyBehaviour_UpdateItems_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 (_c *ModifyBehaviour_UpdateItems_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdateItems_Call
func (*ModifyBehaviour_UpdateItems_Call) Run ¶
func (_c *ModifyBehaviour_UpdateItems_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, itemUpdateCommands []cart.ItemUpdateCommand)) *ModifyBehaviour_UpdateItems_Call
func (*ModifyBehaviour_UpdateItems_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdateItems_Call) RunAndReturn(run func(context.Context, *cart.Cart, []cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdateItems_Call
type ModifyBehaviour_UpdatePaymentSelection_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 (_c *ModifyBehaviour_UpdatePaymentSelection_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdatePaymentSelection_Call
func (*ModifyBehaviour_UpdatePaymentSelection_Call) Run ¶
func (_c *ModifyBehaviour_UpdatePaymentSelection_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, paymentSelection cart.PaymentSelection)) *ModifyBehaviour_UpdatePaymentSelection_Call
func (*ModifyBehaviour_UpdatePaymentSelection_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdatePaymentSelection_Call) RunAndReturn(run func(context.Context, *cart.Cart, cart.PaymentSelection) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdatePaymentSelection_Call
type ModifyBehaviour_UpdatePurchaser_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 (_c *ModifyBehaviour_UpdatePurchaser_Call) Return(_a0 *cart.Cart, _a1 cart.DeferEvents, _a2 error) *ModifyBehaviour_UpdatePurchaser_Call
func (*ModifyBehaviour_UpdatePurchaser_Call) Run ¶
func (_c *ModifyBehaviour_UpdatePurchaser_Call) Run(run func(ctx context.Context, _a1 *cart.Cart, purchaser *cart.Person, additionalData *cart.AdditionalData)) *ModifyBehaviour_UpdatePurchaser_Call
func (*ModifyBehaviour_UpdatePurchaser_Call) RunAndReturn ¶
func (_c *ModifyBehaviour_UpdatePurchaser_Call) RunAndReturn(run func(context.Context, *cart.Cart, *cart.Person, *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)) *ModifyBehaviour_UpdatePurchaser_Call