OrderService
Namespace
IO\Services
Type | Name | Value | Description |
---|---|---|---|
|
[1,2,3,9] |
||
|
[1,5] |
Type | Name | Description |
---|---|---|
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
Methods
public __construct($orderRepository, $basketService, $sessionStorage, $frontendPaymentMethodRepository, $addressRepository, $urlService, $checkoutService, $customerService)
OrderService constructor.
Type |
Name |
Description |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
public placeOrder():LocalizedOrder
Place an order
public executePayment($orderId, $paymentId):array
Execute the payment for a given order.
Type |
Name |
Description |
|
The order id to execute payment for |
|
|
The MoP-ID to execute |
public findOrderById($orderId, $wrap = true):mixed
Find an order by ID
Type |
Name |
Description |
|
||
|
public findOrderByAccessKey()
public getOrdersForContact($contactId, $page = 1, $items = 50, $filters = [], $wrapped = true): PaginatedResult
Get a list of orders for a contact
Type |
Name |
Description |
|
||
|
||
|
||
|
||
|
public getOrdersCompact()
public getLatestOrderForContact($contactId):LocalizedOrder
Get the last order created by the current contact
Type |
Name |
Description |
|
public getOrderPropertyByOrderId()
public isReturnActive()
public createOrderReturn()
public getReturnableItems($order):array
Type |
Name |
Description |
|
public getPaymentMethodListForSwitch($currentPaymentMethodId, $orderId = null):Collection
List all payment methods available for switch in MyAccount
Type |
Name |
Description |
|
||
|
public complete($order)
Do steps after creating the order
Type |
Name |
Description |
|