OrderService
in package
Table of Contents
Properties
- $asirProductService : ProductService
- $container : ContainerInterface
- $em : EntityManagerInterface
- $notificationService : NotificationService
- $priceHistoryService : PriceHistoryService
- $priceService : PriceService
- $productService : ProductService
- $queueService : QueueService
Methods
- __construct() : mixed
- afterSaleCreated() : void
- afterSaleUpdated() : void
- findValidWholeSalePriceByAsirProductId() : mixed
- processSale() : mixed
- updatePrice() : mixed
- updateStockHandler() : mixed
Properties
$asirProductService
private
ProductService
$asirProductService
$container
private
ContainerInterface
$container
$em
private
EntityManagerInterface
$em
$notificationService
private
NotificationService
$notificationService
$priceHistoryService
private
PriceHistoryService
$priceHistoryService
$priceService
private
PriceService
$priceService
$productService
private
ProductService
$productService
$queueService
private
QueueService
$queueService
Methods
__construct()
public
__construct(EntityManagerInterface $entityManager, NotificationService $notificationService, ProductService $asirProductService, PriceHistoryService $priceHistoryService, PriceService $priceService, QueueService $queueService, ContainerInterface $container) : mixed
Parameters
- $entityManager : EntityManagerInterface
- $notificationService : NotificationService
- $asirProductService : ProductService
- $priceHistoryService : PriceHistoryService
- $priceService : PriceService
- $queueService : QueueService
- $container : ContainerInterface
afterSaleCreated()
public
afterSaleCreated(AfterSaleCreatedEvent $event) : void
Parameters
- $event : AfterSaleCreatedEvent
Tags
afterSaleUpdated()
public
afterSaleUpdated(AfterSaleUpdatedEvent $event) : void
Parameters
- $event : AfterSaleUpdatedEvent
findValidWholeSalePriceByAsirProductId()
private
findValidWholeSalePriceByAsirProductId(mixed $asirProductId) : mixed
Parameters
- $asirProductId : mixed
processSale()
private
processSale(Sale $sale) : mixed
Parameters
- $sale : Sale
updatePrice()
private
updatePrice(SaleProduct $saleProduct) : mixed
Parameters
- $saleProduct : SaleProduct
updateStockHandler()
private
updateStockHandler(mixed $saleProduct) : mixed
Parameters
- $saleProduct : mixed