Documentation ¶
Index ¶
- type AllBehaviour
- type CompleteBehaviour
- type CustomerCartService
- func (_m *CustomerCartService) GetCart(ctx context.Context, auth domain.Auth, cartID string) (*cart.Cart, error)
- func (_m *CustomerCartService) GetModifyBehaviour(_a0 context.Context, _a1 domain.Auth) (cart.ModifyBehaviour, error)
- func (_m *CustomerCartService) RestoreCart(ctx context.Context, auth domain.Auth, _a2 cart.Cart) (*cart.Cart, error)
- type GiftCardAndVoucherBehaviour
- type GiftCardBehaviour
- type GuestCartService
- func (_m *GuestCartService) GetCart(ctx context.Context, cartID string) (*cart.Cart, error)
- func (_m *GuestCartService) GetModifyBehaviour(_a0 context.Context) (cart.ModifyBehaviour, error)
- func (_m *GuestCartService) GetNewCart(ctx context.Context) (*cart.Cart, error)
- func (_m *GuestCartService) RestoreCart(ctx context.Context, _a1 cart.Cart) (*cart.Cart, error)
- type ModifyBehaviour
- func (_m *ModifyBehaviour) AddToCart(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) ApplyVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) CleanCart(ctx context.Context, _a1 *cart.Cart) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) CleanDelivery(ctx context.Context, _a1 *cart.Cart, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) DeleteItem(ctx context.Context, _a1 *cart.Cart, itemID string, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) RemoveVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateAdditionalData(ctx context.Context, _a1 *cart.Cart, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateBillingAddress(ctx context.Context, _a1 *cart.Cart, billingAddress cart.Address) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateDeliveryInfo(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateDeliveryInfoAdditionalData(ctx context.Context, _a1 *cart.Cart, deliveryCode string, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateItem(ctx context.Context, _a1 *cart.Cart, itemUpdateCommand cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdateItems(ctx context.Context, _a1 *cart.Cart, ...) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdatePaymentSelection(ctx context.Context, _a1 *cart.Cart, paymentSelection cart.PaymentSelection) (*cart.Cart, cart.DeferEvents, error)
- func (_m *ModifyBehaviour) UpdatePurchaser(ctx context.Context, _a1 *cart.Cart, purchaser *cart.Person, ...) (*cart.Cart, cart.DeferEvents, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllBehaviour ¶
type AllBehaviour struct { CompleteBehaviour ModifyBehaviour GiftCardAndVoucherBehaviour GiftCardBehaviour }
AllBehaviour is an manually created mock to combine all autogenerated mocks
type CompleteBehaviour ¶
CompleteBehaviour is an autogenerated mock type for the CompleteBehaviour type
type CustomerCartService ¶
CustomerCartService is an autogenerated mock type for the CustomerCartService type
func (*CustomerCartService) GetCart ¶
func (_m *CustomerCartService) GetCart(ctx context.Context, auth domain.Auth, cartID string) (*cart.Cart, error)
GetCart provides a mock function with given fields: ctx, auth, cartID
func (*CustomerCartService) GetModifyBehaviour ¶
func (_m *CustomerCartService) GetModifyBehaviour(_a0 context.Context, _a1 domain.Auth) (cart.ModifyBehaviour, error)
GetModifyBehaviour provides a mock function with given fields: _a0, _a1
type GiftCardAndVoucherBehaviour ¶
GiftCardAndVoucherBehaviour is an autogenerated mock type for the GiftCardAndVoucherBehaviour type
type GiftCardBehaviour ¶
GiftCardBehaviour is an autogenerated mock type for the GiftCardBehaviour type
func (*GiftCardBehaviour) ApplyGiftCard ¶
func (_m *GiftCardBehaviour) ApplyGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, cart.DeferEvents, error)
ApplyGiftCard provides a mock function with given fields: ctx, _a1, giftCardCode
func (*GiftCardBehaviour) RemoveGiftCard ¶
func (_m *GiftCardBehaviour) RemoveGiftCard(ctx context.Context, _a1 *cart.Cart, giftCardCode string) (*cart.Cart, cart.DeferEvents, error)
RemoveGiftCard provides a mock function with given fields: ctx, _a1, giftCardCode
type GuestCartService ¶
GuestCartService is an autogenerated mock type for the GuestCartService type
func (*GuestCartService) GetModifyBehaviour ¶
func (_m *GuestCartService) GetModifyBehaviour(_a0 context.Context) (cart.ModifyBehaviour, error)
GetModifyBehaviour provides a mock function with given fields: _a0
func (*GuestCartService) GetNewCart ¶
GetNewCart provides a mock function with given fields: ctx
func (*GuestCartService) RestoreCart ¶
RestoreCart provides a mock function with given fields: ctx, _a1
type ModifyBehaviour ¶
ModifyBehaviour is an autogenerated mock type for the ModifyBehaviour type
func (*ModifyBehaviour) AddToCart ¶
func (_m *ModifyBehaviour) AddToCart(ctx context.Context, _a1 *cart.Cart, deliveryCode string, addRequest cart.AddRequest) (*cart.Cart, cart.DeferEvents, error)
AddToCart provides a mock function with given fields: ctx, _a1, deliveryCode, addRequest
func (*ModifyBehaviour) ApplyVoucher ¶
func (_m *ModifyBehaviour) ApplyVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)
ApplyVoucher provides a mock function with given fields: ctx, _a1, couponCode
func (*ModifyBehaviour) CleanCart ¶
func (_m *ModifyBehaviour) CleanCart(ctx context.Context, _a1 *cart.Cart) (*cart.Cart, cart.DeferEvents, error)
CleanCart provides a mock function with given fields: ctx, _a1
func (*ModifyBehaviour) CleanDelivery ¶
func (_m *ModifyBehaviour) CleanDelivery(ctx context.Context, _a1 *cart.Cart, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)
CleanDelivery provides a mock function with given fields: ctx, _a1, deliveryCode
func (*ModifyBehaviour) DeleteItem ¶
func (_m *ModifyBehaviour) DeleteItem(ctx context.Context, _a1 *cart.Cart, itemID string, deliveryCode string) (*cart.Cart, cart.DeferEvents, error)
DeleteItem provides a mock function with given fields: ctx, _a1, itemID, deliveryCode
func (*ModifyBehaviour) RemoveVoucher ¶
func (_m *ModifyBehaviour) RemoveVoucher(ctx context.Context, _a1 *cart.Cart, couponCode string) (*cart.Cart, cart.DeferEvents, error)
RemoveVoucher provides a mock function with given fields: ctx, _a1, couponCode
func (*ModifyBehaviour) UpdateAdditionalData ¶
func (_m *ModifyBehaviour) UpdateAdditionalData(ctx context.Context, _a1 *cart.Cart, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)
UpdateAdditionalData provides a mock function with given fields: ctx, _a1, additionalData
func (*ModifyBehaviour) UpdateBillingAddress ¶
func (_m *ModifyBehaviour) UpdateBillingAddress(ctx context.Context, _a1 *cart.Cart, billingAddress cart.Address) (*cart.Cart, cart.DeferEvents, error)
UpdateBillingAddress provides a mock function with given fields: ctx, _a1, billingAddress
func (*ModifyBehaviour) UpdateDeliveryInfo ¶
func (_m *ModifyBehaviour) UpdateDeliveryInfo(ctx context.Context, _a1 *cart.Cart, deliveryCode string, deliveryInfo cart.DeliveryInfoUpdateCommand) (*cart.Cart, cart.DeferEvents, error)
UpdateDeliveryInfo provides a mock function with given fields: ctx, _a1, deliveryCode, deliveryInfo
func (*ModifyBehaviour) UpdateDeliveryInfoAdditionalData ¶
func (_m *ModifyBehaviour) UpdateDeliveryInfoAdditionalData(ctx context.Context, _a1 *cart.Cart, deliveryCode string, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)
UpdateDeliveryInfoAdditionalData provides a mock function with given fields: ctx, _a1, deliveryCode, additionalData
func (*ModifyBehaviour) UpdateItem ¶
func (_m *ModifyBehaviour) UpdateItem(ctx context.Context, _a1 *cart.Cart, itemUpdateCommand cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)
UpdateItem provides a mock function with given fields: ctx, _a1, itemUpdateCommand
func (*ModifyBehaviour) UpdateItems ¶
func (_m *ModifyBehaviour) UpdateItems(ctx context.Context, _a1 *cart.Cart, itemUpdateCommands []cart.ItemUpdateCommand) (*cart.Cart, cart.DeferEvents, error)
UpdateItems provides a mock function with given fields: ctx, _a1, itemUpdateCommands
func (*ModifyBehaviour) UpdatePaymentSelection ¶
func (_m *ModifyBehaviour) UpdatePaymentSelection(ctx context.Context, _a1 *cart.Cart, paymentSelection cart.PaymentSelection) (*cart.Cart, cart.DeferEvents, error)
UpdatePaymentSelection provides a mock function with given fields: ctx, _a1, paymentSelection
func (*ModifyBehaviour) UpdatePurchaser ¶
func (_m *ModifyBehaviour) UpdatePurchaser(ctx context.Context, _a1 *cart.Cart, purchaser *cart.Person, additionalData *cart.AdditionalData) (*cart.Cart, cart.DeferEvents, error)
UpdatePurchaser provides a mock function with given fields: ctx, _a1, purchaser, additionalData