Documentation ¶
Index ¶
- type CartCache
- func (_m *CartCache) BuildIdentifier(_a0 context.Context, _a1 *web.Session) (application.CartCacheIdentifier, error)
- func (_m *CartCache) CacheCart(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier, ...) error
- func (_m *CartCache) Delete(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier) error
- func (_m *CartCache) DeleteAll(_a0 context.Context, _a1 *web.Session) error
- func (_m *CartCache) EXPECT() *CartCache_Expecter
- func (_m *CartCache) GetCart(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier) (*cart.Cart, error)
- func (_m *CartCache) Invalidate(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier) error
- type CartCache_BuildIdentifier_Call
- func (_c *CartCache_BuildIdentifier_Call) Return(_a0 application.CartCacheIdentifier, _a1 error) *CartCache_BuildIdentifier_Call
- func (_c *CartCache_BuildIdentifier_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *CartCache_BuildIdentifier_Call
- func (_c *CartCache_BuildIdentifier_Call) RunAndReturn(...) *CartCache_BuildIdentifier_Call
- type CartCache_CacheCart_Call
- type CartCache_DeleteAll_Call
- func (_c *CartCache_DeleteAll_Call) Return(_a0 error) *CartCache_DeleteAll_Call
- func (_c *CartCache_DeleteAll_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *CartCache_DeleteAll_Call
- func (_c *CartCache_DeleteAll_Call) RunAndReturn(run func(context.Context, *web.Session) error) *CartCache_DeleteAll_Call
- type CartCache_Delete_Call
- type CartCache_Expecter
- func (_e *CartCache_Expecter) BuildIdentifier(_a0 interface{}, _a1 interface{}) *CartCache_BuildIdentifier_Call
- func (_e *CartCache_Expecter) CacheCart(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *CartCache_CacheCart_Call
- func (_e *CartCache_Expecter) Delete(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CartCache_Delete_Call
- func (_e *CartCache_Expecter) DeleteAll(_a0 interface{}, _a1 interface{}) *CartCache_DeleteAll_Call
- func (_e *CartCache_Expecter) GetCart(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CartCache_GetCart_Call
- func (_e *CartCache_Expecter) Invalidate(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CartCache_Invalidate_Call
- type CartCache_GetCart_Call
- type CartCache_Invalidate_Call
- func (_c *CartCache_Invalidate_Call) Return(_a0 error) *CartCache_Invalidate_Call
- func (_c *CartCache_Invalidate_Call) Run(...) *CartCache_Invalidate_Call
- func (_c *CartCache_Invalidate_Call) RunAndReturn(run func(context.Context, *web.Session, application.CartCacheIdentifier) error) *CartCache_Invalidate_Call
- type CartMerger
- type CartMerger_Expecter
- type CartMerger_Merge_Call
- func (_c *CartMerger_Merge_Call) Return() *CartMerger_Merge_Call
- func (_c *CartMerger_Merge_Call) Run(run func(ctx context.Context, session *web.Session, guestCart cart.Cart, ...)) *CartMerger_Merge_Call
- func (_c *CartMerger_Merge_Call) RunAndReturn(run func(context.Context, *web.Session, cart.Cart, cart.Cart)) *CartMerger_Merge_Call
- type CartReceiver
- func (_m *CartReceiver) EXPECT() *CartReceiver_Expecter
- func (_m *CartReceiver) GetCart(ctx context.Context, session *web.Session) (*cart.Cart, cart.ModifyBehaviour, error)
- func (_m *CartReceiver) GetCartWithoutCache(ctx context.Context, session *web.Session) (*cart.Cart, error)
- func (_m *CartReceiver) ModifyBehaviour(ctx context.Context) (cart.ModifyBehaviour, error)
- func (_m *CartReceiver) ShouldHaveCart(ctx context.Context, session *web.Session) bool
- func (_m *CartReceiver) ShouldHaveGuestCart(session *web.Session) bool
- func (_m *CartReceiver) ViewCart(ctx context.Context, session *web.Session) (*cart.Cart, error)
- func (_m *CartReceiver) ViewGuestCart(ctx context.Context, session *web.Session) (*cart.Cart, error)
- type CartReceiver_Expecter
- func (_e *CartReceiver_Expecter) GetCart(ctx interface{}, session interface{}) *CartReceiver_GetCart_Call
- func (_e *CartReceiver_Expecter) GetCartWithoutCache(ctx interface{}, session interface{}) *CartReceiver_GetCartWithoutCache_Call
- func (_e *CartReceiver_Expecter) ModifyBehaviour(ctx interface{}) *CartReceiver_ModifyBehaviour_Call
- func (_e *CartReceiver_Expecter) ShouldHaveCart(ctx interface{}, session interface{}) *CartReceiver_ShouldHaveCart_Call
- func (_e *CartReceiver_Expecter) ShouldHaveGuestCart(session interface{}) *CartReceiver_ShouldHaveGuestCart_Call
- func (_e *CartReceiver_Expecter) ViewCart(ctx interface{}, session interface{}) *CartReceiver_ViewCart_Call
- func (_e *CartReceiver_Expecter) ViewGuestCart(ctx interface{}, session interface{}) *CartReceiver_ViewGuestCart_Call
- type CartReceiver_GetCartWithoutCache_Call
- func (_c *CartReceiver_GetCartWithoutCache_Call) Return(_a0 *cart.Cart, _a1 error) *CartReceiver_GetCartWithoutCache_Call
- func (_c *CartReceiver_GetCartWithoutCache_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_GetCartWithoutCache_Call
- func (_c *CartReceiver_GetCartWithoutCache_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartReceiver_GetCartWithoutCache_Call
- type CartReceiver_GetCart_Call
- func (_c *CartReceiver_GetCart_Call) Return(_a0 *cart.Cart, _a1 cart.ModifyBehaviour, _a2 error) *CartReceiver_GetCart_Call
- func (_c *CartReceiver_GetCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_GetCart_Call
- func (_c *CartReceiver_GetCart_Call) RunAndReturn(...) *CartReceiver_GetCart_Call
- type CartReceiver_ModifyBehaviour_Call
- func (_c *CartReceiver_ModifyBehaviour_Call) Return(_a0 cart.ModifyBehaviour, _a1 error) *CartReceiver_ModifyBehaviour_Call
- func (_c *CartReceiver_ModifyBehaviour_Call) Run(run func(ctx context.Context)) *CartReceiver_ModifyBehaviour_Call
- func (_c *CartReceiver_ModifyBehaviour_Call) RunAndReturn(run func(context.Context) (cart.ModifyBehaviour, error)) *CartReceiver_ModifyBehaviour_Call
- type CartReceiver_ShouldHaveCart_Call
- func (_c *CartReceiver_ShouldHaveCart_Call) Return(_a0 bool) *CartReceiver_ShouldHaveCart_Call
- func (_c *CartReceiver_ShouldHaveCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_ShouldHaveCart_Call
- func (_c *CartReceiver_ShouldHaveCart_Call) RunAndReturn(run func(context.Context, *web.Session) bool) *CartReceiver_ShouldHaveCart_Call
- type CartReceiver_ShouldHaveGuestCart_Call
- func (_c *CartReceiver_ShouldHaveGuestCart_Call) Return(_a0 bool) *CartReceiver_ShouldHaveGuestCart_Call
- func (_c *CartReceiver_ShouldHaveGuestCart_Call) Run(run func(session *web.Session)) *CartReceiver_ShouldHaveGuestCart_Call
- func (_c *CartReceiver_ShouldHaveGuestCart_Call) RunAndReturn(run func(*web.Session) bool) *CartReceiver_ShouldHaveGuestCart_Call
- type CartReceiver_ViewCart_Call
- func (_c *CartReceiver_ViewCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartReceiver_ViewCart_Call
- func (_c *CartReceiver_ViewCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_ViewCart_Call
- func (_c *CartReceiver_ViewCart_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartReceiver_ViewCart_Call
- type CartReceiver_ViewGuestCart_Call
- func (_c *CartReceiver_ViewGuestCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartReceiver_ViewGuestCart_Call
- func (_c *CartReceiver_ViewGuestCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_ViewGuestCart_Call
- func (_c *CartReceiver_ViewGuestCart_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartReceiver_ViewGuestCart_Call
- type CartService
- func (_m *CartService) AddProduct(ctx context.Context, session *web.Session, deliveryCode string, ...) (domain.BasicProduct, error)
- func (_m *CartService) AdjustItemsToRestrictedQty(ctx context.Context, session *web.Session) (application.QtyAdjustmentResults, error)
- func (_m *CartService) ApplyAny(ctx context.Context, session *web.Session, anyCode string) (*cart.Cart, error)
- func (_m *CartService) ApplyGiftCard(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
- func (_m *CartService) ApplyVoucher(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
- func (_m *CartService) BuildAddRequest(ctx context.Context, marketplaceCode string, variantMarketplaceCode string, ...) cart.AddRequest
- func (_m *CartService) CancelOrder(ctx context.Context, session *web.Session, ...) (*cart.Cart, error)
- func (_m *CartService) CancelOrderWithoutRestore(ctx context.Context, session *web.Session, ...) error
- func (_m *CartService) Clean(ctx context.Context, session *web.Session) error
- func (_m *CartService) CompleteCurrentCart(ctx context.Context) (*cart.Cart, error)
- func (_m *CartService) CreateInitialDeliveryIfNotPresent(ctx context.Context, session *web.Session, deliveryCode string) (*cart.Cart, error)
- func (_m *CartService) DeleteAllItems(ctx context.Context, session *web.Session) error
- func (_m *CartService) DeleteCartInCache(ctx context.Context, session *web.Session, _a2 *cart.Cart)
- func (_m *CartService) DeleteDelivery(ctx context.Context, session *web.Session, deliveryCode string) (*cart.Cart, error)
- func (_m *CartService) DeleteItem(ctx context.Context, session *web.Session, itemID string, deliveryCode string) error
- func (_m *CartService) EXPECT() *CartService_Expecter
- func (_m *CartService) ForceReserveOrderIDAndSave(ctx context.Context, session *web.Session) (*cart.Cart, error)
- func (_m *CartService) GetCartReceiverService() *application.CartReceiverService
- func (_m *CartService) GetDefaultDeliveryCode() string
- func (_m *CartService) GetInitialDelivery(deliveryCode string) (*cart.DeliveryInfo, error)
- func (_m *CartService) PlaceOrder(ctx context.Context, session *web.Session, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)
- func (_m *CartService) PlaceOrderWithCart(ctx context.Context, session *web.Session, _a2 *cart.Cart, ...) (placeorder.PlacedOrderInfos, error)
- func (_m *CartService) RemoveGiftCard(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
- func (_m *CartService) RemoveVoucher(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
- func (_m *CartService) ReserveOrderIDAndSave(ctx context.Context, session *web.Session) (*cart.Cart, error)
- func (_m *CartService) RestoreCart(ctx context.Context, _a1 *cart.Cart) (*cart.Cart, error)
- func (_m *CartService) UpdateAdditionalData(ctx context.Context, session *web.Session, additionalData map[string]string) (*cart.Cart, error)
- func (_m *CartService) UpdateBillingAddress(ctx context.Context, session *web.Session, billingAddress *cart.Address) error
- func (_m *CartService) UpdateDeliveryAdditionalData(ctx context.Context, session *web.Session, deliveryCode string, ...) (*cart.Cart, error)
- func (_m *CartService) UpdateDeliveryInfo(ctx context.Context, session *web.Session, deliveryCode string, ...) error
- func (_m *CartService) UpdateItemBundleConfig(ctx context.Context, session *web.Session, ...) error
- func (_m *CartService) UpdateItemQty(ctx context.Context, session *web.Session, itemID string, deliveryCode string, ...) error
- func (_m *CartService) UpdateItemSourceID(ctx context.Context, session *web.Session, itemID string, sourceID string) error
- func (_m *CartService) UpdateItems(ctx context.Context, session *web.Session, ...) error
- func (_m *CartService) UpdatePaymentSelection(ctx context.Context, session *web.Session, ...) error
- func (_m *CartService) UpdatePurchaser(ctx context.Context, session *web.Session, purchaser *cart.Person, ...) error
- func (_m *CartService) ValidateCart(ctx context.Context, session *web.Session, ...) validation.Result
- func (_m *CartService) ValidateCurrentCart(ctx context.Context, session *web.Session) (validation.Result, error)
- type CartService_AddProduct_Call
- func (_c *CartService_AddProduct_Call) Return(_a0 domain.BasicProduct, _a1 error) *CartService_AddProduct_Call
- func (_c *CartService_AddProduct_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string, ...)) *CartService_AddProduct_Call
- func (_c *CartService_AddProduct_Call) RunAndReturn(...) *CartService_AddProduct_Call
- type CartService_AdjustItemsToRestrictedQty_Call
- func (_c *CartService_AdjustItemsToRestrictedQty_Call) Return(_a0 application.QtyAdjustmentResults, _a1 error) *CartService_AdjustItemsToRestrictedQty_Call
- func (_c *CartService_AdjustItemsToRestrictedQty_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_AdjustItemsToRestrictedQty_Call
- func (_c *CartService_AdjustItemsToRestrictedQty_Call) RunAndReturn(...) *CartService_AdjustItemsToRestrictedQty_Call
- type CartService_ApplyAny_Call
- func (_c *CartService_ApplyAny_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ApplyAny_Call
- func (_c *CartService_ApplyAny_Call) Run(run func(ctx context.Context, session *web.Session, anyCode string)) *CartService_ApplyAny_Call
- func (_c *CartService_ApplyAny_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_ApplyAny_Call
- type CartService_ApplyGiftCard_Call
- func (_c *CartService_ApplyGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ApplyGiftCard_Call
- func (_c *CartService_ApplyGiftCard_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_ApplyGiftCard_Call
- func (_c *CartService_ApplyGiftCard_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_ApplyGiftCard_Call
- type CartService_ApplyVoucher_Call
- func (_c *CartService_ApplyVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ApplyVoucher_Call
- func (_c *CartService_ApplyVoucher_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_ApplyVoucher_Call
- func (_c *CartService_ApplyVoucher_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_ApplyVoucher_Call
- type CartService_BuildAddRequest_Call
- type CartService_CancelOrderWithoutRestore_Call
- func (_c *CartService_CancelOrderWithoutRestore_Call) Return(_a0 error) *CartService_CancelOrderWithoutRestore_Call
- func (_c *CartService_CancelOrderWithoutRestore_Call) Run(run func(ctx context.Context, session *web.Session, ...)) *CartService_CancelOrderWithoutRestore_Call
- func (_c *CartService_CancelOrderWithoutRestore_Call) RunAndReturn(run func(context.Context, *web.Session, placeorder.PlacedOrderInfos) error) *CartService_CancelOrderWithoutRestore_Call
- type CartService_CancelOrder_Call
- func (_c *CartService_CancelOrder_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_CancelOrder_Call
- func (_c *CartService_CancelOrder_Call) Run(run func(ctx context.Context, session *web.Session, ...)) *CartService_CancelOrder_Call
- func (_c *CartService_CancelOrder_Call) RunAndReturn(...) *CartService_CancelOrder_Call
- type CartService_Clean_Call
- func (_c *CartService_Clean_Call) Return(_a0 error) *CartService_Clean_Call
- func (_c *CartService_Clean_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_Clean_Call
- func (_c *CartService_Clean_Call) RunAndReturn(run func(context.Context, *web.Session) error) *CartService_Clean_Call
- type CartService_CompleteCurrentCart_Call
- func (_c *CartService_CompleteCurrentCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_CompleteCurrentCart_Call
- func (_c *CartService_CompleteCurrentCart_Call) Run(run func(ctx context.Context)) *CartService_CompleteCurrentCart_Call
- func (_c *CartService_CompleteCurrentCart_Call) RunAndReturn(run func(context.Context) (*cart.Cart, error)) *CartService_CompleteCurrentCart_Call
- type CartService_CreateInitialDeliveryIfNotPresent_Call
- func (_c *CartService_CreateInitialDeliveryIfNotPresent_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_CreateInitialDeliveryIfNotPresent_Call
- func (_c *CartService_CreateInitialDeliveryIfNotPresent_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string)) *CartService_CreateInitialDeliveryIfNotPresent_Call
- func (_c *CartService_CreateInitialDeliveryIfNotPresent_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_CreateInitialDeliveryIfNotPresent_Call
- type CartService_DeleteAllItems_Call
- func (_c *CartService_DeleteAllItems_Call) Return(_a0 error) *CartService_DeleteAllItems_Call
- func (_c *CartService_DeleteAllItems_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_DeleteAllItems_Call
- func (_c *CartService_DeleteAllItems_Call) RunAndReturn(run func(context.Context, *web.Session) error) *CartService_DeleteAllItems_Call
- type CartService_DeleteCartInCache_Call
- func (_c *CartService_DeleteCartInCache_Call) Return() *CartService_DeleteCartInCache_Call
- func (_c *CartService_DeleteCartInCache_Call) Run(run func(ctx context.Context, session *web.Session, _a2 *cart.Cart)) *CartService_DeleteCartInCache_Call
- func (_c *CartService_DeleteCartInCache_Call) RunAndReturn(run func(context.Context, *web.Session, *cart.Cart)) *CartService_DeleteCartInCache_Call
- type CartService_DeleteDelivery_Call
- func (_c *CartService_DeleteDelivery_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_DeleteDelivery_Call
- func (_c *CartService_DeleteDelivery_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string)) *CartService_DeleteDelivery_Call
- func (_c *CartService_DeleteDelivery_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_DeleteDelivery_Call
- type CartService_DeleteItem_Call
- func (_c *CartService_DeleteItem_Call) Return(_a0 error) *CartService_DeleteItem_Call
- func (_c *CartService_DeleteItem_Call) Run(...) *CartService_DeleteItem_Call
- func (_c *CartService_DeleteItem_Call) RunAndReturn(run func(context.Context, *web.Session, string, string) error) *CartService_DeleteItem_Call
- type CartService_Expecter
- func (_e *CartService_Expecter) AddProduct(ctx interface{}, session interface{}, deliveryCode interface{}, ...) *CartService_AddProduct_Call
- func (_e *CartService_Expecter) AdjustItemsToRestrictedQty(ctx interface{}, session interface{}) *CartService_AdjustItemsToRestrictedQty_Call
- func (_e *CartService_Expecter) ApplyAny(ctx interface{}, session interface{}, anyCode interface{}) *CartService_ApplyAny_Call
- func (_e *CartService_Expecter) ApplyGiftCard(ctx interface{}, session interface{}, couponCode interface{}) *CartService_ApplyGiftCard_Call
- func (_e *CartService_Expecter) ApplyVoucher(ctx interface{}, session interface{}, couponCode interface{}) *CartService_ApplyVoucher_Call
- func (_e *CartService_Expecter) BuildAddRequest(ctx interface{}, marketplaceCode interface{}, ...) *CartService_BuildAddRequest_Call
- func (_e *CartService_Expecter) CancelOrder(ctx interface{}, session interface{}, orderInfos interface{}, _a3 interface{}) *CartService_CancelOrder_Call
- func (_e *CartService_Expecter) CancelOrderWithoutRestore(ctx interface{}, session interface{}, orderInfos interface{}) *CartService_CancelOrderWithoutRestore_Call
- func (_e *CartService_Expecter) Clean(ctx interface{}, session interface{}) *CartService_Clean_Call
- func (_e *CartService_Expecter) CompleteCurrentCart(ctx interface{}) *CartService_CompleteCurrentCart_Call
- func (_e *CartService_Expecter) CreateInitialDeliveryIfNotPresent(ctx interface{}, session interface{}, deliveryCode interface{}) *CartService_CreateInitialDeliveryIfNotPresent_Call
- func (_e *CartService_Expecter) DeleteAllItems(ctx interface{}, session interface{}) *CartService_DeleteAllItems_Call
- func (_e *CartService_Expecter) DeleteCartInCache(ctx interface{}, session interface{}, _a2 interface{}) *CartService_DeleteCartInCache_Call
- func (_e *CartService_Expecter) DeleteDelivery(ctx interface{}, session interface{}, deliveryCode interface{}) *CartService_DeleteDelivery_Call
- func (_e *CartService_Expecter) DeleteItem(ctx interface{}, session interface{}, itemID interface{}, ...) *CartService_DeleteItem_Call
- func (_e *CartService_Expecter) ForceReserveOrderIDAndSave(ctx interface{}, session interface{}) *CartService_ForceReserveOrderIDAndSave_Call
- func (_e *CartService_Expecter) GetCartReceiverService() *CartService_GetCartReceiverService_Call
- func (_e *CartService_Expecter) GetDefaultDeliveryCode() *CartService_GetDefaultDeliveryCode_Call
- func (_e *CartService_Expecter) GetInitialDelivery(deliveryCode interface{}) *CartService_GetInitialDelivery_Call
- func (_e *CartService_Expecter) PlaceOrder(ctx interface{}, session interface{}, payment interface{}) *CartService_PlaceOrder_Call
- func (_e *CartService_Expecter) PlaceOrderWithCart(ctx interface{}, session interface{}, _a2 interface{}, payment interface{}) *CartService_PlaceOrderWithCart_Call
- func (_e *CartService_Expecter) RemoveGiftCard(ctx interface{}, session interface{}, couponCode interface{}) *CartService_RemoveGiftCard_Call
- func (_e *CartService_Expecter) RemoveVoucher(ctx interface{}, session interface{}, couponCode interface{}) *CartService_RemoveVoucher_Call
- func (_e *CartService_Expecter) ReserveOrderIDAndSave(ctx interface{}, session interface{}) *CartService_ReserveOrderIDAndSave_Call
- func (_e *CartService_Expecter) RestoreCart(ctx interface{}, _a1 interface{}) *CartService_RestoreCart_Call
- func (_e *CartService_Expecter) UpdateAdditionalData(ctx interface{}, session interface{}, additionalData interface{}) *CartService_UpdateAdditionalData_Call
- func (_e *CartService_Expecter) UpdateBillingAddress(ctx interface{}, session interface{}, billingAddress interface{}) *CartService_UpdateBillingAddress_Call
- func (_e *CartService_Expecter) UpdateDeliveryAdditionalData(ctx interface{}, session interface{}, deliveryCode interface{}, ...) *CartService_UpdateDeliveryAdditionalData_Call
- func (_e *CartService_Expecter) UpdateDeliveryInfo(ctx interface{}, session interface{}, deliveryCode interface{}, ...) *CartService_UpdateDeliveryInfo_Call
- func (_e *CartService_Expecter) UpdateItemBundleConfig(ctx interface{}, session interface{}, updateCommand interface{}) *CartService_UpdateItemBundleConfig_Call
- func (_e *CartService_Expecter) UpdateItemQty(ctx interface{}, session interface{}, itemID interface{}, ...) *CartService_UpdateItemQty_Call
- func (_e *CartService_Expecter) UpdateItemSourceID(ctx interface{}, session interface{}, itemID interface{}, sourceID interface{}) *CartService_UpdateItemSourceID_Call
- func (_e *CartService_Expecter) UpdateItems(ctx interface{}, session interface{}, updateCommands interface{}) *CartService_UpdateItems_Call
- func (_e *CartService_Expecter) UpdatePaymentSelection(ctx interface{}, session interface{}, paymentSelection interface{}) *CartService_UpdatePaymentSelection_Call
- func (_e *CartService_Expecter) UpdatePurchaser(ctx interface{}, session interface{}, purchaser interface{}, ...) *CartService_UpdatePurchaser_Call
- func (_e *CartService_Expecter) ValidateCart(ctx interface{}, session interface{}, decoratedCart interface{}) *CartService_ValidateCart_Call
- func (_e *CartService_Expecter) ValidateCurrentCart(ctx interface{}, session interface{}) *CartService_ValidateCurrentCart_Call
- type CartService_ForceReserveOrderIDAndSave_Call
- func (_c *CartService_ForceReserveOrderIDAndSave_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ForceReserveOrderIDAndSave_Call
- func (_c *CartService_ForceReserveOrderIDAndSave_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_ForceReserveOrderIDAndSave_Call
- func (_c *CartService_ForceReserveOrderIDAndSave_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartService_ForceReserveOrderIDAndSave_Call
- type CartService_GetCartReceiverService_Call
- func (_c *CartService_GetCartReceiverService_Call) Return(_a0 *application.CartReceiverService) *CartService_GetCartReceiverService_Call
- func (_c *CartService_GetCartReceiverService_Call) Run(run func()) *CartService_GetCartReceiverService_Call
- func (_c *CartService_GetCartReceiverService_Call) RunAndReturn(run func() *application.CartReceiverService) *CartService_GetCartReceiverService_Call
- type CartService_GetDefaultDeliveryCode_Call
- func (_c *CartService_GetDefaultDeliveryCode_Call) Return(_a0 string) *CartService_GetDefaultDeliveryCode_Call
- func (_c *CartService_GetDefaultDeliveryCode_Call) Run(run func()) *CartService_GetDefaultDeliveryCode_Call
- func (_c *CartService_GetDefaultDeliveryCode_Call) RunAndReturn(run func() string) *CartService_GetDefaultDeliveryCode_Call
- type CartService_GetInitialDelivery_Call
- func (_c *CartService_GetInitialDelivery_Call) Return(_a0 *cart.DeliveryInfo, _a1 error) *CartService_GetInitialDelivery_Call
- func (_c *CartService_GetInitialDelivery_Call) Run(run func(deliveryCode string)) *CartService_GetInitialDelivery_Call
- func (_c *CartService_GetInitialDelivery_Call) RunAndReturn(run func(string) (*cart.DeliveryInfo, error)) *CartService_GetInitialDelivery_Call
- type CartService_PlaceOrderWithCart_Call
- func (_c *CartService_PlaceOrderWithCart_Call) Return(_a0 placeorder.PlacedOrderInfos, _a1 error) *CartService_PlaceOrderWithCart_Call
- func (_c *CartService_PlaceOrderWithCart_Call) Run(run func(ctx context.Context, session *web.Session, _a2 *cart.Cart, ...)) *CartService_PlaceOrderWithCart_Call
- func (_c *CartService_PlaceOrderWithCart_Call) RunAndReturn(...) *CartService_PlaceOrderWithCart_Call
- type CartService_PlaceOrder_Call
- type CartService_RemoveGiftCard_Call
- func (_c *CartService_RemoveGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_RemoveGiftCard_Call
- func (_c *CartService_RemoveGiftCard_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_RemoveGiftCard_Call
- func (_c *CartService_RemoveGiftCard_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_RemoveGiftCard_Call
- type CartService_RemoveVoucher_Call
- func (_c *CartService_RemoveVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_RemoveVoucher_Call
- func (_c *CartService_RemoveVoucher_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_RemoveVoucher_Call
- func (_c *CartService_RemoveVoucher_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_RemoveVoucher_Call
- type CartService_ReserveOrderIDAndSave_Call
- func (_c *CartService_ReserveOrderIDAndSave_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ReserveOrderIDAndSave_Call
- func (_c *CartService_ReserveOrderIDAndSave_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_ReserveOrderIDAndSave_Call
- func (_c *CartService_ReserveOrderIDAndSave_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartService_ReserveOrderIDAndSave_Call
- type CartService_RestoreCart_Call
- func (_c *CartService_RestoreCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_RestoreCart_Call
- func (_c *CartService_RestoreCart_Call) Run(run func(ctx context.Context, _a1 *cart.Cart)) *CartService_RestoreCart_Call
- func (_c *CartService_RestoreCart_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, error)) *CartService_RestoreCart_Call
- type CartService_UpdateAdditionalData_Call
- func (_c *CartService_UpdateAdditionalData_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_UpdateAdditionalData_Call
- func (_c *CartService_UpdateAdditionalData_Call) Run(...) *CartService_UpdateAdditionalData_Call
- func (_c *CartService_UpdateAdditionalData_Call) RunAndReturn(run func(context.Context, *web.Session, map[string]string) (*cart.Cart, error)) *CartService_UpdateAdditionalData_Call
- type CartService_UpdateBillingAddress_Call
- func (_c *CartService_UpdateBillingAddress_Call) Return(_a0 error) *CartService_UpdateBillingAddress_Call
- func (_c *CartService_UpdateBillingAddress_Call) Run(...) *CartService_UpdateBillingAddress_Call
- func (_c *CartService_UpdateBillingAddress_Call) RunAndReturn(run func(context.Context, *web.Session, *cart.Address) error) *CartService_UpdateBillingAddress_Call
- type CartService_UpdateDeliveryAdditionalData_Call
- func (_c *CartService_UpdateDeliveryAdditionalData_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_UpdateDeliveryAdditionalData_Call
- func (_c *CartService_UpdateDeliveryAdditionalData_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string, ...)) *CartService_UpdateDeliveryAdditionalData_Call
- func (_c *CartService_UpdateDeliveryAdditionalData_Call) RunAndReturn(...) *CartService_UpdateDeliveryAdditionalData_Call
- type CartService_UpdateDeliveryInfo_Call
- func (_c *CartService_UpdateDeliveryInfo_Call) Return(_a0 error) *CartService_UpdateDeliveryInfo_Call
- func (_c *CartService_UpdateDeliveryInfo_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string, ...)) *CartService_UpdateDeliveryInfo_Call
- func (_c *CartService_UpdateDeliveryInfo_Call) RunAndReturn(...) *CartService_UpdateDeliveryInfo_Call
- type CartService_UpdateItemBundleConfig_Call
- func (_c *CartService_UpdateItemBundleConfig_Call) Return(_a0 error) *CartService_UpdateItemBundleConfig_Call
- func (_c *CartService_UpdateItemBundleConfig_Call) Run(run func(ctx context.Context, session *web.Session, ...)) *CartService_UpdateItemBundleConfig_Call
- func (_c *CartService_UpdateItemBundleConfig_Call) RunAndReturn(run func(context.Context, *web.Session, cart.ItemUpdateCommand) error) *CartService_UpdateItemBundleConfig_Call
- type CartService_UpdateItemQty_Call
- func (_c *CartService_UpdateItemQty_Call) Return(_a0 error) *CartService_UpdateItemQty_Call
- func (_c *CartService_UpdateItemQty_Call) Run(...) *CartService_UpdateItemQty_Call
- func (_c *CartService_UpdateItemQty_Call) RunAndReturn(run func(context.Context, *web.Session, string, string, int) error) *CartService_UpdateItemQty_Call
- type CartService_UpdateItemSourceID_Call
- func (_c *CartService_UpdateItemSourceID_Call) Return(_a0 error) *CartService_UpdateItemSourceID_Call
- func (_c *CartService_UpdateItemSourceID_Call) Run(...) *CartService_UpdateItemSourceID_Call
- func (_c *CartService_UpdateItemSourceID_Call) RunAndReturn(run func(context.Context, *web.Session, string, string) error) *CartService_UpdateItemSourceID_Call
- type CartService_UpdateItems_Call
- func (_c *CartService_UpdateItems_Call) Return(_a0 error) *CartService_UpdateItems_Call
- func (_c *CartService_UpdateItems_Call) Run(run func(ctx context.Context, session *web.Session, ...)) *CartService_UpdateItems_Call
- func (_c *CartService_UpdateItems_Call) RunAndReturn(run func(context.Context, *web.Session, []cart.ItemUpdateCommand) error) *CartService_UpdateItems_Call
- type CartService_UpdatePaymentSelection_Call
- func (_c *CartService_UpdatePaymentSelection_Call) Return(_a0 error) *CartService_UpdatePaymentSelection_Call
- func (_c *CartService_UpdatePaymentSelection_Call) Run(run func(ctx context.Context, session *web.Session, ...)) *CartService_UpdatePaymentSelection_Call
- func (_c *CartService_UpdatePaymentSelection_Call) RunAndReturn(run func(context.Context, *web.Session, cart.PaymentSelection) error) *CartService_UpdatePaymentSelection_Call
- type CartService_UpdatePurchaser_Call
- type CartService_ValidateCart_Call
- func (_c *CartService_ValidateCart_Call) Return(_a0 validation.Result) *CartService_ValidateCart_Call
- func (_c *CartService_ValidateCart_Call) Run(run func(ctx context.Context, session *web.Session, ...)) *CartService_ValidateCart_Call
- func (_c *CartService_ValidateCart_Call) RunAndReturn(...) *CartService_ValidateCart_Call
- type CartService_ValidateCurrentCart_Call
- func (_c *CartService_ValidateCurrentCart_Call) Return(_a0 validation.Result, _a1 error) *CartService_ValidateCurrentCart_Call
- func (_c *CartService_ValidateCurrentCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_ValidateCurrentCart_Call
- func (_c *CartService_ValidateCurrentCart_Call) RunAndReturn(run func(context.Context, *web.Session) (validation.Result, error)) *CartService_ValidateCurrentCart_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartCache ¶ added in v3.8.0
CartCache is an autogenerated mock type for the CartCache type
func NewCartCache ¶ added in v3.8.0
NewCartCache creates a new instance of CartCache. 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 (*CartCache) BuildIdentifier ¶ added in v3.8.0
func (_m *CartCache) BuildIdentifier(_a0 context.Context, _a1 *web.Session) (application.CartCacheIdentifier, error)
BuildIdentifier provides a mock function with given fields: _a0, _a1
func (*CartCache) CacheCart ¶ added in v3.8.0
func (_m *CartCache) CacheCart(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier, _a3 *cart.Cart) error
CacheCart provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*CartCache) Delete ¶ added in v3.8.0
func (_m *CartCache) Delete(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier) error
Delete provides a mock function with given fields: _a0, _a1, _a2
func (*CartCache) DeleteAll ¶ added in v3.8.0
DeleteAll provides a mock function with given fields: _a0, _a1
func (*CartCache) EXPECT ¶ added in v3.8.0
func (_m *CartCache) EXPECT() *CartCache_Expecter
func (*CartCache) GetCart ¶ added in v3.8.0
func (_m *CartCache) GetCart(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier) (*cart.Cart, error)
GetCart provides a mock function with given fields: _a0, _a1, _a2
func (*CartCache) Invalidate ¶ added in v3.8.0
func (_m *CartCache) Invalidate(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier) error
Invalidate provides a mock function with given fields: _a0, _a1, _a2
type CartCache_BuildIdentifier_Call ¶ added in v3.8.0
CartCache_BuildIdentifier_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildIdentifier'
func (*CartCache_BuildIdentifier_Call) Return ¶ added in v3.8.0
func (_c *CartCache_BuildIdentifier_Call) Return(_a0 application.CartCacheIdentifier, _a1 error) *CartCache_BuildIdentifier_Call
func (*CartCache_BuildIdentifier_Call) Run ¶ added in v3.8.0
func (_c *CartCache_BuildIdentifier_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *CartCache_BuildIdentifier_Call
func (*CartCache_BuildIdentifier_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartCache_BuildIdentifier_Call) RunAndReturn(run func(context.Context, *web.Session) (application.CartCacheIdentifier, error)) *CartCache_BuildIdentifier_Call
type CartCache_CacheCart_Call ¶ added in v3.8.0
CartCache_CacheCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CacheCart'
func (*CartCache_CacheCart_Call) Return ¶ added in v3.8.0
func (_c *CartCache_CacheCart_Call) Return(_a0 error) *CartCache_CacheCart_Call
func (*CartCache_CacheCart_Call) Run ¶ added in v3.8.0
func (_c *CartCache_CacheCart_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier, _a3 *cart.Cart)) *CartCache_CacheCart_Call
func (*CartCache_CacheCart_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartCache_CacheCart_Call) RunAndReturn(run func(context.Context, *web.Session, application.CartCacheIdentifier, *cart.Cart) error) *CartCache_CacheCart_Call
type CartCache_DeleteAll_Call ¶ added in v3.8.0
CartCache_DeleteAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAll'
func (*CartCache_DeleteAll_Call) Return ¶ added in v3.8.0
func (_c *CartCache_DeleteAll_Call) Return(_a0 error) *CartCache_DeleteAll_Call
func (*CartCache_DeleteAll_Call) Run ¶ added in v3.8.0
func (_c *CartCache_DeleteAll_Call) Run(run func(_a0 context.Context, _a1 *web.Session)) *CartCache_DeleteAll_Call
func (*CartCache_DeleteAll_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartCache_DeleteAll_Call) RunAndReturn(run func(context.Context, *web.Session) error) *CartCache_DeleteAll_Call
type CartCache_Delete_Call ¶ added in v3.8.0
CartCache_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*CartCache_Delete_Call) Return ¶ added in v3.8.0
func (_c *CartCache_Delete_Call) Return(_a0 error) *CartCache_Delete_Call
func (*CartCache_Delete_Call) Run ¶ added in v3.8.0
func (_c *CartCache_Delete_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier)) *CartCache_Delete_Call
func (*CartCache_Delete_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartCache_Delete_Call) RunAndReturn(run func(context.Context, *web.Session, application.CartCacheIdentifier) error) *CartCache_Delete_Call
type CartCache_Expecter ¶ added in v3.8.0
type CartCache_Expecter struct {
// contains filtered or unexported fields
}
func (*CartCache_Expecter) BuildIdentifier ¶ added in v3.8.0
func (_e *CartCache_Expecter) BuildIdentifier(_a0 interface{}, _a1 interface{}) *CartCache_BuildIdentifier_Call
BuildIdentifier is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
func (*CartCache_Expecter) CacheCart ¶ added in v3.8.0
func (_e *CartCache_Expecter) CacheCart(_a0 interface{}, _a1 interface{}, _a2 interface{}, _a3 interface{}) *CartCache_CacheCart_Call
CacheCart is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
- _a2 application.CartCacheIdentifier
- _a3 *cart.Cart
func (*CartCache_Expecter) Delete ¶ added in v3.8.0
func (_e *CartCache_Expecter) Delete(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CartCache_Delete_Call
Delete is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
- _a2 application.CartCacheIdentifier
func (*CartCache_Expecter) DeleteAll ¶ added in v3.8.0
func (_e *CartCache_Expecter) DeleteAll(_a0 interface{}, _a1 interface{}) *CartCache_DeleteAll_Call
DeleteAll is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
func (*CartCache_Expecter) GetCart ¶ added in v3.8.0
func (_e *CartCache_Expecter) GetCart(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CartCache_GetCart_Call
GetCart is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
- _a2 application.CartCacheIdentifier
func (*CartCache_Expecter) Invalidate ¶ added in v3.8.0
func (_e *CartCache_Expecter) Invalidate(_a0 interface{}, _a1 interface{}, _a2 interface{}) *CartCache_Invalidate_Call
Invalidate is a helper method to define mock.On call
- _a0 context.Context
- _a1 *web.Session
- _a2 application.CartCacheIdentifier
type CartCache_GetCart_Call ¶ added in v3.8.0
CartCache_GetCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCart'
func (*CartCache_GetCart_Call) Return ¶ added in v3.8.0
func (_c *CartCache_GetCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartCache_GetCart_Call
func (*CartCache_GetCart_Call) Run ¶ added in v3.8.0
func (_c *CartCache_GetCart_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier)) *CartCache_GetCart_Call
func (*CartCache_GetCart_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartCache_GetCart_Call) RunAndReturn(run func(context.Context, *web.Session, application.CartCacheIdentifier) (*cart.Cart, error)) *CartCache_GetCart_Call
type CartCache_Invalidate_Call ¶ added in v3.8.0
CartCache_Invalidate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Invalidate'
func (*CartCache_Invalidate_Call) Return ¶ added in v3.8.0
func (_c *CartCache_Invalidate_Call) Return(_a0 error) *CartCache_Invalidate_Call
func (*CartCache_Invalidate_Call) Run ¶ added in v3.8.0
func (_c *CartCache_Invalidate_Call) Run(run func(_a0 context.Context, _a1 *web.Session, _a2 application.CartCacheIdentifier)) *CartCache_Invalidate_Call
func (*CartCache_Invalidate_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartCache_Invalidate_Call) RunAndReturn(run func(context.Context, *web.Session, application.CartCacheIdentifier) error) *CartCache_Invalidate_Call
type CartMerger ¶ added in v3.8.0
CartMerger is an autogenerated mock type for the CartMerger type
func NewCartMerger ¶ added in v3.8.0
func NewCartMerger(t interface { mock.TestingT Cleanup(func()) }) *CartMerger
NewCartMerger creates a new instance of CartMerger. 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 (*CartMerger) EXPECT ¶ added in v3.8.0
func (_m *CartMerger) EXPECT() *CartMerger_Expecter
type CartMerger_Expecter ¶ added in v3.8.0
type CartMerger_Expecter struct {
// contains filtered or unexported fields
}
func (*CartMerger_Expecter) Merge ¶ added in v3.8.0
func (_e *CartMerger_Expecter) Merge(ctx interface{}, session interface{}, guestCart interface{}, customerCart interface{}) *CartMerger_Merge_Call
Merge is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- guestCart cart.Cart
- customerCart cart.Cart
type CartMerger_Merge_Call ¶ added in v3.8.0
CartMerger_Merge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Merge'
func (*CartMerger_Merge_Call) Return ¶ added in v3.8.0
func (_c *CartMerger_Merge_Call) Return() *CartMerger_Merge_Call
func (*CartMerger_Merge_Call) Run ¶ added in v3.8.0
func (_c *CartMerger_Merge_Call) Run(run func(ctx context.Context, session *web.Session, guestCart cart.Cart, customerCart cart.Cart)) *CartMerger_Merge_Call
func (*CartMerger_Merge_Call) RunAndReturn ¶ added in v3.8.0
func (_c *CartMerger_Merge_Call) RunAndReturn(run func(context.Context, *web.Session, cart.Cart, cart.Cart)) *CartMerger_Merge_Call
type CartReceiver ¶ added in v3.6.0
CartReceiver is an autogenerated mock type for the Receiver type
func NewCartReceiver ¶ added in v3.6.0
func NewCartReceiver(t interface { mock.TestingT Cleanup(func()) }) *CartReceiver
NewCartReceiver creates a new instance of CartReceiver. 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 (*CartReceiver) EXPECT ¶ added in v3.7.0
func (_m *CartReceiver) EXPECT() *CartReceiver_Expecter
func (*CartReceiver) GetCart ¶ added in v3.6.0
func (_m *CartReceiver) GetCart(ctx context.Context, session *web.Session) (*cart.Cart, cart.ModifyBehaviour, error)
GetCart provides a mock function with given fields: ctx, session
func (*CartReceiver) GetCartWithoutCache ¶ added in v3.6.0
func (_m *CartReceiver) GetCartWithoutCache(ctx context.Context, session *web.Session) (*cart.Cart, error)
GetCartWithoutCache provides a mock function with given fields: ctx, session
func (*CartReceiver) ModifyBehaviour ¶ added in v3.6.0
func (_m *CartReceiver) ModifyBehaviour(ctx context.Context) (cart.ModifyBehaviour, error)
ModifyBehaviour provides a mock function with given fields: ctx
func (*CartReceiver) ShouldHaveCart ¶ added in v3.6.0
ShouldHaveCart provides a mock function with given fields: ctx, session
func (*CartReceiver) ShouldHaveGuestCart ¶ added in v3.6.0
func (_m *CartReceiver) ShouldHaveGuestCart(session *web.Session) bool
ShouldHaveGuestCart provides a mock function with given fields: session
func (*CartReceiver) ViewCart ¶ added in v3.6.0
ViewCart provides a mock function with given fields: ctx, session
func (*CartReceiver) ViewGuestCart ¶ added in v3.6.0
func (_m *CartReceiver) ViewGuestCart(ctx context.Context, session *web.Session) (*cart.Cart, error)
ViewGuestCart provides a mock function with given fields: ctx, session
type CartReceiver_Expecter ¶ added in v3.7.0
type CartReceiver_Expecter struct {
// contains filtered or unexported fields
}
func (*CartReceiver_Expecter) GetCart ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) GetCart(ctx interface{}, session interface{}) *CartReceiver_GetCart_Call
GetCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartReceiver_Expecter) GetCartWithoutCache ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) GetCartWithoutCache(ctx interface{}, session interface{}) *CartReceiver_GetCartWithoutCache_Call
GetCartWithoutCache is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartReceiver_Expecter) ModifyBehaviour ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) ModifyBehaviour(ctx interface{}) *CartReceiver_ModifyBehaviour_Call
ModifyBehaviour is a helper method to define mock.On call
- ctx context.Context
func (*CartReceiver_Expecter) ShouldHaveCart ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) ShouldHaveCart(ctx interface{}, session interface{}) *CartReceiver_ShouldHaveCart_Call
ShouldHaveCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartReceiver_Expecter) ShouldHaveGuestCart ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) ShouldHaveGuestCart(session interface{}) *CartReceiver_ShouldHaveGuestCart_Call
ShouldHaveGuestCart is a helper method to define mock.On call
- session *web.Session
func (*CartReceiver_Expecter) ViewCart ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) ViewCart(ctx interface{}, session interface{}) *CartReceiver_ViewCart_Call
ViewCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartReceiver_Expecter) ViewGuestCart ¶ added in v3.7.0
func (_e *CartReceiver_Expecter) ViewGuestCart(ctx interface{}, session interface{}) *CartReceiver_ViewGuestCart_Call
ViewGuestCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
type CartReceiver_GetCartWithoutCache_Call ¶ added in v3.7.0
CartReceiver_GetCartWithoutCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCartWithoutCache'
func (*CartReceiver_GetCartWithoutCache_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_GetCartWithoutCache_Call) Return(_a0 *cart.Cart, _a1 error) *CartReceiver_GetCartWithoutCache_Call
func (*CartReceiver_GetCartWithoutCache_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_GetCartWithoutCache_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_GetCartWithoutCache_Call
func (*CartReceiver_GetCartWithoutCache_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_GetCartWithoutCache_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartReceiver_GetCartWithoutCache_Call
type CartReceiver_GetCart_Call ¶ added in v3.7.0
CartReceiver_GetCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCart'
func (*CartReceiver_GetCart_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_GetCart_Call) Return(_a0 *cart.Cart, _a1 cart.ModifyBehaviour, _a2 error) *CartReceiver_GetCart_Call
func (*CartReceiver_GetCart_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_GetCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_GetCart_Call
func (*CartReceiver_GetCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_GetCart_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, cart.ModifyBehaviour, error)) *CartReceiver_GetCart_Call
type CartReceiver_ModifyBehaviour_Call ¶ added in v3.7.0
CartReceiver_ModifyBehaviour_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ModifyBehaviour'
func (*CartReceiver_ModifyBehaviour_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_ModifyBehaviour_Call) Return(_a0 cart.ModifyBehaviour, _a1 error) *CartReceiver_ModifyBehaviour_Call
func (*CartReceiver_ModifyBehaviour_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_ModifyBehaviour_Call) Run(run func(ctx context.Context)) *CartReceiver_ModifyBehaviour_Call
func (*CartReceiver_ModifyBehaviour_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_ModifyBehaviour_Call) RunAndReturn(run func(context.Context) (cart.ModifyBehaviour, error)) *CartReceiver_ModifyBehaviour_Call
type CartReceiver_ShouldHaveCart_Call ¶ added in v3.7.0
CartReceiver_ShouldHaveCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldHaveCart'
func (*CartReceiver_ShouldHaveCart_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_ShouldHaveCart_Call) Return(_a0 bool) *CartReceiver_ShouldHaveCart_Call
func (*CartReceiver_ShouldHaveCart_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_ShouldHaveCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_ShouldHaveCart_Call
func (*CartReceiver_ShouldHaveCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_ShouldHaveCart_Call) RunAndReturn(run func(context.Context, *web.Session) bool) *CartReceiver_ShouldHaveCart_Call
type CartReceiver_ShouldHaveGuestCart_Call ¶ added in v3.7.0
CartReceiver_ShouldHaveGuestCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShouldHaveGuestCart'
func (*CartReceiver_ShouldHaveGuestCart_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_ShouldHaveGuestCart_Call) Return(_a0 bool) *CartReceiver_ShouldHaveGuestCart_Call
func (*CartReceiver_ShouldHaveGuestCart_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_ShouldHaveGuestCart_Call) Run(run func(session *web.Session)) *CartReceiver_ShouldHaveGuestCart_Call
func (*CartReceiver_ShouldHaveGuestCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_ShouldHaveGuestCart_Call) RunAndReturn(run func(*web.Session) bool) *CartReceiver_ShouldHaveGuestCart_Call
type CartReceiver_ViewCart_Call ¶ added in v3.7.0
CartReceiver_ViewCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ViewCart'
func (*CartReceiver_ViewCart_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_ViewCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartReceiver_ViewCart_Call
func (*CartReceiver_ViewCart_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_ViewCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_ViewCart_Call
func (*CartReceiver_ViewCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_ViewCart_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartReceiver_ViewCart_Call
type CartReceiver_ViewGuestCart_Call ¶ added in v3.7.0
CartReceiver_ViewGuestCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ViewGuestCart'
func (*CartReceiver_ViewGuestCart_Call) Return ¶ added in v3.7.0
func (_c *CartReceiver_ViewGuestCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartReceiver_ViewGuestCart_Call
func (*CartReceiver_ViewGuestCart_Call) Run ¶ added in v3.7.0
func (_c *CartReceiver_ViewGuestCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartReceiver_ViewGuestCart_Call
func (*CartReceiver_ViewGuestCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartReceiver_ViewGuestCart_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartReceiver_ViewGuestCart_Call
type CartService ¶
CartService is an autogenerated mock type for the Service type
func NewCartService ¶ added in v3.6.0
func NewCartService(t interface { mock.TestingT Cleanup(func()) }) *CartService
NewCartService creates a new instance of CartService. 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 (*CartService) AddProduct ¶
func (_m *CartService) AddProduct(ctx context.Context, session *web.Session, deliveryCode string, addRequest cart.AddRequest) (domain.BasicProduct, error)
AddProduct provides a mock function with given fields: ctx, session, deliveryCode, addRequest
func (*CartService) AdjustItemsToRestrictedQty ¶
func (_m *CartService) AdjustItemsToRestrictedQty(ctx context.Context, session *web.Session) (application.QtyAdjustmentResults, error)
AdjustItemsToRestrictedQty provides a mock function with given fields: ctx, session
func (*CartService) ApplyAny ¶
func (_m *CartService) ApplyAny(ctx context.Context, session *web.Session, anyCode string) (*cart.Cart, error)
ApplyAny provides a mock function with given fields: ctx, session, anyCode
func (*CartService) ApplyGiftCard ¶
func (_m *CartService) ApplyGiftCard(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
ApplyGiftCard provides a mock function with given fields: ctx, session, couponCode
func (*CartService) ApplyVoucher ¶
func (_m *CartService) ApplyVoucher(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
ApplyVoucher provides a mock function with given fields: ctx, session, couponCode
func (*CartService) BuildAddRequest ¶
func (_m *CartService) BuildAddRequest(ctx context.Context, marketplaceCode string, variantMarketplaceCode string, qty int, additionalData map[string]string) cart.AddRequest
BuildAddRequest provides a mock function with given fields: ctx, marketplaceCode, variantMarketplaceCode, qty, additionalData
func (*CartService) CancelOrder ¶
func (_m *CartService) CancelOrder(ctx context.Context, session *web.Session, orderInfos placeorder.PlacedOrderInfos, _a3 cart.Cart) (*cart.Cart, error)
CancelOrder provides a mock function with given fields: ctx, session, orderInfos, _a3
func (*CartService) CancelOrderWithoutRestore ¶
func (_m *CartService) CancelOrderWithoutRestore(ctx context.Context, session *web.Session, orderInfos placeorder.PlacedOrderInfos) error
CancelOrderWithoutRestore provides a mock function with given fields: ctx, session, orderInfos
func (*CartService) CompleteCurrentCart ¶
CompleteCurrentCart provides a mock function with given fields: ctx
func (*CartService) CreateInitialDeliveryIfNotPresent ¶
func (_m *CartService) CreateInitialDeliveryIfNotPresent(ctx context.Context, session *web.Session, deliveryCode string) (*cart.Cart, error)
CreateInitialDeliveryIfNotPresent provides a mock function with given fields: ctx, session, deliveryCode
func (*CartService) DeleteAllItems ¶
DeleteAllItems provides a mock function with given fields: ctx, session
func (*CartService) DeleteCartInCache ¶
DeleteCartInCache provides a mock function with given fields: ctx, session, _a2
func (*CartService) DeleteDelivery ¶
func (_m *CartService) DeleteDelivery(ctx context.Context, session *web.Session, deliveryCode string) (*cart.Cart, error)
DeleteDelivery provides a mock function with given fields: ctx, session, deliveryCode
func (*CartService) DeleteItem ¶
func (_m *CartService) DeleteItem(ctx context.Context, session *web.Session, itemID string, deliveryCode string) error
DeleteItem provides a mock function with given fields: ctx, session, itemID, deliveryCode
func (*CartService) EXPECT ¶ added in v3.7.0
func (_m *CartService) EXPECT() *CartService_Expecter
func (*CartService) ForceReserveOrderIDAndSave ¶
func (_m *CartService) ForceReserveOrderIDAndSave(ctx context.Context, session *web.Session) (*cart.Cart, error)
ForceReserveOrderIDAndSave provides a mock function with given fields: ctx, session
func (*CartService) GetCartReceiverService ¶
func (_m *CartService) GetCartReceiverService() *application.CartReceiverService
GetCartReceiverService provides a mock function with given fields:
func (*CartService) GetDefaultDeliveryCode ¶
func (_m *CartService) GetDefaultDeliveryCode() string
GetDefaultDeliveryCode provides a mock function with given fields:
func (*CartService) GetInitialDelivery ¶
func (_m *CartService) GetInitialDelivery(deliveryCode string) (*cart.DeliveryInfo, error)
GetInitialDelivery provides a mock function with given fields: deliveryCode
func (*CartService) PlaceOrder ¶
func (_m *CartService) PlaceOrder(ctx context.Context, session *web.Session, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)
PlaceOrder provides a mock function with given fields: ctx, session, payment
func (*CartService) PlaceOrderWithCart ¶
func (_m *CartService) PlaceOrderWithCart(ctx context.Context, session *web.Session, _a2 *cart.Cart, payment *placeorder.Payment) (placeorder.PlacedOrderInfos, error)
PlaceOrderWithCart provides a mock function with given fields: ctx, session, _a2, payment
func (*CartService) RemoveGiftCard ¶
func (_m *CartService) RemoveGiftCard(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
RemoveGiftCard provides a mock function with given fields: ctx, session, couponCode
func (*CartService) RemoveVoucher ¶
func (_m *CartService) RemoveVoucher(ctx context.Context, session *web.Session, couponCode string) (*cart.Cart, error)
RemoveVoucher provides a mock function with given fields: ctx, session, couponCode
func (*CartService) ReserveOrderIDAndSave ¶
func (_m *CartService) ReserveOrderIDAndSave(ctx context.Context, session *web.Session) (*cart.Cart, error)
ReserveOrderIDAndSave provides a mock function with given fields: ctx, session
func (*CartService) RestoreCart ¶
RestoreCart provides a mock function with given fields: ctx, _a1
func (*CartService) UpdateAdditionalData ¶
func (_m *CartService) UpdateAdditionalData(ctx context.Context, session *web.Session, additionalData map[string]string) (*cart.Cart, error)
UpdateAdditionalData provides a mock function with given fields: ctx, session, additionalData
func (*CartService) UpdateBillingAddress ¶
func (_m *CartService) UpdateBillingAddress(ctx context.Context, session *web.Session, billingAddress *cart.Address) error
UpdateBillingAddress provides a mock function with given fields: ctx, session, billingAddress
func (*CartService) UpdateDeliveryAdditionalData ¶
func (_m *CartService) UpdateDeliveryAdditionalData(ctx context.Context, session *web.Session, deliveryCode string, additionalData map[string]string) (*cart.Cart, error)
UpdateDeliveryAdditionalData provides a mock function with given fields: ctx, session, deliveryCode, additionalData
func (*CartService) UpdateDeliveryInfo ¶
func (_m *CartService) UpdateDeliveryInfo(ctx context.Context, session *web.Session, deliveryCode string, deliveryInfo cart.DeliveryInfoUpdateCommand) error
UpdateDeliveryInfo provides a mock function with given fields: ctx, session, deliveryCode, deliveryInfo
func (*CartService) UpdateItemBundleConfig ¶ added in v3.9.0
func (_m *CartService) UpdateItemBundleConfig(ctx context.Context, session *web.Session, updateCommand cart.ItemUpdateCommand) error
UpdateItemBundleConfig provides a mock function with given fields: ctx, session, updateCommand
func (*CartService) UpdateItemQty ¶
func (_m *CartService) UpdateItemQty(ctx context.Context, session *web.Session, itemID string, deliveryCode string, qty int) error
UpdateItemQty provides a mock function with given fields: ctx, session, itemID, deliveryCode, qty
func (*CartService) UpdateItemSourceID ¶
func (_m *CartService) UpdateItemSourceID(ctx context.Context, session *web.Session, itemID string, sourceID string) error
UpdateItemSourceID provides a mock function with given fields: ctx, session, itemID, sourceID
func (*CartService) UpdateItems ¶
func (_m *CartService) UpdateItems(ctx context.Context, session *web.Session, updateCommands []cart.ItemUpdateCommand) error
UpdateItems provides a mock function with given fields: ctx, session, updateCommands
func (*CartService) UpdatePaymentSelection ¶
func (_m *CartService) UpdatePaymentSelection(ctx context.Context, session *web.Session, paymentSelection cart.PaymentSelection) error
UpdatePaymentSelection provides a mock function with given fields: ctx, session, paymentSelection
func (*CartService) UpdatePurchaser ¶
func (_m *CartService) UpdatePurchaser(ctx context.Context, session *web.Session, purchaser *cart.Person, additionalData *cart.AdditionalData) error
UpdatePurchaser provides a mock function with given fields: ctx, session, purchaser, additionalData
func (*CartService) ValidateCart ¶
func (_m *CartService) ValidateCart(ctx context.Context, session *web.Session, decoratedCart *decorator.DecoratedCart) validation.Result
ValidateCart provides a mock function with given fields: ctx, session, decoratedCart
func (*CartService) ValidateCurrentCart ¶
func (_m *CartService) ValidateCurrentCart(ctx context.Context, session *web.Session) (validation.Result, error)
ValidateCurrentCart provides a mock function with given fields: ctx, session
type CartService_AddProduct_Call ¶ added in v3.7.0
CartService_AddProduct_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProduct'
func (*CartService_AddProduct_Call) Return ¶ added in v3.7.0
func (_c *CartService_AddProduct_Call) Return(_a0 domain.BasicProduct, _a1 error) *CartService_AddProduct_Call
func (*CartService_AddProduct_Call) Run ¶ added in v3.7.0
func (_c *CartService_AddProduct_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string, addRequest cart.AddRequest)) *CartService_AddProduct_Call
func (*CartService_AddProduct_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_AddProduct_Call) RunAndReturn(run func(context.Context, *web.Session, string, cart.AddRequest) (domain.BasicProduct, error)) *CartService_AddProduct_Call
type CartService_AdjustItemsToRestrictedQty_Call ¶ added in v3.7.0
CartService_AdjustItemsToRestrictedQty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AdjustItemsToRestrictedQty'
func (*CartService_AdjustItemsToRestrictedQty_Call) Return ¶ added in v3.7.0
func (_c *CartService_AdjustItemsToRestrictedQty_Call) Return(_a0 application.QtyAdjustmentResults, _a1 error) *CartService_AdjustItemsToRestrictedQty_Call
func (*CartService_AdjustItemsToRestrictedQty_Call) Run ¶ added in v3.7.0
func (_c *CartService_AdjustItemsToRestrictedQty_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_AdjustItemsToRestrictedQty_Call
func (*CartService_AdjustItemsToRestrictedQty_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_AdjustItemsToRestrictedQty_Call) RunAndReturn(run func(context.Context, *web.Session) (application.QtyAdjustmentResults, error)) *CartService_AdjustItemsToRestrictedQty_Call
type CartService_ApplyAny_Call ¶ added in v3.7.0
CartService_ApplyAny_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyAny'
func (*CartService_ApplyAny_Call) Return ¶ added in v3.7.0
func (_c *CartService_ApplyAny_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ApplyAny_Call
func (*CartService_ApplyAny_Call) Run ¶ added in v3.7.0
func (_c *CartService_ApplyAny_Call) Run(run func(ctx context.Context, session *web.Session, anyCode string)) *CartService_ApplyAny_Call
func (*CartService_ApplyAny_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ApplyAny_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_ApplyAny_Call
type CartService_ApplyGiftCard_Call ¶ added in v3.7.0
CartService_ApplyGiftCard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyGiftCard'
func (*CartService_ApplyGiftCard_Call) Return ¶ added in v3.7.0
func (_c *CartService_ApplyGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ApplyGiftCard_Call
func (*CartService_ApplyGiftCard_Call) Run ¶ added in v3.7.0
func (_c *CartService_ApplyGiftCard_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_ApplyGiftCard_Call
func (*CartService_ApplyGiftCard_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ApplyGiftCard_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_ApplyGiftCard_Call
type CartService_ApplyVoucher_Call ¶ added in v3.7.0
CartService_ApplyVoucher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyVoucher'
func (*CartService_ApplyVoucher_Call) Return ¶ added in v3.7.0
func (_c *CartService_ApplyVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ApplyVoucher_Call
func (*CartService_ApplyVoucher_Call) Run ¶ added in v3.7.0
func (_c *CartService_ApplyVoucher_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_ApplyVoucher_Call
func (*CartService_ApplyVoucher_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ApplyVoucher_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_ApplyVoucher_Call
type CartService_BuildAddRequest_Call ¶ added in v3.7.0
CartService_BuildAddRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BuildAddRequest'
func (*CartService_BuildAddRequest_Call) Return ¶ added in v3.7.0
func (_c *CartService_BuildAddRequest_Call) Return(_a0 cart.AddRequest) *CartService_BuildAddRequest_Call
func (*CartService_BuildAddRequest_Call) Run ¶ added in v3.7.0
func (_c *CartService_BuildAddRequest_Call) Run(run func(ctx context.Context, marketplaceCode string, variantMarketplaceCode string, qty int, additionalData map[string]string)) *CartService_BuildAddRequest_Call
func (*CartService_BuildAddRequest_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_BuildAddRequest_Call) RunAndReturn(run func(context.Context, string, string, int, map[string]string) cart.AddRequest) *CartService_BuildAddRequest_Call
type CartService_CancelOrderWithoutRestore_Call ¶ added in v3.7.0
CartService_CancelOrderWithoutRestore_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelOrderWithoutRestore'
func (*CartService_CancelOrderWithoutRestore_Call) Return ¶ added in v3.7.0
func (_c *CartService_CancelOrderWithoutRestore_Call) Return(_a0 error) *CartService_CancelOrderWithoutRestore_Call
func (*CartService_CancelOrderWithoutRestore_Call) Run ¶ added in v3.7.0
func (_c *CartService_CancelOrderWithoutRestore_Call) Run(run func(ctx context.Context, session *web.Session, orderInfos placeorder.PlacedOrderInfos)) *CartService_CancelOrderWithoutRestore_Call
func (*CartService_CancelOrderWithoutRestore_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_CancelOrderWithoutRestore_Call) RunAndReturn(run func(context.Context, *web.Session, placeorder.PlacedOrderInfos) error) *CartService_CancelOrderWithoutRestore_Call
type CartService_CancelOrder_Call ¶ added in v3.7.0
CartService_CancelOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelOrder'
func (*CartService_CancelOrder_Call) Return ¶ added in v3.7.0
func (_c *CartService_CancelOrder_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_CancelOrder_Call
func (*CartService_CancelOrder_Call) Run ¶ added in v3.7.0
func (_c *CartService_CancelOrder_Call) Run(run func(ctx context.Context, session *web.Session, orderInfos placeorder.PlacedOrderInfos, _a3 cart.Cart)) *CartService_CancelOrder_Call
func (*CartService_CancelOrder_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_CancelOrder_Call) RunAndReturn(run func(context.Context, *web.Session, placeorder.PlacedOrderInfos, cart.Cart) (*cart.Cart, error)) *CartService_CancelOrder_Call
type CartService_Clean_Call ¶ added in v3.7.0
CartService_Clean_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Clean'
func (*CartService_Clean_Call) Return ¶ added in v3.7.0
func (_c *CartService_Clean_Call) Return(_a0 error) *CartService_Clean_Call
func (*CartService_Clean_Call) Run ¶ added in v3.7.0
func (_c *CartService_Clean_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_Clean_Call
func (*CartService_Clean_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_Clean_Call) RunAndReturn(run func(context.Context, *web.Session) error) *CartService_Clean_Call
type CartService_CompleteCurrentCart_Call ¶ added in v3.7.0
CartService_CompleteCurrentCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CompleteCurrentCart'
func (*CartService_CompleteCurrentCart_Call) Return ¶ added in v3.7.0
func (_c *CartService_CompleteCurrentCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_CompleteCurrentCart_Call
func (*CartService_CompleteCurrentCart_Call) Run ¶ added in v3.7.0
func (_c *CartService_CompleteCurrentCart_Call) Run(run func(ctx context.Context)) *CartService_CompleteCurrentCart_Call
func (*CartService_CompleteCurrentCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_CompleteCurrentCart_Call) RunAndReturn(run func(context.Context) (*cart.Cart, error)) *CartService_CompleteCurrentCart_Call
type CartService_CreateInitialDeliveryIfNotPresent_Call ¶ added in v3.7.0
CartService_CreateInitialDeliveryIfNotPresent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateInitialDeliveryIfNotPresent'
func (*CartService_CreateInitialDeliveryIfNotPresent_Call) Return ¶ added in v3.7.0
func (_c *CartService_CreateInitialDeliveryIfNotPresent_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_CreateInitialDeliveryIfNotPresent_Call
func (*CartService_CreateInitialDeliveryIfNotPresent_Call) Run ¶ added in v3.7.0
func (_c *CartService_CreateInitialDeliveryIfNotPresent_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string)) *CartService_CreateInitialDeliveryIfNotPresent_Call
func (*CartService_CreateInitialDeliveryIfNotPresent_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_CreateInitialDeliveryIfNotPresent_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_CreateInitialDeliveryIfNotPresent_Call
type CartService_DeleteAllItems_Call ¶ added in v3.7.0
CartService_DeleteAllItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAllItems'
func (*CartService_DeleteAllItems_Call) Return ¶ added in v3.7.0
func (_c *CartService_DeleteAllItems_Call) Return(_a0 error) *CartService_DeleteAllItems_Call
func (*CartService_DeleteAllItems_Call) Run ¶ added in v3.7.0
func (_c *CartService_DeleteAllItems_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_DeleteAllItems_Call
func (*CartService_DeleteAllItems_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_DeleteAllItems_Call) RunAndReturn(run func(context.Context, *web.Session) error) *CartService_DeleteAllItems_Call
type CartService_DeleteCartInCache_Call ¶ added in v3.7.0
CartService_DeleteCartInCache_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteCartInCache'
func (*CartService_DeleteCartInCache_Call) Return ¶ added in v3.7.0
func (_c *CartService_DeleteCartInCache_Call) Return() *CartService_DeleteCartInCache_Call
func (*CartService_DeleteCartInCache_Call) Run ¶ added in v3.7.0
func (_c *CartService_DeleteCartInCache_Call) Run(run func(ctx context.Context, session *web.Session, _a2 *cart.Cart)) *CartService_DeleteCartInCache_Call
func (*CartService_DeleteCartInCache_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_DeleteCartInCache_Call) RunAndReturn(run func(context.Context, *web.Session, *cart.Cart)) *CartService_DeleteCartInCache_Call
type CartService_DeleteDelivery_Call ¶ added in v3.7.0
CartService_DeleteDelivery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteDelivery'
func (*CartService_DeleteDelivery_Call) Return ¶ added in v3.7.0
func (_c *CartService_DeleteDelivery_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_DeleteDelivery_Call
func (*CartService_DeleteDelivery_Call) Run ¶ added in v3.7.0
func (_c *CartService_DeleteDelivery_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string)) *CartService_DeleteDelivery_Call
func (*CartService_DeleteDelivery_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_DeleteDelivery_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_DeleteDelivery_Call
type CartService_DeleteItem_Call ¶ added in v3.7.0
CartService_DeleteItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteItem'
func (*CartService_DeleteItem_Call) Return ¶ added in v3.7.0
func (_c *CartService_DeleteItem_Call) Return(_a0 error) *CartService_DeleteItem_Call
func (*CartService_DeleteItem_Call) Run ¶ added in v3.7.0
func (_c *CartService_DeleteItem_Call) Run(run func(ctx context.Context, session *web.Session, itemID string, deliveryCode string)) *CartService_DeleteItem_Call
func (*CartService_DeleteItem_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_DeleteItem_Call) RunAndReturn(run func(context.Context, *web.Session, string, string) error) *CartService_DeleteItem_Call
type CartService_Expecter ¶ added in v3.7.0
type CartService_Expecter struct {
// contains filtered or unexported fields
}
func (*CartService_Expecter) AddProduct ¶ added in v3.7.0
func (_e *CartService_Expecter) AddProduct(ctx interface{}, session interface{}, deliveryCode interface{}, addRequest interface{}) *CartService_AddProduct_Call
AddProduct is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- deliveryCode string
- addRequest cart.AddRequest
func (*CartService_Expecter) AdjustItemsToRestrictedQty ¶ added in v3.7.0
func (_e *CartService_Expecter) AdjustItemsToRestrictedQty(ctx interface{}, session interface{}) *CartService_AdjustItemsToRestrictedQty_Call
AdjustItemsToRestrictedQty is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartService_Expecter) ApplyAny ¶ added in v3.7.0
func (_e *CartService_Expecter) ApplyAny(ctx interface{}, session interface{}, anyCode interface{}) *CartService_ApplyAny_Call
ApplyAny is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- anyCode string
func (*CartService_Expecter) ApplyGiftCard ¶ added in v3.7.0
func (_e *CartService_Expecter) ApplyGiftCard(ctx interface{}, session interface{}, couponCode interface{}) *CartService_ApplyGiftCard_Call
ApplyGiftCard is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- couponCode string
func (*CartService_Expecter) ApplyVoucher ¶ added in v3.7.0
func (_e *CartService_Expecter) ApplyVoucher(ctx interface{}, session interface{}, couponCode interface{}) *CartService_ApplyVoucher_Call
ApplyVoucher is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- couponCode string
func (*CartService_Expecter) BuildAddRequest ¶ added in v3.7.0
func (_e *CartService_Expecter) BuildAddRequest(ctx interface{}, marketplaceCode interface{}, variantMarketplaceCode interface{}, qty interface{}, additionalData interface{}) *CartService_BuildAddRequest_Call
BuildAddRequest is a helper method to define mock.On call
- ctx context.Context
- marketplaceCode string
- variantMarketplaceCode string
- qty int
- additionalData map[string]string
func (*CartService_Expecter) CancelOrder ¶ added in v3.7.0
func (_e *CartService_Expecter) CancelOrder(ctx interface{}, session interface{}, orderInfos interface{}, _a3 interface{}) *CartService_CancelOrder_Call
CancelOrder is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- orderInfos placeorder.PlacedOrderInfos
- _a3 cart.Cart
func (*CartService_Expecter) CancelOrderWithoutRestore ¶ added in v3.7.0
func (_e *CartService_Expecter) CancelOrderWithoutRestore(ctx interface{}, session interface{}, orderInfos interface{}) *CartService_CancelOrderWithoutRestore_Call
CancelOrderWithoutRestore is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- orderInfos placeorder.PlacedOrderInfos
func (*CartService_Expecter) Clean ¶ added in v3.7.0
func (_e *CartService_Expecter) Clean(ctx interface{}, session interface{}) *CartService_Clean_Call
Clean is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartService_Expecter) CompleteCurrentCart ¶ added in v3.7.0
func (_e *CartService_Expecter) CompleteCurrentCart(ctx interface{}) *CartService_CompleteCurrentCart_Call
CompleteCurrentCart is a helper method to define mock.On call
- ctx context.Context
func (*CartService_Expecter) CreateInitialDeliveryIfNotPresent ¶ added in v3.7.0
func (_e *CartService_Expecter) CreateInitialDeliveryIfNotPresent(ctx interface{}, session interface{}, deliveryCode interface{}) *CartService_CreateInitialDeliveryIfNotPresent_Call
CreateInitialDeliveryIfNotPresent is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- deliveryCode string
func (*CartService_Expecter) DeleteAllItems ¶ added in v3.7.0
func (_e *CartService_Expecter) DeleteAllItems(ctx interface{}, session interface{}) *CartService_DeleteAllItems_Call
DeleteAllItems is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartService_Expecter) DeleteCartInCache ¶ added in v3.7.0
func (_e *CartService_Expecter) DeleteCartInCache(ctx interface{}, session interface{}, _a2 interface{}) *CartService_DeleteCartInCache_Call
DeleteCartInCache is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- _a2 *cart.Cart
func (*CartService_Expecter) DeleteDelivery ¶ added in v3.7.0
func (_e *CartService_Expecter) DeleteDelivery(ctx interface{}, session interface{}, deliveryCode interface{}) *CartService_DeleteDelivery_Call
DeleteDelivery is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- deliveryCode string
func (*CartService_Expecter) DeleteItem ¶ added in v3.7.0
func (_e *CartService_Expecter) DeleteItem(ctx interface{}, session interface{}, itemID interface{}, deliveryCode interface{}) *CartService_DeleteItem_Call
DeleteItem is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- itemID string
- deliveryCode string
func (*CartService_Expecter) ForceReserveOrderIDAndSave ¶ added in v3.7.0
func (_e *CartService_Expecter) ForceReserveOrderIDAndSave(ctx interface{}, session interface{}) *CartService_ForceReserveOrderIDAndSave_Call
ForceReserveOrderIDAndSave is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartService_Expecter) GetCartReceiverService ¶ added in v3.7.0
func (_e *CartService_Expecter) GetCartReceiverService() *CartService_GetCartReceiverService_Call
GetCartReceiverService is a helper method to define mock.On call
func (*CartService_Expecter) GetDefaultDeliveryCode ¶ added in v3.7.0
func (_e *CartService_Expecter) GetDefaultDeliveryCode() *CartService_GetDefaultDeliveryCode_Call
GetDefaultDeliveryCode is a helper method to define mock.On call
func (*CartService_Expecter) GetInitialDelivery ¶ added in v3.7.0
func (_e *CartService_Expecter) GetInitialDelivery(deliveryCode interface{}) *CartService_GetInitialDelivery_Call
GetInitialDelivery is a helper method to define mock.On call
- deliveryCode string
func (*CartService_Expecter) PlaceOrder ¶ added in v3.7.0
func (_e *CartService_Expecter) PlaceOrder(ctx interface{}, session interface{}, payment interface{}) *CartService_PlaceOrder_Call
PlaceOrder is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- payment *placeorder.Payment
func (*CartService_Expecter) PlaceOrderWithCart ¶ added in v3.7.0
func (_e *CartService_Expecter) PlaceOrderWithCart(ctx interface{}, session interface{}, _a2 interface{}, payment interface{}) *CartService_PlaceOrderWithCart_Call
PlaceOrderWithCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- _a2 *cart.Cart
- payment *placeorder.Payment
func (*CartService_Expecter) RemoveGiftCard ¶ added in v3.7.0
func (_e *CartService_Expecter) RemoveGiftCard(ctx interface{}, session interface{}, couponCode interface{}) *CartService_RemoveGiftCard_Call
RemoveGiftCard is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- couponCode string
func (*CartService_Expecter) RemoveVoucher ¶ added in v3.7.0
func (_e *CartService_Expecter) RemoveVoucher(ctx interface{}, session interface{}, couponCode interface{}) *CartService_RemoveVoucher_Call
RemoveVoucher is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- couponCode string
func (*CartService_Expecter) ReserveOrderIDAndSave ¶ added in v3.7.0
func (_e *CartService_Expecter) ReserveOrderIDAndSave(ctx interface{}, session interface{}) *CartService_ReserveOrderIDAndSave_Call
ReserveOrderIDAndSave is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
func (*CartService_Expecter) RestoreCart ¶ added in v3.7.0
func (_e *CartService_Expecter) RestoreCart(ctx interface{}, _a1 interface{}) *CartService_RestoreCart_Call
RestoreCart is a helper method to define mock.On call
- ctx context.Context
- _a1 *cart.Cart
func (*CartService_Expecter) UpdateAdditionalData ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateAdditionalData(ctx interface{}, session interface{}, additionalData interface{}) *CartService_UpdateAdditionalData_Call
UpdateAdditionalData is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- additionalData map[string]string
func (*CartService_Expecter) UpdateBillingAddress ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateBillingAddress(ctx interface{}, session interface{}, billingAddress interface{}) *CartService_UpdateBillingAddress_Call
UpdateBillingAddress is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- billingAddress *cart.Address
func (*CartService_Expecter) UpdateDeliveryAdditionalData ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateDeliveryAdditionalData(ctx interface{}, session interface{}, deliveryCode interface{}, additionalData interface{}) *CartService_UpdateDeliveryAdditionalData_Call
UpdateDeliveryAdditionalData is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- deliveryCode string
- additionalData map[string]string
func (*CartService_Expecter) UpdateDeliveryInfo ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateDeliveryInfo(ctx interface{}, session interface{}, deliveryCode interface{}, deliveryInfo interface{}) *CartService_UpdateDeliveryInfo_Call
UpdateDeliveryInfo is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- deliveryCode string
- deliveryInfo cart.DeliveryInfoUpdateCommand
func (*CartService_Expecter) UpdateItemBundleConfig ¶ added in v3.9.0
func (_e *CartService_Expecter) UpdateItemBundleConfig(ctx interface{}, session interface{}, updateCommand interface{}) *CartService_UpdateItemBundleConfig_Call
UpdateItemBundleConfig is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- updateCommand cart.ItemUpdateCommand
func (*CartService_Expecter) UpdateItemQty ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateItemQty(ctx interface{}, session interface{}, itemID interface{}, deliveryCode interface{}, qty interface{}) *CartService_UpdateItemQty_Call
UpdateItemQty is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- itemID string
- deliveryCode string
- qty int
func (*CartService_Expecter) UpdateItemSourceID ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateItemSourceID(ctx interface{}, session interface{}, itemID interface{}, sourceID interface{}) *CartService_UpdateItemSourceID_Call
UpdateItemSourceID is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- itemID string
- sourceID string
func (*CartService_Expecter) UpdateItems ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdateItems(ctx interface{}, session interface{}, updateCommands interface{}) *CartService_UpdateItems_Call
UpdateItems is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- updateCommands []cart.ItemUpdateCommand
func (*CartService_Expecter) UpdatePaymentSelection ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdatePaymentSelection(ctx interface{}, session interface{}, paymentSelection interface{}) *CartService_UpdatePaymentSelection_Call
UpdatePaymentSelection is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- paymentSelection cart.PaymentSelection
func (*CartService_Expecter) UpdatePurchaser ¶ added in v3.7.0
func (_e *CartService_Expecter) UpdatePurchaser(ctx interface{}, session interface{}, purchaser interface{}, additionalData interface{}) *CartService_UpdatePurchaser_Call
UpdatePurchaser is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- purchaser *cart.Person
- additionalData *cart.AdditionalData
func (*CartService_Expecter) ValidateCart ¶ added in v3.7.0
func (_e *CartService_Expecter) ValidateCart(ctx interface{}, session interface{}, decoratedCart interface{}) *CartService_ValidateCart_Call
ValidateCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
- decoratedCart *decorator.DecoratedCart
func (*CartService_Expecter) ValidateCurrentCart ¶ added in v3.7.0
func (_e *CartService_Expecter) ValidateCurrentCart(ctx interface{}, session interface{}) *CartService_ValidateCurrentCart_Call
ValidateCurrentCart is a helper method to define mock.On call
- ctx context.Context
- session *web.Session
type CartService_ForceReserveOrderIDAndSave_Call ¶ added in v3.7.0
CartService_ForceReserveOrderIDAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForceReserveOrderIDAndSave'
func (*CartService_ForceReserveOrderIDAndSave_Call) Return ¶ added in v3.7.0
func (_c *CartService_ForceReserveOrderIDAndSave_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ForceReserveOrderIDAndSave_Call
func (*CartService_ForceReserveOrderIDAndSave_Call) Run ¶ added in v3.7.0
func (_c *CartService_ForceReserveOrderIDAndSave_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_ForceReserveOrderIDAndSave_Call
func (*CartService_ForceReserveOrderIDAndSave_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ForceReserveOrderIDAndSave_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartService_ForceReserveOrderIDAndSave_Call
type CartService_GetCartReceiverService_Call ¶ added in v3.7.0
CartService_GetCartReceiverService_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCartReceiverService'
func (*CartService_GetCartReceiverService_Call) Return ¶ added in v3.7.0
func (_c *CartService_GetCartReceiverService_Call) Return(_a0 *application.CartReceiverService) *CartService_GetCartReceiverService_Call
func (*CartService_GetCartReceiverService_Call) Run ¶ added in v3.7.0
func (_c *CartService_GetCartReceiverService_Call) Run(run func()) *CartService_GetCartReceiverService_Call
func (*CartService_GetCartReceiverService_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_GetCartReceiverService_Call) RunAndReturn(run func() *application.CartReceiverService) *CartService_GetCartReceiverService_Call
type CartService_GetDefaultDeliveryCode_Call ¶ added in v3.7.0
CartService_GetDefaultDeliveryCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDefaultDeliveryCode'
func (*CartService_GetDefaultDeliveryCode_Call) Return ¶ added in v3.7.0
func (_c *CartService_GetDefaultDeliveryCode_Call) Return(_a0 string) *CartService_GetDefaultDeliveryCode_Call
func (*CartService_GetDefaultDeliveryCode_Call) Run ¶ added in v3.7.0
func (_c *CartService_GetDefaultDeliveryCode_Call) Run(run func()) *CartService_GetDefaultDeliveryCode_Call
func (*CartService_GetDefaultDeliveryCode_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_GetDefaultDeliveryCode_Call) RunAndReturn(run func() string) *CartService_GetDefaultDeliveryCode_Call
type CartService_GetInitialDelivery_Call ¶ added in v3.7.0
CartService_GetInitialDelivery_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInitialDelivery'
func (*CartService_GetInitialDelivery_Call) Return ¶ added in v3.7.0
func (_c *CartService_GetInitialDelivery_Call) Return(_a0 *cart.DeliveryInfo, _a1 error) *CartService_GetInitialDelivery_Call
func (*CartService_GetInitialDelivery_Call) Run ¶ added in v3.7.0
func (_c *CartService_GetInitialDelivery_Call) Run(run func(deliveryCode string)) *CartService_GetInitialDelivery_Call
func (*CartService_GetInitialDelivery_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_GetInitialDelivery_Call) RunAndReturn(run func(string) (*cart.DeliveryInfo, error)) *CartService_GetInitialDelivery_Call
type CartService_PlaceOrderWithCart_Call ¶ added in v3.7.0
CartService_PlaceOrderWithCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PlaceOrderWithCart'
func (*CartService_PlaceOrderWithCart_Call) Return ¶ added in v3.7.0
func (_c *CartService_PlaceOrderWithCart_Call) Return(_a0 placeorder.PlacedOrderInfos, _a1 error) *CartService_PlaceOrderWithCart_Call
func (*CartService_PlaceOrderWithCart_Call) Run ¶ added in v3.7.0
func (_c *CartService_PlaceOrderWithCart_Call) Run(run func(ctx context.Context, session *web.Session, _a2 *cart.Cart, payment *placeorder.Payment)) *CartService_PlaceOrderWithCart_Call
func (*CartService_PlaceOrderWithCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_PlaceOrderWithCart_Call) RunAndReturn(run func(context.Context, *web.Session, *cart.Cart, *placeorder.Payment) (placeorder.PlacedOrderInfos, error)) *CartService_PlaceOrderWithCart_Call
type CartService_PlaceOrder_Call ¶ added in v3.7.0
CartService_PlaceOrder_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PlaceOrder'
func (*CartService_PlaceOrder_Call) Return ¶ added in v3.7.0
func (_c *CartService_PlaceOrder_Call) Return(_a0 placeorder.PlacedOrderInfos, _a1 error) *CartService_PlaceOrder_Call
func (*CartService_PlaceOrder_Call) Run ¶ added in v3.7.0
func (_c *CartService_PlaceOrder_Call) Run(run func(ctx context.Context, session *web.Session, payment *placeorder.Payment)) *CartService_PlaceOrder_Call
func (*CartService_PlaceOrder_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_PlaceOrder_Call) RunAndReturn(run func(context.Context, *web.Session, *placeorder.Payment) (placeorder.PlacedOrderInfos, error)) *CartService_PlaceOrder_Call
type CartService_RemoveGiftCard_Call ¶ added in v3.7.0
CartService_RemoveGiftCard_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveGiftCard'
func (*CartService_RemoveGiftCard_Call) Return ¶ added in v3.7.0
func (_c *CartService_RemoveGiftCard_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_RemoveGiftCard_Call
func (*CartService_RemoveGiftCard_Call) Run ¶ added in v3.7.0
func (_c *CartService_RemoveGiftCard_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_RemoveGiftCard_Call
func (*CartService_RemoveGiftCard_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_RemoveGiftCard_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_RemoveGiftCard_Call
type CartService_RemoveVoucher_Call ¶ added in v3.7.0
CartService_RemoveVoucher_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoveVoucher'
func (*CartService_RemoveVoucher_Call) Return ¶ added in v3.7.0
func (_c *CartService_RemoveVoucher_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_RemoveVoucher_Call
func (*CartService_RemoveVoucher_Call) Run ¶ added in v3.7.0
func (_c *CartService_RemoveVoucher_Call) Run(run func(ctx context.Context, session *web.Session, couponCode string)) *CartService_RemoveVoucher_Call
func (*CartService_RemoveVoucher_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_RemoveVoucher_Call) RunAndReturn(run func(context.Context, *web.Session, string) (*cart.Cart, error)) *CartService_RemoveVoucher_Call
type CartService_ReserveOrderIDAndSave_Call ¶ added in v3.7.0
CartService_ReserveOrderIDAndSave_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReserveOrderIDAndSave'
func (*CartService_ReserveOrderIDAndSave_Call) Return ¶ added in v3.7.0
func (_c *CartService_ReserveOrderIDAndSave_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_ReserveOrderIDAndSave_Call
func (*CartService_ReserveOrderIDAndSave_Call) Run ¶ added in v3.7.0
func (_c *CartService_ReserveOrderIDAndSave_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_ReserveOrderIDAndSave_Call
func (*CartService_ReserveOrderIDAndSave_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ReserveOrderIDAndSave_Call) RunAndReturn(run func(context.Context, *web.Session) (*cart.Cart, error)) *CartService_ReserveOrderIDAndSave_Call
type CartService_RestoreCart_Call ¶ added in v3.7.0
CartService_RestoreCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RestoreCart'
func (*CartService_RestoreCart_Call) Return ¶ added in v3.7.0
func (_c *CartService_RestoreCart_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_RestoreCart_Call
func (*CartService_RestoreCart_Call) Run ¶ added in v3.7.0
func (_c *CartService_RestoreCart_Call) Run(run func(ctx context.Context, _a1 *cart.Cart)) *CartService_RestoreCart_Call
func (*CartService_RestoreCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_RestoreCart_Call) RunAndReturn(run func(context.Context, *cart.Cart) (*cart.Cart, error)) *CartService_RestoreCart_Call
type CartService_UpdateAdditionalData_Call ¶ added in v3.7.0
CartService_UpdateAdditionalData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateAdditionalData'
func (*CartService_UpdateAdditionalData_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateAdditionalData_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_UpdateAdditionalData_Call
func (*CartService_UpdateAdditionalData_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateAdditionalData_Call) Run(run func(ctx context.Context, session *web.Session, additionalData map[string]string)) *CartService_UpdateAdditionalData_Call
func (*CartService_UpdateAdditionalData_Call) RunAndReturn ¶ added in v3.7.0
type CartService_UpdateBillingAddress_Call ¶ added in v3.7.0
CartService_UpdateBillingAddress_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateBillingAddress'
func (*CartService_UpdateBillingAddress_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateBillingAddress_Call) Return(_a0 error) *CartService_UpdateBillingAddress_Call
func (*CartService_UpdateBillingAddress_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateBillingAddress_Call) Run(run func(ctx context.Context, session *web.Session, billingAddress *cart.Address)) *CartService_UpdateBillingAddress_Call
func (*CartService_UpdateBillingAddress_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdateBillingAddress_Call) RunAndReturn(run func(context.Context, *web.Session, *cart.Address) error) *CartService_UpdateBillingAddress_Call
type CartService_UpdateDeliveryAdditionalData_Call ¶ added in v3.7.0
CartService_UpdateDeliveryAdditionalData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDeliveryAdditionalData'
func (*CartService_UpdateDeliveryAdditionalData_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateDeliveryAdditionalData_Call) Return(_a0 *cart.Cart, _a1 error) *CartService_UpdateDeliveryAdditionalData_Call
func (*CartService_UpdateDeliveryAdditionalData_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateDeliveryAdditionalData_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string, additionalData map[string]string)) *CartService_UpdateDeliveryAdditionalData_Call
func (*CartService_UpdateDeliveryAdditionalData_Call) RunAndReturn ¶ added in v3.7.0
type CartService_UpdateDeliveryInfo_Call ¶ added in v3.7.0
CartService_UpdateDeliveryInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateDeliveryInfo'
func (*CartService_UpdateDeliveryInfo_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateDeliveryInfo_Call) Return(_a0 error) *CartService_UpdateDeliveryInfo_Call
func (*CartService_UpdateDeliveryInfo_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateDeliveryInfo_Call) Run(run func(ctx context.Context, session *web.Session, deliveryCode string, deliveryInfo cart.DeliveryInfoUpdateCommand)) *CartService_UpdateDeliveryInfo_Call
func (*CartService_UpdateDeliveryInfo_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdateDeliveryInfo_Call) RunAndReturn(run func(context.Context, *web.Session, string, cart.DeliveryInfoUpdateCommand) error) *CartService_UpdateDeliveryInfo_Call
type CartService_UpdateItemBundleConfig_Call ¶ added in v3.9.0
CartService_UpdateItemBundleConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateItemBundleConfig'
func (*CartService_UpdateItemBundleConfig_Call) Return ¶ added in v3.9.0
func (_c *CartService_UpdateItemBundleConfig_Call) Return(_a0 error) *CartService_UpdateItemBundleConfig_Call
func (*CartService_UpdateItemBundleConfig_Call) Run ¶ added in v3.9.0
func (_c *CartService_UpdateItemBundleConfig_Call) Run(run func(ctx context.Context, session *web.Session, updateCommand cart.ItemUpdateCommand)) *CartService_UpdateItemBundleConfig_Call
func (*CartService_UpdateItemBundleConfig_Call) RunAndReturn ¶ added in v3.9.0
func (_c *CartService_UpdateItemBundleConfig_Call) RunAndReturn(run func(context.Context, *web.Session, cart.ItemUpdateCommand) error) *CartService_UpdateItemBundleConfig_Call
type CartService_UpdateItemQty_Call ¶ added in v3.7.0
CartService_UpdateItemQty_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateItemQty'
func (*CartService_UpdateItemQty_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateItemQty_Call) Return(_a0 error) *CartService_UpdateItemQty_Call
func (*CartService_UpdateItemQty_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateItemQty_Call) Run(run func(ctx context.Context, session *web.Session, itemID string, deliveryCode string, qty int)) *CartService_UpdateItemQty_Call
func (*CartService_UpdateItemQty_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdateItemQty_Call) RunAndReturn(run func(context.Context, *web.Session, string, string, int) error) *CartService_UpdateItemQty_Call
type CartService_UpdateItemSourceID_Call ¶ added in v3.7.0
CartService_UpdateItemSourceID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateItemSourceID'
func (*CartService_UpdateItemSourceID_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateItemSourceID_Call) Return(_a0 error) *CartService_UpdateItemSourceID_Call
func (*CartService_UpdateItemSourceID_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateItemSourceID_Call) Run(run func(ctx context.Context, session *web.Session, itemID string, sourceID string)) *CartService_UpdateItemSourceID_Call
func (*CartService_UpdateItemSourceID_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdateItemSourceID_Call) RunAndReturn(run func(context.Context, *web.Session, string, string) error) *CartService_UpdateItemSourceID_Call
type CartService_UpdateItems_Call ¶ added in v3.7.0
CartService_UpdateItems_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateItems'
func (*CartService_UpdateItems_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdateItems_Call) Return(_a0 error) *CartService_UpdateItems_Call
func (*CartService_UpdateItems_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdateItems_Call) Run(run func(ctx context.Context, session *web.Session, updateCommands []cart.ItemUpdateCommand)) *CartService_UpdateItems_Call
func (*CartService_UpdateItems_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdateItems_Call) RunAndReturn(run func(context.Context, *web.Session, []cart.ItemUpdateCommand) error) *CartService_UpdateItems_Call
type CartService_UpdatePaymentSelection_Call ¶ added in v3.7.0
CartService_UpdatePaymentSelection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePaymentSelection'
func (*CartService_UpdatePaymentSelection_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdatePaymentSelection_Call) Return(_a0 error) *CartService_UpdatePaymentSelection_Call
func (*CartService_UpdatePaymentSelection_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdatePaymentSelection_Call) Run(run func(ctx context.Context, session *web.Session, paymentSelection cart.PaymentSelection)) *CartService_UpdatePaymentSelection_Call
func (*CartService_UpdatePaymentSelection_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdatePaymentSelection_Call) RunAndReturn(run func(context.Context, *web.Session, cart.PaymentSelection) error) *CartService_UpdatePaymentSelection_Call
type CartService_UpdatePurchaser_Call ¶ added in v3.7.0
CartService_UpdatePurchaser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdatePurchaser'
func (*CartService_UpdatePurchaser_Call) Return ¶ added in v3.7.0
func (_c *CartService_UpdatePurchaser_Call) Return(_a0 error) *CartService_UpdatePurchaser_Call
func (*CartService_UpdatePurchaser_Call) Run ¶ added in v3.7.0
func (_c *CartService_UpdatePurchaser_Call) Run(run func(ctx context.Context, session *web.Session, purchaser *cart.Person, additionalData *cart.AdditionalData)) *CartService_UpdatePurchaser_Call
func (*CartService_UpdatePurchaser_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_UpdatePurchaser_Call) RunAndReturn(run func(context.Context, *web.Session, *cart.Person, *cart.AdditionalData) error) *CartService_UpdatePurchaser_Call
type CartService_ValidateCart_Call ¶ added in v3.7.0
CartService_ValidateCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateCart'
func (*CartService_ValidateCart_Call) Return ¶ added in v3.7.0
func (_c *CartService_ValidateCart_Call) Return(_a0 validation.Result) *CartService_ValidateCart_Call
func (*CartService_ValidateCart_Call) Run ¶ added in v3.7.0
func (_c *CartService_ValidateCart_Call) Run(run func(ctx context.Context, session *web.Session, decoratedCart *decorator.DecoratedCart)) *CartService_ValidateCart_Call
func (*CartService_ValidateCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ValidateCart_Call) RunAndReturn(run func(context.Context, *web.Session, *decorator.DecoratedCart) validation.Result) *CartService_ValidateCart_Call
type CartService_ValidateCurrentCart_Call ¶ added in v3.7.0
CartService_ValidateCurrentCart_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ValidateCurrentCart'
func (*CartService_ValidateCurrentCart_Call) Return ¶ added in v3.7.0
func (_c *CartService_ValidateCurrentCart_Call) Return(_a0 validation.Result, _a1 error) *CartService_ValidateCurrentCart_Call
func (*CartService_ValidateCurrentCart_Call) Run ¶ added in v3.7.0
func (_c *CartService_ValidateCurrentCart_Call) Run(run func(ctx context.Context, session *web.Session)) *CartService_ValidateCurrentCart_Call
func (*CartService_ValidateCurrentCart_Call) RunAndReturn ¶ added in v3.7.0
func (_c *CartService_ValidateCurrentCart_Call) RunAndReturn(run func(context.Context, *web.Session) (validation.Result, error)) *CartService_ValidateCurrentCart_Call