Documentation ¶
Index ¶
- type SourcingService
- func (s *SourcingService) AllocateItems(ctx context.Context, decoratedCart *decorator.DecoratedCart) (commerceSourcingDomain.ItemAllocations, error)
- func (s *SourcingService) GetAvailableSources(_ context.Context, product productDomain.BasicProduct, ...) (commerceSourcingDomain.AvailableSourcesPerProduct, error)
- func (s *SourcingService) Inject(cfg ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourcingService ¶
type SourcingService struct {
// contains filtered or unexported fields
}
func (*SourcingService) AllocateItems ¶
func (s *SourcingService) AllocateItems(ctx context.Context, decoratedCart *decorator.DecoratedCart) (commerceSourcingDomain.ItemAllocations, error)
func (*SourcingService) GetAvailableSources ¶
func (s *SourcingService) GetAvailableSources(_ context.Context, product productDomain.BasicProduct, deliveryInfo *cartDomain.DeliveryInfo, _ *decorator.DecoratedCart) (commerceSourcingDomain.AvailableSourcesPerProduct, error)
func (*SourcingService) Inject ¶
func (s *SourcingService) Inject( cfg *struct { FakeSourceData string `inject:"config:commerce.sourcing.fake.jsonPath,optional"` }, )
Click to show internal directories.
Click to hide internal directories.