OrderService
in package
Class OrderService
Table of Contents
Constants
Properties
- $cmpApi : CmpApi
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $langCodes : mixed
- $productService : ProductService
- $systemAlertService : SystemAlertService
- $vidaxlApi : VidaxlApi
Methods
- __construct() : mixed
- OrderService constructor.
- afterSaleCreated() : void
- afterSaleUpdated() : void
- getOrderByIncrementId() : mixed
- processSale() : mixed
Constants
lang
public
mixed
lang
= ['fr', 'de', 'it']
stores
public
mixed
stores
= ['0' => 'fr', '2' => 'de', '14' => 'it', '20' => 'he']
Properties
$cmpApi
private
CmpApi
$cmpApi
$container
private
ContainerInterface
$container
$entityManager
private
EntityManagerInterface
$entityManager
$langCodes
private
mixed
$langCodes
$productService
private
ProductService
$productService
$systemAlertService
private
SystemAlertService
$systemAlertService
$vidaxlApi
private
VidaxlApi
$vidaxlApi
Methods
__construct()
OrderService constructor.
public
__construct(ContainerInterface $container, EntityManagerInterface $entityManager, CmpApi $cmpApi, SystemAlertService $systemAlertService) : mixed
Parameters
- $container : ContainerInterface
- $entityManager : EntityManagerInterface
- $cmpApi : CmpApi
- $systemAlertService : SystemAlertService
afterSaleCreated()
public
afterSaleCreated(AfterSaleCreatedEvent $event) : void
Parameters
- $event : AfterSaleCreatedEvent
Tags
afterSaleUpdated()
public
afterSaleUpdated(AfterSaleUpdatedEvent $event) : void
Parameters
- $event : AfterSaleUpdatedEvent
getOrderByIncrementId()
public
getOrderByIncrementId(mixed $incrementId) : mixed
Parameters
- $incrementId : mixed
processSale()
private
processSale(Sale $sale) : mixed
Parameters
- $sale : Sale