Skip to content

Commit 19e17d7

Browse files
committed
[Orders] Added other links to PHP API Reference (#2759)
* Added other links to PHP API Reference * OrderService -> OrderServiceInterface
1 parent 6530e30 commit 19e17d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/commerce/order_management/order_management_api.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,29 @@ edition: commerce
99

1010
To learn how to manage orders with the REST API, see the [REST API reference](../../api/rest_api/rest_api_reference/rest_api_reference.html#orders).
1111

12-
To get orders and manage them, use the `Ibexa\Contracts\OrderManagement\OrderServiceInterface` interface.
12+
To get orders and manage them, use the [`Ibexa\Contracts\OrderManagement\OrderServiceInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html) interface.
1313

1414
## Get single order
1515

1616
### Get single order by identifier
1717

18-
To access a single order by using its string identifier, use the `OrderService::getOrderByIdentifier` method:
18+
To access a single order by using its string identifier, use the [`OrderServiceInterface::getOrderByIdentifier`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_getOrderByIdentifier) method:
1919

2020
``` php
2121
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 57, 61) =]]
2222
```
2323

2424
### Get single order by ID
2525

26-
To access a single order by using its numerical ID, use the `OrderService::getOrder` method:
26+
To access a single order by using its numerical ID, use the [`OrderServiceInterface::getOrder`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_getOrder) method:
2727

2828
``` php
2929
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 63, 67) =]]
3030
```
3131

3232
## Get multiple orders
3333

34-
To fetch multiple orders, use the `OrderService::findOrders` method.
34+
To fetch multiple orders, use the [`OrderServiceInterface::findOrders`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_findOrders) method.
3535
It follows the same search query pattern as other APIs:
3636

3737
``` php
@@ -43,7 +43,7 @@ It follows the same search query pattern as other APIs:
4343

4444
## Create order
4545

46-
To create an order, use the `OrderService::createOrder` method and provide it with the [`Ibexa\Contracts\OrderManagement\Value\Struct\OrderCreateStruct`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-Value-Struct-OrderCreateStruct.html) object that contains a list of products, purchased quantities, product, total prices, and tax amounts.
46+
To create an order, use the [`OrderServiceInterface::createOrder`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_createOrder) method and provide it with the [`Ibexa\Contracts\OrderManagement\Value\Struct\OrderCreateStruct`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-Value-Struct-OrderCreateStruct.html) object that contains a list of products, purchased quantities, product, total prices, and tax amounts.
4747

4848
``` php
4949
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 97, 108) =]]
@@ -53,7 +53,7 @@ To create an order, use the `OrderService::createOrder` method and provide it wi
5353

5454
You can update the order after it's created.
5555
You could do it to support a scenario when, for example, the order is processed manually and its status has to be changed in the system.
56-
To update order information, use the `OrderService::updateOrder` method:
56+
To update order information, use the [`OrderServiceInterface::updateOrder`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-OrderManagement-OrderServiceInterface.html#method_updateOrder) method:
5757

5858
``` php
5959
[[= include_file('code_samples/api/commerce/src/Command/OrderCommand.php', 110, 114) =]]

0 commit comments

Comments
 (0)