Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourcingEngine ¶
type SourcingEngine struct { SourcingService SourcingService `inject:",optional"` Logger flamingo.Logger `inject:""` Cartservice *application.CartService `inject:""` }
SourcingEngine computes item sources
func (*SourcingEngine) SetSourcesForCartItems ¶
func (se *SourcingEngine) SetSourcesForCartItems(ctx context.Context, session *web.Session, decoratedCart *cart.DecoratedCart) error
SetSourcesForCartItems gets Sources and modifies the Cart Items todo move to application layer ?
type SourcingService ¶
type SourcingService interface {
GetSourceID(ctx context.Context, session *web.Session, decoratedCart *cart.DecoratedCart, deliveryCode string, item *cart.DecoratedCartItem) (string, error)
}
SourcingService helps in retrieving item sources
Click to show internal directories.
Click to hide internal directories.