Skip to content

Commit f62874d

Browse files
committed
Reordered files and added new endpoints
1 parent 8f3062c commit f62874d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+2101
-1445
lines changed

docs/en/docs/integrations/clopos/api-reference/client.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,15 @@
4444
- get_product_by_id
4545
- get_sale_types
4646
- get_payment_methods
47+
- get_stop_list
4748
- get_orders
4849
- get_order_by_id
4950
- create_order
5051
- update_order
5152
- get_receipts
5253
- get_receipt_by_id
5354
- create_receipt
55+
- update_closed_receipt
56+
- update_receipt
57+
- close_receipt
5458
- delete_receipt

docs/en/docs/integrations/clopos/api-reference/enums.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@
55
::: integrify.clopos.schemas.enums.ProductType
66

77
::: integrify.clopos.schemas.enums.OrderStatus
8+
9+
::: integrify.clopos.schemas.enums.DiscountType
10+
11+
::: integrify.clopos.schemas.enums.Gender
Lines changed: 73 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,83 +1,115 @@
11
# Response
22

3-
## Response Schemas
3+
## Common
44

5-
::: integrify.clopos.schemas.response.BaseResponse
5+
### Schemas
66

7-
::: integrify.clopos.schemas.response.ObjectResponse
7+
::: integrify.clopos.schemas.common.response.BaseResponse
88

9-
::: integrify.clopos.schemas.response.ObjectListResponse
9+
::: integrify.clopos.schemas.common.response.ObjectResponse
1010

11-
::: integrify.clopos.schemas.response.ErrorResponse
11+
::: integrify.clopos.schemas.common.response.ObjectListResponse
1212

13-
::: integrify.clopos.schemas.response.AuthResponse
13+
::: integrify.clopos.schemas.common.response.ErrorResponse
1414

15-
## Response Object Schemas
15+
### Object
1616

17-
### Main objects
17+
::: integrify.clopos.schemas.common.object.Timestamp
1818

19-
::: integrify.clopos.schemas.objects.main.Venue
19+
::: integrify.clopos.schemas.common.object.Balance
2020

21-
::: integrify.clopos.schemas.objects.main.User
21+
::: integrify.clopos.schemas.common.object.CashbackBalance
2222

23-
::: integrify.clopos.schemas.objects.main.Group
23+
::: integrify.clopos.schemas.common.object.Image
2424

25-
::: integrify.clopos.schemas.objects.main.Customer
25+
::: integrify.clopos.schemas.common.object.Media
2626

27-
::: integrify.clopos.schemas.objects.main.Category
27+
::: integrify.clopos.schemas.common.object.Variant
2828

29-
::: integrify.clopos.schemas.objects.main.Station
29+
::: integrify.clopos.schemas.common.object.Modifier
3030

31-
::: integrify.clopos.schemas.objects.main.Product
31+
::: integrify.clopos.schemas.common.object.ModifierGroup
3232

33-
::: integrify.clopos.schemas.objects.main.PaymentMethod
33+
::: integrify.clopos.schemas.common.object.Package
3434

35-
::: integrify.clopos.schemas.objects.main.SaleType
35+
::: integrify.clopos.schemas.common.object.Tax
3636

37-
::: integrify.clopos.schemas.objects.main.Order
37+
::: integrify.clopos.schemas.common.object.Price
3838

39-
::: integrify.clopos.schemas.objects.main.Receipt
39+
::: integrify.clopos.schemas.common.object.TimerSetting
4040

41-
### SubObjects
41+
::: integrify.clopos.schemas.common.object.Service
4242

43-
::: integrify.clopos.schemas.objects.sub.Timestamp
43+
## Auth Schemas
4444

45-
::: integrify.clopos.schemas.objects.sub.Balance
45+
::: integrify.clopos.schemas.auth.response.AuthResponse
4646

47-
::: integrify.clopos.schemas.objects.sub.Image
47+
## Object
4848

49-
::: integrify.clopos.schemas.objects.sub.Media
49+
### Venue
5050

