mocks

package
v0.0.0-...-bb92df6 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: OSL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllBehaviour

AllBehaviour is an manually created mock to combine all autogenerated mocks

type CompleteBehaviour

type CompleteBehaviour struct {
	mock.Mock
}

CompleteBehaviour is an autogenerated mock type for the CompleteBehaviour type

func (*CompleteBehaviour) Complete

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

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

func (*CompleteBehaviour) Restore

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

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

type CustomerCartService

type CustomerCartService struct {
	mock.Mock
}

CustomerCartService is an autogenerated mock type for the CustomerCartService type

func (*CustomerCartService) GetCart

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

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

func (*CustomerCartService) GetModifyBehaviour

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

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

func (*CustomerCartService) RestoreCart

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

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

type GiftCardAndVoucherBehaviour

type GiftCardAndVoucherBehaviour struct {
	mock.Mock
}

GiftCardAndVoucherBehaviour is an autogenerated mock type for the GiftCardAndVoucherBehaviour type

func (*GiftCardAndVoucherBehaviour) ApplyAny

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

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

type GiftCardBehaviour

type GiftCardBehaviour struct {
	mock.Mock
}

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

type GuestCartService struct {
	mock.Mock
}

GuestCartService is an autogenerated mock type for the GuestCartService type

func (*GuestCartService) GetCart

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

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

func (*GuestCartService) GetModifyBehaviour

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

GetModifyBehaviour provides a mock function with given fields: _a0

func (*GuestCartService) GetNewCart

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

GetNewCart provides a mock function with given fields: ctx

func (*GuestCartService) RestoreCart

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

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

type ModifyBehaviour

type ModifyBehaviour struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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