Skip to content

Commit

Permalink
Add new field in_rating to order (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneMalvine authored Jan 29, 2024
1 parent b216b5f commit 0b867a0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 29.01.2024

* Добавлена информация (`in_rating`) учитывается ли заказ в рейтинге успешности в [блок с информацией о заказе](docs/order/index.md#описание-полей-ответа)

## 03.01.2024

* Добавлена информация (`permissions`) о правах доступа для удаления в [блок с информацией о заказе](docs/order/show.md#описание-полей-ответа)
Expand Down
3 changes: 3 additions & 0 deletions docs/order/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ Accept: application/json; charset=utf-8
"installment_info": null,
"total_quantity": 1,
"shop_comments_count": 0,
"in_rating": false,
"comment": "",
"product_names": [],
"permissions": {
Expand All @@ -132,6 +133,7 @@ Accept: application/json; charset=utf-8
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"in_rating": false,
"promocode": null,
"order_cost": {
"amount": "27.00",
Expand Down Expand Up @@ -275,6 +277,7 @@ Accept: application/json; charset=utf-8
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"in_rating": false,
"promocode": {
"id": 1,
"name": "test1"
Expand Down
13 changes: 10 additions & 3 deletions docs/order/show.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ Accept: application/json; charset=utf-8
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"in_rating": false,
"order_cost": {
"amount": "21.00",
"currency": "BYN"
Expand Down Expand Up @@ -267,7 +268,8 @@ Accept: application/json; charset=utf-8
"status": "new",
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"shop_comments_count": 0,
"in_rating": false,
"installment_info": null,
"order_cost": {
"amount": "21.00",
Expand Down Expand Up @@ -408,7 +410,8 @@ Accept: application/json; charset=utf-8
"status": "delivered",
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"shop_comments_count": 0,
"in_rating": false,
"installment_info": {
"amount_per_month": {
"amount": "9.00",
Expand Down Expand Up @@ -633,6 +636,7 @@ Accept: application/json; charset=utf-8
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"in_rating": false,
"comment": "Доставка с 9 до 18",
"permissions": {
"delete": false
Expand Down Expand Up @@ -809,7 +813,8 @@ Accept: application/json; charset=utf-8
"status": "delivered",
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"shop_comments_count": 0,
"in_rating": false,
"installment_info": null,
"order_cost": {
"amount": "25.00",
Expand Down Expand Up @@ -992,6 +997,7 @@ Accept: application/json; charset=utf-8
"positions_count": 1,
"total_quantity": 1,
"shop_comments_count": 0,
"in_rating": false,
"order_cost": {
"amount": "21.00",
"currency": "BYN"
Expand Down Expand Up @@ -1187,6 +1193,7 @@ Accept: application/json; charset=utf-8
| installment_info.amount_per_month | money | Информация о сумме ежемесячного платежа |
| permissions | object | Права доступа для заказа |
| permissions.delete | bool | Можно ли удалить заказ |
| in_rating | bool | Флаг указывающий, учитывается ли заказ в рейтинге успешности |

#### Описание блока с информацией о ценовой позиции (каждый объект в массиве positions)

Expand Down

0 comments on commit 0b867a0

Please sign in to comment.