51-
::: integrify.clopos.schemas.objects.sub.Variant
51+
::: integrify.clopos.schemas.venues.object.Venue
5252

53-
::: integrify.clopos.schemas.objects.sub.Modifier
53+
### User
5454

55-
::: integrify.clopos.schemas.objects.sub.ModifierGroup
55+
::: integrify.clopos.schemas.users.object.User
5656

57-
::: integrify.clopos.schemas.objects.sub.Package
57+
### Customer
5858

59-
::: integrify.clopos.schemas.objects.sub.Tax
59+
::: integrify.clopos.schemas.customers.object.Group
6060

61-
::: integrify.clopos.schemas.objects.sub.Price
61+
::: integrify.clopos.schemas.customers.object.Customer
6262

63-
::: integrify.clopos.schemas.objects.sub.TimerSetting
63+
## Category
6464

65-
::: integrify.clopos.schemas.objects.sub.OrderItem
65+
::: integrify.clopos.schemas.categories.object.Category
6666

67-
::: integrify.clopos.schemas.objects.sub.Service
67+
## Station
6868

69-
::: integrify.clopos.schemas.objects.sub.OrderProductProduct
69+
::: integrify.clopos.schemas.stations.object.Station
7070

71-
::: integrify.clopos.schemas.objects.sub.OrderPayload
71+
## Product
7272

73-
::: integrify.clopos.schemas.objects.sub.OrderCustomer
73+
::: integrify.clopos.schemas.products.object.Product
7474

75-
::: integrify.clopos.schemas.objects.sub.OrderProduct
75+
::: integrify.clopos.schemas.products.object.StopList
7676

77-
::: integrify.clopos.schemas.objects.sub.OrderProductMeta
77+
## Sales
7878

79-
::: integrify.clopos.schemas.objects.sub.OrderProductProduct
79+
::: integrify.clopos.schemas.sales.object.PaymentMethod
8080

81-
::: integrify.clopos.schemas.objects.sub.ReceiptPaymentMethod
81+
::: integrify.clopos.schemas.sales.object.SaleType
8282

83-
::: integrify.clopos.schemas.objects.sub.ReceiptProduct
83+
## Order
84+
85+
::: integrify.clopos.schemas.orders.object.Order
86+
87+
::: integrify.clopos.schemas.orders.object.OrderItem
88+
89+
::: integrify.clopos.schemas.orders.object.OrderPayload
90+
91+
::: integrify.clopos.schemas.orders.object.OrderCustomer
92+
93+
::: integrify.clopos.schemas.orders.object.OrderProduct
94+
95+
::: integrify.clopos.schemas.orders.object.OrderProductMeta
96+
97+
::: integrify.clopos.schemas.orders.object.OrderProductProduct
98+
99+
::: integrify.clopos.schemas.orders.object.OrderPayloadIn
100+
101+
::: integrify.clopos.schemas.orders.object.ProductIn
102+
103+
::: integrify.clopos.schemas.orders.object.CustomerIn
104+
105+
::: integrify.clopos.schemas.orders.object.ServiceIn
106+
107+
## Receipt
108+
109+
::: integrify.clopos.schemas.receipts.object.Receipt
110+
111+
::: integrify.clopos.schemas.receipts.object.ReceiptProduct
112+
113+
::: integrify.clopos.schemas.receipts.object.ReceiptPaymentMethod
114+
115+
::: integrify.clopos.schemas.receipts.object.ReceiptProductIn

duties.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def type_check(ctx: context.Context, *files):
9393
arg = ' '.join(files if files else SRC)
9494

9595
ctx.run(f'mypy {arg}', title='Type checking with mypy')
96+
# ctx.run(f'ty check {arg}', title='Type checking with ty')
9697

9798

9899
@duty

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ dev = [
6363
"coverage>=7.6.3,<8",
6464
"pylint>=3.3.1,<4",
6565
"duty>=1.5.0",
66+
"ty>=0.0.1a29",
6667
]
6768
docs = [
6869
"mkdocs-material[imaging]>=9.6.4,<10",

0 commit comments

Comments
 (0)