|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct (SearchCriteriaBuilder $searchCriteriaBuilder, FilterBuilder $filterBuilder, OrderRepositoryInterface $orderRepository, CurrencyFactory $currencyFactory, LoggerInterface $logger) | |
| getAggregatedOrdersInfo ($customerId) | |
Provides information about customer orders.
@SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 22 of file CustomerOrders.php.
| __construct | ( | SearchCriteriaBuilder | $searchCriteriaBuilder, |
| FilterBuilder | $filterBuilder, | ||
| OrderRepositoryInterface | $orderRepository, | ||
| CurrencyFactory | $currencyFactory, | ||
| LoggerInterface | $logger | ||
| ) |
| SearchCriteriaBuilder | $searchCriteriaBuilder | |
| FilterBuilder | $filterBuilder | |
| OrderRepositoryInterface | $orderRepository | |
| CurrencyFactory | $currencyFactory | |
| LoggerInterface | $logger |
Definition at line 66 of file CustomerOrders.php.
| getAggregatedOrdersInfo | ( | $customerId | ) |
Returns aggregated customer orders count and total amount in USD.
Returned array contains next keys: aggregateOrderCount - total count of orders placed by this account since it was created, including the current aggregateOrderDollars - total amount spent by this account since it was created, including the current order
| int | $customerId |
Definition at line 90 of file CustomerOrders.php.