moysklad-api 0.5.13a1__py3-none-any.whl → 0.5.14a1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- moysklad_api/client/api.py +130 -0
- moysklad_api/enums/__init__.py +1 -0
- moysklad_api/enums/bonus_program_welcome_mode.py +6 -0
- moysklad_api/filters/prop.py +1 -1
- moysklad_api/methods/__init__.py +8 -0
- moysklad_api/methods/get_bonus_program.py +18 -0
- moysklad_api/methods/get_bonus_programs.py +15 -0
- moysklad_api/methods/get_commissionreportin.py +21 -0
- moysklad_api/methods/get_commissionreportins.py +21 -0
- moysklad_api/methods/get_current_stock.py +0 -1
- moysklad_api/types/__init__.py +6 -0
- moysklad_api/types/agent_account.py +5 -0
- moysklad_api/types/bonus_program.py +20 -1
- moysklad_api/types/commissionreportin.py +65 -0
- moysklad_api/types/commissionreportin_position.py +17 -0
- moysklad_api/types/return_to_commissioner_position.py +15 -0
- {moysklad_api-0.5.13a1.dist-info → moysklad_api-0.5.14a1.dist-info}/METADATA +1 -1
- {moysklad_api-0.5.13a1.dist-info → moysklad_api-0.5.14a1.dist-info}/RECORD +20 -11
- {moysklad_api-0.5.13a1.dist-info → moysklad_api-0.5.14a1.dist-info}/WHEEL +0 -0
- {moysklad_api-0.5.13a1.dist-info → moysklad_api-0.5.14a1.dist-info}/licenses/LICENSE +0 -0
moysklad_api/client/api.py
CHANGED
|
@@ -8,8 +8,12 @@ from ..filters.condition import Condition
|
|
|
8
8
|
from ..methods import (
|
|
9
9
|
GetAssortment,
|
|
10
10
|
GetAudit,
|
|
11
|
+
GetBonusProgram,
|
|
12
|
+
GetBonusPrograms,
|
|
11
13
|
GetBonusTransaction,
|
|
12
14
|
GetBonusTransactions,
|
|
15
|
+
GetCommissionReportIn,
|
|
16
|
+
GetCommissionReportIns,
|
|
13
17
|
GetCounterparty,
|
|
14
18
|
GetCurrentStock,
|
|
15
19
|
GetEvents,
|
|
@@ -38,6 +42,7 @@ from ..methods.get_demands import GetDemands
|
|
|
38
42
|
from ..types import (
|
|
39
43
|
Assortment,
|
|
40
44
|
Audit,
|
|
45
|
+
BonusProgram,
|
|
41
46
|
BonusTransaction,
|
|
42
47
|
Counterparty,
|
|
43
48
|
CurrentStock,
|
|
@@ -52,6 +57,7 @@ from ..types import (
|
|
|
52
57
|
Variant,
|
|
53
58
|
Webhook,
|
|
54
59
|
)
|
|
60
|
+
from ..types.commissionreportin import CommissionReportIn
|
|
55
61
|
from ..utils.token import validate_token
|
|
56
62
|
|
|
57
63
|
|
|
@@ -180,6 +186,63 @@ class MoyskladAPI:
|
|
|
180
186
|
)
|
|
181
187
|
return await self(call)
|
|
182
188
|
|
|
189
|
+
async def get_bonusprogram(
|
|
190
|
+
self,
|
|
191
|
+
bonusprogram_id: str,
|
|
192
|
+
filters: Condition | Sequence[Condition] | None = None,
|
|
193
|
+
limit: int | None = 1000,
|
|
194
|
+
offset: int | None = None,
|
|
195
|
+
expand: Sequence[str] | str | None = None,
|
|
196
|
+
) -> BonusProgram:
|
|
197
|
+
"""
|
|
198
|
+
Используйте этот метод для получения бонусной программы по ID.
|
|
199
|
+
|
|
200
|
+
Источник:
|
|
201
|
+
https://dev.moysklad.ru/doc/api/remap/1.2/#/dictionaries/bonus-operation#3-poluchit-bonusnuyu-operaciyu
|
|
202
|
+
|
|
203
|
+
:param bonusprogram_id: Идентификатор бонусной программы
|
|
204
|
+
:param filters: Фильтрация выборки
|
|
205
|
+
:param limit: Количество элементов в выданном списке
|
|
206
|
+
:param offset: Отступ в выданном списке
|
|
207
|
+
:param expand: Замена ссылок объектами
|
|
208
|
+
:return: :class:`BonusProgram`
|
|
209
|
+
"""
|
|
210
|
+
call = GetBonusProgram(
|
|
211
|
+
bonusprogram_id=bonusprogram_id,
|
|
212
|
+
limit=limit,
|
|
213
|
+
offset=offset,
|
|
214
|
+
expand=expand,
|
|
215
|
+
filters=filters,
|
|
216
|
+
)
|
|
217
|
+
return await self(call)
|
|
218
|
+
|
|
219
|
+
async def get_bonusprograms(
|
|
220
|
+
self,
|
|
221
|
+
filters: Condition | Sequence[Condition] | None = None,
|
|
222
|
+
limit: int | None = 1000,
|
|
223
|
+
offset: int | None = None,
|
|
224
|
+
expand: Sequence[str] | str | None = None,
|
|
225
|
+
) -> MetaArray[BonusProgram]:
|
|
226
|
+
"""
|
|
227
|
+
Используйте этот метод для получения списка бонусных программ.
|
|
228
|
+
|
|
229
|
+
Источник:
|
|
230
|
+
https://dev.moysklad.ru/doc/api/remap/1.2/#/dictionaries/bonus-operation#3-poluchit-bonusnye-operacii
|
|
231
|
+
|
|
232
|
+
:param filters: Фильтрация выборки
|
|
233
|
+
:param limit: Количество элементов в выданном списке
|
|
234
|
+
:param offset: Отступ в выданном списке
|
|
235
|
+
:param expand: Замена ссылок объектами
|
|
236
|
+
:return: :class:`MetaArray[BonusProgram]`
|
|
237
|
+
"""
|
|
238
|
+
call = GetBonusPrograms(
|
|
239
|
+
limit=limit,
|
|
240
|
+
offset=offset,
|
|
241
|
+
expand=expand,
|
|
242
|
+
filters=filters,
|
|
243
|
+
)
|
|
244
|
+
return await self(call)
|
|
245
|
+
|
|
183
246
|
async def get_bonustransactions(
|
|
184
247
|
self,
|
|
185
248
|
filters: Condition | Sequence[Condition] | None = None,
|
|
@@ -528,6 +591,73 @@ class MoyskladAPI:
|
|
|
528
591
|
)
|
|
529
592
|
return await self(call)
|
|
530
593
|
|
|
594
|
+
async def get_commissionreportin(
|
|
595
|
+
self,
|
|
596
|
+
commissionreportin_id: str,
|
|
597
|
+
incoming_date: datetime | None = None,
|
|
598
|
+
filters: Condition | Sequence[Condition] | None = None,
|
|
599
|
+
limit: int | None = 1000,
|
|
600
|
+
offset: int | None = None,
|
|
601
|
+
search: str | None = None,
|
|
602
|
+
expand: Sequence[str] | str | None = None,
|
|
603
|
+
) -> CommissionReportIn:
|
|
604
|
+
"""
|
|
605
|
+
Используйте этот метод для получения отчетов комиссионера по ID.
|
|
606
|
+
|
|
607
|
+
Источник: https://dev.moysklad.ru/doc/api/remap/1.2/#/documents/commissionreportin#3-poluchit-otchet-komissionera
|
|
608
|
+
|
|
609
|
+
:param commissionreportin_id: Идентификатор полученного отчета комиссионера
|
|
610
|
+
:param incoming_date: Параметр для фильтрации выборки по входящей дате
|
|
611
|
+
:param filters: Фильтрация выборки
|
|
612
|
+
:param limit: Количество элементов в выданном списке
|
|
613
|
+
:param offset: Отступ в выданном списке
|
|
614
|
+
:param search: Контекстный поиск
|
|
615
|
+
:param expand: Замена ссылок объектами
|
|
616
|
+
:return: :class:`CommissionReportIn`
|
|
617
|
+
"""
|
|
618
|
+
call = GetCommissionReportIn(
|
|
619
|
+
commissionreportin_id=commissionreportin_id,
|
|
620
|
+
incoming_date=incoming_date,
|
|
621
|
+
filters=filters,
|
|
622
|
+
limit=limit,
|
|
623
|
+
offset=offset,
|
|
624
|
+
search=search,
|
|
625
|
+
expand=expand,
|
|
626
|
+
)
|
|
627
|
+
return await self(call)
|
|
628
|
+
|
|
629
|
+
async def get_commissionreportins(
|
|
630
|
+
self,
|
|
631
|
+
incoming_date: datetime | None = None,
|
|
632
|
+
filters: Condition | Sequence[Condition] | None = None,
|
|
633
|
+
limit: int | None = 1000,
|
|
634
|
+
offset: int | None = None,
|
|
635
|
+
search: str | None = None,
|
|
636
|
+
expand: Sequence[str] | str | None = None,
|
|
637
|
+
) -> MetaArray[CommissionReportIn]:
|
|
638
|
+
"""
|
|
639
|
+
Используйте этот метод для получения всех полученных отчетов комиссионера.
|
|
640
|
+
|
|
641
|
+
Источник: https://dev.moysklad.ru/doc/api/remap/1.2/#/documents/commissionreportin#3-poluchit-otchety-komissionera
|
|
642
|
+
|
|
643
|
+
:param incoming_date: Параметр для фильтрации выборки по входящей дате
|
|
644
|
+
:param filters: Фильтрация выборки
|
|
645
|
+
:param limit: Количество элементов в выданном списке
|
|
646
|
+
:param offset: Отступ в выданном списке
|
|
647
|
+
:param search: Контекстный поиск
|
|
648
|
+
:param expand: Замена ссылок объектами
|
|
649
|
+
:return: :class:`MetaArray[CommissionReportIn]`
|
|
650
|
+
"""
|
|
651
|
+
call = GetCommissionReportIns(
|
|
652
|
+
incoming_date=incoming_date,
|
|
653
|
+
filters=filters,
|
|
654
|
+
limit=limit,
|
|
655
|
+
offset=offset,
|
|
656
|
+
search=search,
|
|
657
|
+
expand=expand,
|
|
658
|
+
)
|
|
659
|
+
return await self(call)
|
|
660
|
+
|
|
531
661
|
async def get_webhook(
|
|
532
662
|
self,
|
|
533
663
|
webhook_id: str,
|
moysklad_api/enums/__init__.py
CHANGED
moysklad_api/filters/prop.py
CHANGED
moysklad_api/methods/__init__.py
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
from .base import MSMethod, T
|
|
2
2
|
from .get_assortment import GetAssortment
|
|
3
3
|
from .get_audit import GetAudit
|
|
4
|
+
from .get_bonus_program import GetBonusProgram
|
|
5
|
+
from .get_bonus_programs import GetBonusPrograms
|
|
4
6
|
from .get_bonus_transaction import GetBonusTransaction
|
|
5
7
|
from .get_bonus_transactions import GetBonusTransactions
|
|
8
|
+
from .get_commissionreportin import GetCommissionReportIn
|
|
9
|
+
from .get_commissionreportins import GetCommissionReportIns
|
|
6
10
|
from .get_counterparty import GetCounterparty
|
|
7
11
|
from .get_current_stock import GetCurrentStock
|
|
8
12
|
from .get_demand import GetDemand
|
|
@@ -50,4 +54,8 @@ __all__ = (
|
|
|
50
54
|
"GetProfit",
|
|
51
55
|
"GetBonusTransactions",
|
|
52
56
|
"GetBonusTransaction",
|
|
57
|
+
"GetBonusProgram",
|
|
58
|
+
"GetBonusPrograms",
|
|
59
|
+
"GetCommissionReportIns",
|
|
60
|
+
"GetCommissionReportIn",
|
|
53
61
|
)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
|
|
5
|
+
from ..filters.condition import Condition
|
|
6
|
+
from ..methods import MSMethod
|
|
7
|
+
from ..types import BonusProgram
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class GetBonusProgram(MSMethod):
|
|
11
|
+
__return__ = BonusProgram
|
|
12
|
+
__api_method__ = "entity/bonusprogram"
|
|
13
|
+
|
|
14
|
+
id: str = Field(..., alias="bonusprogram_id")
|
|
15
|
+
limit: int | None = None
|
|
16
|
+
offset: int | None = None
|
|
17
|
+
expand: Sequence[str] | str | None = None
|
|
18
|
+
filters: Condition | Sequence[Condition] | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
|
|
3
|
+
from ..filters.condition import Condition
|
|
4
|
+
from ..methods import MSMethod
|
|
5
|
+
from ..types import BonusProgram, MetaArray
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class GetBonusPrograms(MSMethod):
|
|
9
|
+
__return__ = MetaArray[BonusProgram]
|
|
10
|
+
__api_method__ = "entity/bonusprogram"
|
|
11
|
+
|
|
12
|
+
limit: int | None = None
|
|
13
|
+
offset: int | None = None
|
|
14
|
+
expand: Sequence[str] | str | None = None
|
|
15
|
+
filters: Condition | Sequence[Condition] | None = None
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
from datetime import datetime
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
|
|
6
|
+
from ..filters.condition import Condition
|
|
7
|
+
from ..methods import MSMethod
|
|
8
|
+
from ..types.commissionreportin import CommissionReportIn
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class GetCommissionReportIn(MSMethod):
|
|
12
|
+
__return__ = CommissionReportIn
|
|
13
|
+
__api_method__ = "entity/commissionreportin"
|
|
14
|
+
|
|
15
|
+
id: str = Field(..., alias="commissionreportin_id")
|
|
16
|
+
limit: int | None = None
|
|
17
|
+
offset: int | None = None
|
|
18
|
+
search: str | None = None
|
|
19
|
+
expand: Sequence[str] | str | None = None
|
|
20
|
+
incoming_date: datetime | None = Field(None, alias="incomingDate")
|
|
21
|
+
filters: Condition | Sequence[Condition] | None = None
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from collections.abc import Sequence
|
|
2
|
+
from datetime import datetime
|
|
3
|
+
|
|
4
|
+
from pydantic import Field
|
|
5
|
+
|
|
6
|
+
from ..filters.condition import Condition
|
|
7
|
+
from ..methods import MSMethod
|
|
8
|
+
from ..types import MetaArray
|
|
9
|
+
from ..types.commissionreportin import CommissionReportIn
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class GetCommissionReportIns(MSMethod):
|
|
13
|
+
__return__ = MetaArray[CommissionReportIn]
|
|
14
|
+
__api_method__ = "entity/commissionreportin"
|
|
15
|
+
|
|
16
|
+
limit: int | None = None
|
|
17
|
+
offset: int | None = None
|
|
18
|
+
search: str | None = None
|
|
19
|
+
expand: Sequence[str] | str | None = None
|
|
20
|
+
incoming_date: datetime | None = Field(None, alias="incomingDate")
|
|
21
|
+
filters: Condition | Sequence[Condition] | None = None
|
|
@@ -17,7 +17,6 @@ class GetCurrentStock(MSMethod):
|
|
|
17
17
|
offset: int | None = None
|
|
18
18
|
expand: Sequence[str] | str | None = None
|
|
19
19
|
filters: Condition | Sequence[Condition] | None = None
|
|
20
|
-
|
|
21
20
|
include: str | None = None
|
|
22
21
|
changed_since: datetime | None = Field(None, alias="changedSince")
|
|
23
22
|
stock_type: StockType = Field(StockType.STOCK, alias="stockType")
|
moysklad_api/types/__init__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from .account import Account
|
|
2
2
|
from .actual_address_full import ActualAddressFull
|
|
3
3
|
from .agent import Agent
|
|
4
|
+
from .agent_account import AgentAccount
|
|
4
5
|
from .alcoholic import Alcoholic
|
|
5
6
|
from .assortment import Assortment
|
|
6
7
|
from .attribute import Attribute
|
|
@@ -9,6 +10,7 @@ from .barcode import Barcode
|
|
|
9
10
|
from .bonus_program import BonusProgram
|
|
10
11
|
from .bonus_transaction import BonusTransaction
|
|
11
12
|
from .buy_price import BuyPrice
|
|
13
|
+
from .commissionreportin import CommissionReportIn
|
|
12
14
|
from .contract import Contract
|
|
13
15
|
from .counterpatry import Counterparty
|
|
14
16
|
from .country import Country
|
|
@@ -46,6 +48,7 @@ from .purchaseorder_position import PurchaseOrderPosition
|
|
|
46
48
|
from .rate import Rate
|
|
47
49
|
from .region import Region
|
|
48
50
|
from .report import Report
|
|
51
|
+
from .return_to_commissioner_position import ReturnToCommissionerPosition
|
|
49
52
|
from .sale_price import SalePrice
|
|
50
53
|
from .sales_channel import SalesChannel
|
|
51
54
|
from .shipment_address_full import ShipmentAddressFull
|
|
@@ -120,4 +123,7 @@ __all__ = (
|
|
|
120
123
|
"BonusTransaction",
|
|
121
124
|
"BonusProgram",
|
|
122
125
|
"ParentDocument",
|
|
126
|
+
"AgentAccount",
|
|
127
|
+
"ReturnToCommissionerPosition",
|
|
128
|
+
"CommissionReportIn",
|
|
123
129
|
)
|
|
@@ -1,5 +1,24 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
|
|
3
|
+
from ..enums import BonusProgramWelcomeMode
|
|
1
4
|
from .entity import Entity
|
|
5
|
+
from .meta import Meta
|
|
2
6
|
|
|
3
7
|
|
|
4
8
|
class BonusProgram(Entity):
|
|
5
|
-
|
|
9
|
+
meta: Meta | None = Field(None, alias="meta")
|
|
10
|
+
id: str | None = Field(None, alias="id")
|
|
11
|
+
account_id: str | None = Field(None, alias="accountId")
|
|
12
|
+
name: str | None = Field(None, alias="name")
|
|
13
|
+
active: bool | None = Field(None, alias="active")
|
|
14
|
+
all_agents: bool | None = Field(None, alias="allAgents")
|
|
15
|
+
all_products: bool | None = Field(None, alias="allProducts")
|
|
16
|
+
agent_tags: list[str] | None = Field(None, alias="agentTags")
|
|
17
|
+
earn_rate_roubles_to_point: int | None = Field(None, alias="earnRateRoublesToPoint")
|
|
18
|
+
earn_while_redeeming: bool | None = Field(None, alias="earnWhileRedeeming")
|
|
19
|
+
spend_rate_points_to_rouble: int | None = Field(None, alias="spendRatePointsToRouble")
|
|
20
|
+
max_paid_rate_percents: int | None = Field(None, alias="maxPaidRatePercents")
|
|
21
|
+
postponed_bonuses_delay_days: int | None = Field(None, alias="postponedBonusesDelayDays")
|
|
22
|
+
welcome_bonuses_enabled: bool | None = Field(None, alias="welcomeBonusesEnabled")
|
|
23
|
+
welcome_bonuses_mode: BonusProgramWelcomeMode | None = Field(None, alias="welcomeBonusesMode")
|
|
24
|
+
welcome_bonuses_value: int | None = Field(None, alias="welcomeBonusesValue")
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
|
|
3
|
+
from .agent import Agent
|
|
4
|
+
from .agent_account import AgentAccount
|
|
5
|
+
from .attribute import Attribute
|
|
6
|
+
from .commissionreportin_position import CommissionReportInPosition
|
|
7
|
+
from .contract import Contract
|
|
8
|
+
from .entity import Entity
|
|
9
|
+
from .file import File
|
|
10
|
+
from .group import Group
|
|
11
|
+
from .meta import Meta
|
|
12
|
+
from .meta_array import MetaArray
|
|
13
|
+
from .organization import Organization
|
|
14
|
+
from .organization_account import OrganizationAccount
|
|
15
|
+
from .owner import Owner
|
|
16
|
+
from .project import Project
|
|
17
|
+
from .rate import Rate
|
|
18
|
+
from .return_to_commissioner_position import ReturnToCommissionerPosition
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class CommissionReportIn(Entity):
|
|
22
|
+
id: str | None = Field(None, alias="id")
|
|
23
|
+
account_id: str | None = Field(None, alias="accountId")
|
|
24
|
+
agent: Agent | None = Field(None, alias="agent")
|
|
25
|
+
agent_account: AgentAccount | None = Field(None, alias="agentAccount")
|
|
26
|
+
applicable: bool | None = Field(None, alias="applicable")
|
|
27
|
+
attributes: list[Attribute] | None = Field(None, alias="attributes")
|
|
28
|
+
code: str | None = Field(None, alias="code")
|
|
29
|
+
commission_overhead: dict | None = Field(None, alias="commissionOverhead")
|
|
30
|
+
commission_period_end: str | None = Field(None, alias="commissionPeriodEnd")
|
|
31
|
+
commission_period_start: str | None = Field(None, alias="commissionPeriodStart")
|
|
32
|
+
commitent_sum: float | None = Field(None, alias="commitentSum")
|
|
33
|
+
contract: Contract | None = Field(None, alias="contract")
|
|
34
|
+
created: str | None = Field(None, alias="created")
|
|
35
|
+
deleted: str | None = Field(None, alias="deleted")
|
|
36
|
+
description: str | None = Field(None, alias="description")
|
|
37
|
+
external_code: str | None = Field(None, alias="externalCode")
|
|
38
|
+
files: MetaArray[File] | None = Field(None, alias="files")
|
|
39
|
+
group: Group | None = Field(None, alias="group")
|
|
40
|
+
meta: Meta | None = Field(None, alias="meta")
|
|
41
|
+
moment: str | None = Field(None, alias="moment")
|
|
42
|
+
name: str | None = Field(None, alias="name")
|
|
43
|
+
organization: Organization | None = Field(None, alias="organization")
|
|
44
|
+
organization_account: OrganizationAccount | None = Field(None, alias="organizationAccount")
|
|
45
|
+
owner: Owner | None = Field(None, alias="owner")
|
|
46
|
+
payed_sum: float | None = Field(None, alias="payedSum")
|
|
47
|
+
positions: CommissionReportInPosition | None = Field(None, alias="positions")
|
|
48
|
+
return_to_commissioner_positions: ReturnToCommissionerPosition | None = Field(
|
|
49
|
+
None, alias="returnToCommissionerPositions"
|
|
50
|
+
)
|
|
51
|
+
printed: bool | None = Field(None, alias="printed")
|
|
52
|
+
published: bool | None = Field(None, alias="published")
|
|
53
|
+
shared: bool | None = Field(None, alias="shared")
|
|
54
|
+
project: Project | None = Field(None, alias="project")
|
|
55
|
+
sales_channel: Meta | None = Field(None, alias="salesChannel")
|
|
56
|
+
state: Meta | None = Field(None, alias="state")
|
|
57
|
+
rate: Rate | None = Field(None, alias="rate")
|
|
58
|
+
reward_percent: int | None = Field(None, alias="rewardPercent")
|
|
59
|
+
reward_type: str | None = Field(None, alias="rewardType")
|
|
60
|
+
sum: float | None = Field(None, alias="sum")
|
|
61
|
+
sync_id: str | None = Field(None, alias="syncId")
|
|
62
|
+
updated: str | None = Field(None, alias="updated")
|
|
63
|
+
vat_enabled: bool | None = Field(None, alias="vatEnabled")
|
|
64
|
+
vat_included: bool | None = Field(None, alias="vatIncluded")
|
|
65
|
+
vat_sum: float | None = Field(None, alias="vatSum")
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
|
|
3
|
+
from .assortment import Assortment
|
|
4
|
+
from .entity import Entity
|
|
5
|
+
from .pack import Pack
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CommissionReportInPosition(Entity):
|
|
9
|
+
id: str | None = Field(None, alias="id")
|
|
10
|
+
account_id: str | None = Field(None, alias="accountId")
|
|
11
|
+
assortment: Assortment | None = Field(None, alias="assortment")
|
|
12
|
+
pack: Pack | None = Field(None, alias="pack")
|
|
13
|
+
price: float | None = Field(None, alias="price")
|
|
14
|
+
quantity: float | None = Field(None, alias="quantity")
|
|
15
|
+
reward: float | None = Field(None, alias="reward")
|
|
16
|
+
vat: int | None = Field(None, alias="vat")
|
|
17
|
+
vat_enabled: bool | None = Field(None, alias="vatEnabled")
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
|
|
3
|
+
from .assortment import Assortment
|
|
4
|
+
from .entity import Entity
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ReturnToCommissionerPosition(Entity):
|
|
8
|
+
id: str | None = Field(None, alias="id")
|
|
9
|
+
account_id: str | None = Field(None, alias="accountId")
|
|
10
|
+
assortment: Assortment | None = Field(None, alias="assortment")
|
|
11
|
+
price: float | None = Field(None, alias="price")
|
|
12
|
+
quantity: float | None = Field(None, alias="quantity")
|
|
13
|
+
reward: float | None = Field(None, alias="reward")
|
|
14
|
+
vat: int | None = Field(None, alias="vat")
|
|
15
|
+
vat_enabled: bool | None = Field(None, alias="vatEnabled")
|
|
@@ -2,11 +2,12 @@ moysklad_api/__init__.py,sha256=WJ_x3RdDuQuNTzR7QkC0QSLwyDDTmyka3LfU_7txnWA,123
|
|
|
2
2
|
moysklad_api/exceptions.py,sha256=C_A1tWb6c73LsPrmoJFPeJbsFGgy7RN3UXcgE1IPwg8,1159
|
|
3
3
|
moysklad_api/loggers.py,sha256=tkam02P7hGj_jUFTBWsMdTK7P_EQtHPyTv4i6HTWmM0,109
|
|
4
4
|
moysklad_api/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
moysklad_api/client/api.py,sha256=
|
|
5
|
+
moysklad_api/client/api.py,sha256=pow9lKeM0-tiDR6cMy1OedUKCEgp3PrVHEunlWhiRf0,36451
|
|
6
6
|
moysklad_api/client/base.py,sha256=B-gjgYuSaSba0Z6hRGeHGvarIOyEIGirCnCJEGgt8Wo,170
|
|
7
7
|
moysklad_api/client/session/__init__.py,sha256=VI3hUp1qvLzwpEsSX9-xG0XvfsaBQey3MrX4sT09xno,96
|
|
8
8
|
moysklad_api/client/session/base.py,sha256=uAMRmnDvICcmL-AnZMxAAnsP1-32RKjc5Fxt9MOkoYI,5182
|
|
9
|
-
moysklad_api/enums/__init__.py,sha256=
|
|
9
|
+
moysklad_api/enums/__init__.py,sha256=RLxiBwd7SlHmCDFQYthuNWUP_FFu8atE-ILJlcOoWdk,537
|
|
10
|
+
moysklad_api/enums/bonus_program_welcome_mode.py,sha256=_8RcORHQC3p-lDIEj_-9by_VZ4WOJ5S5XruzWAbCUys,138
|
|
10
11
|
moysklad_api/enums/bonus_transaction_category_type.py,sha256=j-yv_8oTetcAnZuEqvlVQFQIFQKjCcJDbwG47GcNqTc,119
|
|
11
12
|
moysklad_api/enums/bonus_transaction_status.py,sha256=UqjvfCZ4b4qFeK-7OYE_zKdmfe1_5IVHQDO5x5m-UD0,159
|
|
12
13
|
moysklad_api/enums/bonus_transaction_type.py,sha256=M_sc1yQEzcSe_TrCid3dG5HfvMI7_a5SgEXmojwYh4g,113
|
|
@@ -22,17 +23,21 @@ moysklad_api/enums/stock_type.py,sha256=QRq5a_8PyQTxqtwfQtyFvCRAHqRextpajkk_qboa
|
|
|
22
23
|
moysklad_api/filters/__init__.py,sha256=otSu7vx-e0MVs2Zx_vOBredlLXbRsmKBPFDOuzv6nso,127
|
|
23
24
|
moysklad_api/filters/condition.py,sha256=ubNm8qe5byA8bkuQVpMszbkgYTQgM-FB5r17zNKROxc,363
|
|
24
25
|
moysklad_api/filters/filter.py,sha256=5G9PUhAr-CPDOkaMr6COKrn5-08jLemiu9cg-HhBGuk,105
|
|
25
|
-
moysklad_api/filters/prop.py,sha256=
|
|
26
|
+
moysklad_api/filters/prop.py,sha256=La0IyHcCuXj47UOmlxdOgUkkBKm4jbvaU8JzjdD3dbM,874
|
|
26
27
|
moysklad_api/filters/resolver.py,sha256=lCd4HQOGj3hUe52vCpN3BqSaZsqDBELDawrD-FVo4L0,492
|
|
27
|
-
moysklad_api/methods/__init__.py,sha256=
|
|
28
|
+
moysklad_api/methods/__init__.py,sha256=oWyRdgcHbQVTMYLs7tWu0IAgvW50IOEDvv3OmJYhy6o,1797
|
|
28
29
|
moysklad_api/methods/base.py,sha256=UX4zQAGhoKPcyusZo7nGEgrXh2dkyqls73m6YaLydLE,7384
|
|
29
30
|
moysklad_api/methods/get_assortment.py,sha256=SX9_TqwubTFC8Ce9z8h2DcxQXQURziIrBKtzd4GqqNg,579
|
|
30
31
|
moysklad_api/methods/get_audit.py,sha256=rrmJQGF6dwksdC9O48vaZWkMqNVpls2KCRQn4URO6us,453
|
|
32
|
+
moysklad_api/methods/get_bonus_program.py,sha256=9agJ-yaxwDDj_HGo3kp63ZvYM_CRDlST5ywZ7L-ih_M,495
|
|
33
|
+
moysklad_api/methods/get_bonus_programs.py,sha256=zdpZDkrpLhCsveDav9S4wP6wlJ28eT0CjJaI0SLJt7E,440
|
|
31
34
|
moysklad_api/methods/get_bonus_transaction.py,sha256=0qAfFl-aI8CWj8-LkO5rlREUnjPzXmImMtO-KDaLtuY,515
|
|
32
35
|
moysklad_api/methods/get_bonus_transactions.py,sha256=JgsnHA99U8XL9_bXzahClXZdiW-ZW_8jqkXz39vUgNY,456
|
|
36
|
+
moysklad_api/methods/get_commissionreportin.py,sha256=EA30y9ToOsEyEW1IbkiPe0XWWB22lHP3CRVeCxxJ_BU,675
|
|
37
|
+
moysklad_api/methods/get_commissionreportins.py,sha256=NaO2pG4kUeAULPq6WRCIHkyLMc2jb197WN_IMAmJDOU,661
|
|
33
38
|
moysklad_api/methods/get_counterparties.py,sha256=9JmzJcDYXBjooLxFAKskIenXnshyuBwGSj1JMPHuQjo,441
|
|
34
39
|
moysklad_api/methods/get_counterparty.py,sha256=McCViqdn9rvXtaiZIt3fMT2T3wG84Ou0bdn4VYgmj1Y,496
|
|
35
|
-
moysklad_api/methods/get_current_stock.py,sha256=
|
|
40
|
+
moysklad_api/methods/get_current_stock.py,sha256=lXIjyQFDhqfGGWk8wh-_M85ZgDGUuc1wsv1CbVVnUhM,688
|
|
36
41
|
moysklad_api/methods/get_demand.py,sha256=6JYAvgN-umlEjOjaZZEXHRdMRNfRQzMLjqAN9IL8sF0,466
|
|
37
42
|
moysklad_api/methods/get_demands.py,sha256=zXEU7rBJZlWYksEy2PgFtql13esijTjKlxfAKgWcc0w,416
|
|
38
43
|
moysklad_api/methods/get_events.py,sha256=8lL_KS_aJsC8I39CTXBRMuTJAHwtAOwSQv6mLM_jPaU,489
|
|
@@ -51,19 +56,22 @@ moysklad_api/methods/update_product.py,sha256=Crp3_ABl_9ueR0Uu6578M8vSN_iX_uQuCA
|
|
|
51
56
|
moysklad_api/methods/update_products.py,sha256=pFL6jLKG6N3Q4_fwaKjqS0AxPxmXwIBnyIZLbraQQkE,201
|
|
52
57
|
moysklad_api/methods/update_variant.py,sha256=HWfqqaGf-ICJWqCFlb9EBoI_MWabEMHJk2WeLxtnTUE,256
|
|
53
58
|
moysklad_api/methods/update_variants.py,sha256=aTm1BhOBwC1a8oHTZMFOzQUmta9jDMXHs1rXrE1pV5I,201
|
|
54
|
-
moysklad_api/types/__init__.py,sha256=
|
|
59
|
+
moysklad_api/types/__init__.py,sha256=pzp3rpmP15o71C9_625JNcHAz3DcOhSjwLJ7LmaFlT4,3122
|
|
55
60
|
moysklad_api/types/account.py,sha256=l8yWEKJkM_q91QAqZqylQVEpghhjj6xOhZ3hNF16eMU,779
|
|
56
61
|
moysklad_api/types/actual_address_full.py,sha256=1RLn2q5S0tOTvEXJY7WL2nzsoomBgHtn1efd9Et8as0,698
|
|
57
62
|
moysklad_api/types/agent.py,sha256=lEY4xLgWnsAR8F4HFtuK_ivlSu5yB77QcQNmBOPlxs0,77
|
|
63
|
+
moysklad_api/types/agent_account.py,sha256=-JGuI43H1MtUafQWuxF7Sr1DQAyyblLyYBLnWCOYFGU,66
|
|
58
64
|
moysklad_api/types/alcoholic.py,sha256=mZwwmzWyszO51peEjBvkgDQuRVr7iXKJ5A0QxLRDps8,128
|
|
59
65
|
moysklad_api/types/assortment.py,sha256=uKL6V6ap8m1Cv4fMQEYqoS_xRJtAB6n8l1QqQyDa7xo,2506
|
|
60
66
|
moysklad_api/types/attribute.py,sha256=DLNcmK5lUlC44BIHmvxqn9aALlr_5IYjKWltKk99bkg,300
|
|
61
67
|
moysklad_api/types/audit.py,sha256=dZ9bqGdv1KwPO5mPabx27k3_7bVGDWVbo-rDThjjMSc,881
|
|
62
68
|
moysklad_api/types/barcode.py,sha256=ayTQTJ66Z3MJSr3vx-BEkf0KKp-VXCb8Kh4GpnlGwms,202
|
|
63
|
-
moysklad_api/types/bonus_program.py,sha256=
|
|
69
|
+
moysklad_api/types/bonus_program.py,sha256=83K1efp-sbbnD1FPFRqsFPOTvQtydPM7aGqdRW7Bqow,1304
|
|
64
70
|
moysklad_api/types/bonus_transaction.py,sha256=8GwbrudkgMz6xrqaM3tqSMWHdF3C1DlSlbgCo8zj-k0,1965
|
|
65
71
|
moysklad_api/types/bouns_program.py,sha256=ymICUaK-qdszmeFYIB3a48mp-bVGr5A6nfLpKMgeG9Y,66
|
|
66
72
|
moysklad_api/types/buy_price.py,sha256=rtXxbEvQ_wA0Wi2bxT-tD_AX9GINtGGyAVm9itxptYg,146
|
|
73
|
+
moysklad_api/types/commissionreportin.py,sha256=co1gICCBwlA6kMa5PPuotT3BQYcgKlus-XyqmzVkbrs,3312
|
|
74
|
+
moysklad_api/types/commissionreportin_position.py,sha256=KdFm7SvqQ_7btqTeH8OqITKGUF1hFIMlfWIoWcu5-08,657
|
|
67
75
|
moysklad_api/types/contact_person.py,sha256=CuGwEQYWZtBCbbVjkLK0l85dipwiSopSNUCxiMxtEf0,694
|
|
68
76
|
moysklad_api/types/contract.py,sha256=d1gnYm4IwUhv8WSAcfptHEuqSQkP9VlzN2Emu2CsVqQ,62
|
|
69
77
|
moysklad_api/types/counterpatry.py,sha256=vp4MaGKzsXm7nxNJITftBQqMHIUfbG0mDb7xiQSZBaM,2426
|
|
@@ -102,6 +110,7 @@ moysklad_api/types/purchaseorder_position.py,sha256=Li16Ft7ooHhFj8oeQnfzoTBHkdos
|
|
|
102
110
|
moysklad_api/types/rate.py,sha256=NBjVBtjJ-QxNHUA_VTWTDgI1m2ZQg5Gi0ePZnDbRapE,142
|
|
103
111
|
moysklad_api/types/region.py,sha256=eRlRibbqqPdnJkt2NQZTkBk9gVeF2y-eMeWbV2wmTNw,60
|
|
104
112
|
moysklad_api/types/report.py,sha256=IbruV9M7-huSm--Qhct2FyhIqrB4Tj9NAyEjGX83PXk,67
|
|
113
|
+
moysklad_api/types/return_to_commissioner_position.py,sha256=hsxKfrwmvb_d2yM5MFtKRHV3wvudPNxzBPvIwFXFdMc,586
|
|
105
114
|
moysklad_api/types/sale_price.py,sha256=LynMHzaN5aXdLsWjATJcA0_TEiP4oybDK_CBAKJUfQA,344
|
|
106
115
|
moysklad_api/types/sales_channel.py,sha256=_b7lKIh0_NekRO_ZlbJXWcXEz2ouJ-EonHoR-c_nXIA,66
|
|
107
116
|
moysklad_api/types/shipment_address_full.py,sha256=4rV1QHO0OztH9gn40yLU_pqqsHfUttt9-7SZo4lLL0o,80
|
|
@@ -115,7 +124,7 @@ moysklad_api/types/variant.py,sha256=UHuDvuC3dspBynKdp34cMfITZ0w8HMa_uy92YedMzHA
|
|
|
115
124
|
moysklad_api/types/webhook.py,sha256=Nye_zCfr-Z3VF6tPPFKZixyLnr3o8lPR76q5j-iQt0Q,725
|
|
116
125
|
moysklad_api/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
117
126
|
moysklad_api/utils/token.py,sha256=bJxNin7N53SYLJAQnVpGD_T-CPZpN_FtiOzoHSuEBUo,538
|
|
118
|
-
moysklad_api-0.5.
|
|
119
|
-
moysklad_api-0.5.
|
|
120
|
-
moysklad_api-0.5.
|
|
121
|
-
moysklad_api-0.5.
|
|
127
|
+
moysklad_api-0.5.14a1.dist-info/METADATA,sha256=pXHX31MdrRUp4W542vGizvrvzIjO1ZNc2KZWtkjKE3g,3305
|
|
128
|
+
moysklad_api-0.5.14a1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
129
|
+
moysklad_api-0.5.14a1.dist-info/licenses/LICENSE,sha256=Q2LB1mrsO5b_3gX6D6I6_P8hfrJk1tdbGH2JnwVtg_8,1077
|
|
130
|
+
moysklad_api-0.5.14a1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|