SymfWebAPI 1.26.10.1__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.
- SymfWebAPI/WebAPI/Interface/BankAccounts/Interfaces/IBankAccountsController/__init__.py +83 -0
- SymfWebAPI/WebAPI/Interface/BankAccounts/Interfaces/IBankAccountsController/_common.py +37 -0
- SymfWebAPI/WebAPI/Interface/BankAccounts/Interfaces/IBankAccountsController/_ops.py +33 -0
- SymfWebAPI/WebAPI/Interface/BankAccounts/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/BankAccounts/ViewModels/__init__.py +16 -0
- SymfWebAPI/WebAPI/Interface/BankAccounts/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/ICurrencyRatesController/__init__.py +56 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/ICurrencyRatesController/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/ICurrencyRatesController/_ops.py +26 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IDocumentSeriesController/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IDocumentSeriesController/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IDocumentSeriesController/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IDocumentTypesController/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IDocumentTypesController/_common.py +17 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IDocumentTypesController/_ops.py +19 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IKsefController/__init__.py +40 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IKsefController/_common.py +20 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IKsefController/_ops.py +14 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IPaymentFormsController/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IPaymentFormsController/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/IPaymentFormsController/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/Common/Interfaces/__init__.py +25 -0
- SymfWebAPI/WebAPI/Interface/Common/ViewModels/Aspects/__init__.py +45 -0
- SymfWebAPI/WebAPI/Interface/Common/ViewModels/__init__.py +118 -0
- SymfWebAPI/WebAPI/Interface/Common/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorCardIndexController/__init__.py +54 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorCardIndexController/_common.py +24 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorCardIndexController/_ops.py +17 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDeliveryAddressesController/__init__.py +55 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDeliveryAddressesController/_common.py +24 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDeliveryAddressesController/_ops.py +23 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDimensions2Controller/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDimensions2Controller/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDimensions2Controller/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDimensionsController/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDimensionsController/_common.py +19 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorDimensionsController/_ops.py +17 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorsController/__init__.py +230 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorsController/_common.py +109 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/IContractorsController/_ops.py +100 -0
- SymfWebAPI/WebAPI/Interface/Contractors/Interfaces/__init__.py +25 -0
- SymfWebAPI/WebAPI/Interface/Contractors/ViewModels/__init__.py +64 -0
- SymfWebAPI/WebAPI/Interface/Contractors/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Dictionaries/Interfaces/IFKDictionariesController/__init__.py +129 -0
- SymfWebAPI/WebAPI/Interface/Dictionaries/Interfaces/IFKDictionariesController/_common.py +59 -0
- SymfWebAPI/WebAPI/Interface/Dictionaries/Interfaces/IFKDictionariesController/_ops.py +48 -0
- SymfWebAPI/WebAPI/Interface/Dictionaries/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/Dictionaries/ViewModels/__init__.py +49 -0
- SymfWebAPI/WebAPI/Interface/Dictionaries/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Enums/FKConfigurator/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/Enums/__init__.py +459 -0
- SymfWebAPI/WebAPI/Interface/FKF/AccountsChart/Interfaces/IFKAccountsChartController/__init__.py +42 -0
- SymfWebAPI/WebAPI/Interface/FKF/AccountsChart/Interfaces/IFKAccountsChartController/_common.py +17 -0
- SymfWebAPI/WebAPI/Interface/FKF/AccountsChart/Interfaces/IFKAccountsChartController/_ops.py +20 -0
- SymfWebAPI/WebAPI/Interface/FKF/AccountsChart/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/FKF/AccountsChart/ViewModels/__init__.py +30 -0
- SymfWebAPI/WebAPI/Interface/FKF/AccountsChart/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/IFKCalculationsBusinessController/__init__.py +28 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/IFKCalculationsBusinessController/_common.py +9 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/IFKCalculationsBusinessController/_ops.py +14 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/IFKCalculationsController/__init__.py +478 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/IFKCalculationsController/_common.py +353 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/IFKCalculationsController/_ops.py +208 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/Interfaces/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/ViewModels/__init__.py +149 -0
- SymfWebAPI/WebAPI/Interface/FKF/Calculations/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/IFKCurrenciesTablesController/__init__.py +56 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/IFKCurrenciesTablesController/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/IFKCurrenciesTablesController/_ops.py +26 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/IFKYearsController/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/IFKYearsController/_common.py +9 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/IFKYearsController/_ops.py +12 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/Interfaces/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/ViewModels/CriteriaFilter/__init__.py +14 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/ViewModels/__init__.py +50 -0
- SymfWebAPI/WebAPI/Interface/FKF/Common/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorDimensions2Controller/__init__.py +55 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorDimensions2Controller/_common.py +24 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorDimensions2Controller/_ops.py +25 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorDimensionsController/__init__.py +97 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorDimensionsController/_common.py +47 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorDimensionsController/_ops.py +37 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorsController/__init__.py +158 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorsController/_common.py +73 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/IFKContractorsController/_ops.py +70 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/Interfaces/__init__.py +23 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/ViewModels/V2026_1/__init__.py +35 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/ViewModels/__init__.py +79 -0
- SymfWebAPI/WebAPI/Interface/FKF/Contractors/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Dimensions/Interfaces/IFKDimensionsController/__init__.py +42 -0
- SymfWebAPI/WebAPI/Interface/FKF/Dimensions/Interfaces/IFKDimensionsController/_common.py +19 -0
- SymfWebAPI/WebAPI/Interface/FKF/Dimensions/Interfaces/IFKDimensionsController/_ops.py +20 -0
- SymfWebAPI/WebAPI/Interface/FKF/Dimensions/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/FKF/Dimensions/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentAttachmentsController/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentAttachmentsController/_common.py +19 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentAttachmentsController/_ops.py +14 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentLinksController/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentLinksController/_common.py +19 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentLinksController/_ops.py +14 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsBusinessIssueController/__init__.py +70 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsBusinessIssueController/_common.py +27 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsBusinessIssueController/_ops.py +31 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsController/__init__.py +161 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsController/_common.py +91 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsController/_ops.py +75 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsIssueController/__init__.py +43 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsIssueController/_common.py +15 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/IFKDocumentsIssueController/_ops.py +21 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/Interfaces/__init__.py +25 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/Issue/Business/__init__.py +75 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/Issue/Custom/__init__.py +151 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/Issue/__init__.py +12 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/Rdf/__init__.py +13 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/Transactions/__init__.py +33 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/V2026_1/__init__.py +73 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/ViewModels/__init__.py +227 -0
- SymfWebAPI/WebAPI/Interface/FKF/Documents/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/Employees/Interfaces/IFKEmployeesController/__init__.py +99 -0
- SymfWebAPI/WebAPI/Interface/FKF/Employees/Interfaces/IFKEmployeesController/_common.py +45 -0
- SymfWebAPI/WebAPI/Interface/FKF/Employees/Interfaces/IFKEmployeesController/_ops.py +42 -0
- SymfWebAPI/WebAPI/Interface/FKF/Employees/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/FKF/Employees/ViewModels/__init__.py +30 -0
- SymfWebAPI/WebAPI/Interface/FKF/Employees/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/FKF/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/IDevelogicPurchasesController/__init__.py +28 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/IDevelogicPurchasesController/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/IDevelogicPurchasesController/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/IDevelogicSalesController/__init__.py +58 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/IDevelogicSalesController/_common.py +27 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/IDevelogicSalesController/_ops.py +27 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/Interfaces/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/ViewModels/V2026_1/__init__.py +62 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/ViewModels/__init__.py +69 -0
- SymfWebAPI/WebAPI/Interface/HMF/Develogic/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/HMF/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/Interfaces/ISessionController/__init__.py +34 -0
- SymfWebAPI/WebAPI/Interface/Interfaces/ISessionController/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/Interfaces/ISessionController/_ops.py +9 -0
- SymfWebAPI/WebAPI/Interface/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/InventoryStates/Interfaces/IInventoryStatesController/__init__.py +98 -0
- SymfWebAPI/WebAPI/Interface/InventoryStates/Interfaces/IInventoryStatesController/_common.py +46 -0
- SymfWebAPI/WebAPI/Interface/InventoryStates/Interfaces/IInventoryStatesController/_ops.py +44 -0
- SymfWebAPI/WebAPI/Interface/InventoryStates/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/InventoryStates/ViewModels/__init__.py +11 -0
- SymfWebAPI/WebAPI/Interface/InventoryStates/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssContractorsController/__init__.py +55 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssContractorsController/_common.py +24 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssContractorsController/_ops.py +22 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssOrderController/__init__.py +58 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssOrderController/_common.py +25 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssOrderController/_ops.py +28 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssProductController/__init__.py +55 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssProductController/_common.py +24 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssProductController/_ops.py +24 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssProductMapsController/__init__.py +84 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssProductMapsController/_common.py +37 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssProductMapsController/_ops.py +36 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssReportsController/__init__.py +55 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssReportsController/_common.py +24 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssReportsController/_ops.py +24 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssSaleController/__init__.py +58 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssSaleController/_common.py +27 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/IOssSaleController/_ops.py +28 -0
- SymfWebAPI/WebAPI/Interface/OSS/Interfaces/__init__.py +26 -0
- SymfWebAPI/WebAPI/Interface/OSS/ViewModels/Common/__init__.py +35 -0
- SymfWebAPI/WebAPI/Interface/OSS/ViewModels/Orders/__init__.py +64 -0
- SymfWebAPI/WebAPI/Interface/OSS/ViewModels/Sales/V2026_1/__init__.py +43 -0
- SymfWebAPI/WebAPI/Interface/OSS/ViewModels/Sales/__init__.py +85 -0
- SymfWebAPI/WebAPI/Interface/OSS/ViewModels/__init__.py +38 -0
- SymfWebAPI/WebAPI/Interface/OSS/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrderDimensions2Controller/__init__.py +70 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrderDimensions2Controller/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrderDimensions2Controller/_ops.py +32 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrderDimensionsController/__init__.py +128 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrderDimensionsController/_common.py +63 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrderDimensionsController/_ops.py +52 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrdersController/__init__.py +236 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrdersController/_common.py +130 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrdersController/_ops.py +110 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrdersIssueController/__init__.py +115 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrdersIssueController/_common.py +55 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/IOrdersIssueController/_ops.py +49 -0
- SymfWebAPI/WebAPI/Interface/Orders/Interfaces/__init__.py +24 -0
- SymfWebAPI/WebAPI/Interface/Orders/ViewModels/__init__.py +302 -0
- SymfWebAPI/WebAPI/Interface/Orders/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrderDimensions2Controller/__init__.py +70 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrderDimensions2Controller/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrderDimensions2Controller/_ops.py +32 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrderDimensionsController/__init__.py +128 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrderDimensionsController/_common.py +63 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrderDimensionsController/_ops.py +52 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrdersController/__init__.py +207 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrdersController/_common.py +115 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrdersController/_ops.py +97 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrdersIssueController/__init__.py +99 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrdersIssueController/_common.py +47 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/IOwnOrdersIssueController/_ops.py +39 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/Interfaces/__init__.py +24 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/ViewModels/__init__.py +205 -0
- SymfWebAPI/WebAPI/Interface/OwnOrders/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/IPaymentsController/__init__.py +189 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/IPaymentsController/_common.py +104 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/IPaymentsController/_ops.py +85 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/ISettlementsController/__init__.py +114 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/ISettlementsController/_common.py +69 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/ISettlementsController/_ops.py +48 -0
- SymfWebAPI/WebAPI/Interface/Payments/Interfaces/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Payments/ViewModels/Issue/__init__.py +38 -0
- SymfWebAPI/WebAPI/Interface/Payments/ViewModels/IssueKP/__init__.py +30 -0
- SymfWebAPI/WebAPI/Interface/Payments/ViewModels/__init__.py +124 -0
- SymfWebAPI/WebAPI/Interface/Payments/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IPriceListsController/__init__.py +42 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IPriceListsController/_common.py +16 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IPriceListsController/_ops.py +20 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductDimensions2Controller/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductDimensions2Controller/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductDimensions2Controller/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductDimensionsController/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductDimensionsController/_common.py +19 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductDimensionsController/_ops.py +17 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductPhotosController/__init__.py +28 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductPhotosController/_common.py +11 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductPhotosController/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductPricesController/__init__.py +178 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductPricesController/_common.py +77 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductPricesController/_ops.py +80 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductsController/__init__.py +247 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductsController/_common.py +113 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/IProductsController/_ops.py +109 -0
- SymfWebAPI/WebAPI/Interface/Products/Interfaces/__init__.py +26 -0
- SymfWebAPI/WebAPI/Interface/Products/ViewModels/PriceCalculations/__init__.py +91 -0
- SymfWebAPI/WebAPI/Interface/Products/ViewModels/PriceLists/__init__.py +60 -0
- SymfWebAPI/WebAPI/Interface/Products/ViewModels/Prices/__init__.py +128 -0
- SymfWebAPI/WebAPI/Interface/Products/ViewModels/__init__.py +217 -0
- SymfWebAPI/WebAPI/Interface/Products/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesController/__init__.py +221 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesController/_common.py +124 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesController/_ops.py +103 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesDimensions2Controller/__init__.py +70 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesDimensions2Controller/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesDimensions2Controller/_ops.py +32 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesDimensionsController/__init__.py +128 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesDimensionsController/_common.py +63 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesDimensionsController/_ops.py +52 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesIssueController/__init__.py +86 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesIssueController/_common.py +40 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/IPurchasesIssueController/_ops.py +38 -0
- SymfWebAPI/WebAPI/Interface/Purchases/Interfaces/__init__.py +24 -0
- SymfWebAPI/WebAPI/Interface/Purchases/ViewModels/V2026_1/__init__.py +171 -0
- SymfWebAPI/WebAPI/Interface/Purchases/ViewModels/__init__.py +245 -0
- SymfWebAPI/WebAPI/Interface/Purchases/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/RepX/Interfaces/IReportsController/__init__.py +28 -0
- SymfWebAPI/WebAPI/Interface/RepX/Interfaces/IReportsController/_common.py +11 -0
- SymfWebAPI/WebAPI/Interface/RepX/Interfaces/IReportsController/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/RepX/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/RepX/ViewModels/__init__.py +14 -0
- SymfWebAPI/WebAPI/Interface/RepX/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Reservations/Interfaces/IReservationsController/__init__.py +114 -0
- SymfWebAPI/WebAPI/Interface/Reservations/Interfaces/IReservationsController/_common.py +50 -0
- SymfWebAPI/WebAPI/Interface/Reservations/Interfaces/IReservationsController/_ops.py +48 -0
- SymfWebAPI/WebAPI/Interface/Reservations/Interfaces/__init__.py +21 -0
- SymfWebAPI/WebAPI/Interface/Reservations/ViewModels/__init__.py +110 -0
- SymfWebAPI/WebAPI/Interface/Reservations/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/IFiscalPrinterController/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/IFiscalPrinterController/_common.py +10 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/IFiscalPrinterController/_ops.py +12 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesController/__init__.py +237 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesController/_common.py +130 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesController/_ops.py +111 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesDimensions2Controller/__init__.py +70 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesDimensions2Controller/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesDimensions2Controller/_ops.py +32 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesDimensionsController/__init__.py +128 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesDimensionsController/_common.py +63 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesDimensionsController/_ops.py +52 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesIssueController/__init__.py +129 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesIssueController/_common.py +63 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/ISalesIssueController/_ops.py +53 -0
- SymfWebAPI/WebAPI/Interface/Sales/Interfaces/__init__.py +25 -0
- SymfWebAPI/WebAPI/Interface/Sales/ViewModels/CorrectionIssue/V2026_1/__init__.py +42 -0
- SymfWebAPI/WebAPI/Interface/Sales/ViewModels/CorrectionIssue/__init__.py +23 -0
- SymfWebAPI/WebAPI/Interface/Sales/ViewModels/DocumentIssue/__init__.py +11 -0
- SymfWebAPI/WebAPI/Interface/Sales/ViewModels/__init__.py +325 -0
- SymfWebAPI/WebAPI/Interface/Sales/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/ViewModels/__init__.py +16 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IDeliveriesController/__init__.py +27 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IDeliveriesController/_common.py +11 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IDeliveriesController/_ops.py +13 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IDeliveryDimensionsController/__init__.py +41 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IDeliveryDimensionsController/_common.py +19 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IDeliveryDimensionsController/_ops.py +17 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentDimensions2Controller/__init__.py +70 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentDimensions2Controller/_common.py +33 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentDimensions2Controller/_ops.py +32 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentDimensionsController/__init__.py +128 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentDimensionsController/_common.py +63 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentDimensionsController/_ops.py +52 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentsController/__init__.py +177 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentsController/_common.py +100 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentsController/_ops.py +83 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentsIssueController/__init__.py +85 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentsIssueController/_common.py +38 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/IWarehouseDocumentsIssueController/_ops.py +34 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/Interfaces/__init__.py +26 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/ViewModels/__init__.py +265 -0
- SymfWebAPI/WebAPI/Interface/Warehouse/__init__.py +22 -0
- SymfWebAPI/WebAPI/Interface/__init__.py +40 -0
- SymfWebAPI/WebAPI/__init__.py +21 -0
- SymfWebAPI/__init__.py +63 -0
- SymfWebAPI/client.py +129 -0
- SymfWebAPI/config.py +60 -0
- SymfWebAPI/enums.py +36 -0
- SymfWebAPI/errors.py +47 -0
- SymfWebAPI/executors.py +92 -0
- SymfWebAPI/operations.py +116 -0
- SymfWebAPI/protocols.py +85 -0
- SymfWebAPI/request_engine.py +43 -0
- SymfWebAPI/response.py +21 -0
- SymfWebAPI/runtime.py +85 -0
- SymfWebAPI/session.py +349 -0
- SymfWebAPI/transport/__init__.py +9 -0
- SymfWebAPI/transport/httpx_async.py +77 -0
- SymfWebAPI/transport/httpx_sync.py +78 -0
- symfwebapi-1.26.10.1.dist-info/METADATA +78 -0
- symfwebapi-1.26.10.1.dist-info/RECORD +329 -0
- symfwebapi-1.26.10.1.dist-info/WHEEL +5 -0
- symfwebapi-1.26.10.1.dist-info/licenses/LICENSE +29 -0
- symfwebapi-1.26.10.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
_REQUEST_Get = ('GET', '/api/v2/ProductDimensions')
|
|
6
|
+
def _prepare_Get(*, productCode) -> tuple[dict[str, Any] | None, Any]:
|
|
7
|
+
params: dict[str, Any] = {}
|
|
8
|
+
params["productCode"] = productCode
|
|
9
|
+
data = None
|
|
10
|
+
return params or None, data
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from pydantic import TypeAdapter
|
|
5
|
+
from SymfWebAPI.operations import OperationSpec, parse_none, parse_with_adapter
|
|
6
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.FKF.Common.ViewModels import Dimension
|
|
8
|
+
|
|
9
|
+
_ADAPTER_Get = TypeAdapter(List[Dimension])
|
|
10
|
+
|
|
11
|
+
def _parse_Get(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[Dimension]]:
|
|
12
|
+
return parse_with_adapter(envelope, _ADAPTER_Get)
|
|
13
|
+
OP_Get = OperationSpec(method='GET', path='/api/v2/ProductDimensions', parser=_parse_Get)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Awaitable, List, overload
|
|
4
|
+
from SymfWebAPI.operations import invoke_operation
|
|
5
|
+
from SymfWebAPI.protocols import (AsyncInvokerProtocol, AsyncRequestProtocol, SyncInvokerProtocol, SyncRequestProtocol)
|
|
6
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.FKF.Common.ViewModels import Dimension
|
|
8
|
+
from ._common import (
|
|
9
|
+
_prepare_Get,
|
|
10
|
+
_prepare_Update,
|
|
11
|
+
)
|
|
12
|
+
from ._ops import (
|
|
13
|
+
OP_Get,
|
|
14
|
+
OP_Update,
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
@overload
|
|
18
|
+
def Get(api: SyncInvokerProtocol, productCode: str) -> ResponseEnvelope[List[Dimension]]: ...
|
|
19
|
+
@overload
|
|
20
|
+
def Get(api: SyncRequestProtocol, productCode: str) -> ResponseEnvelope[List[Dimension]]: ...
|
|
21
|
+
@overload
|
|
22
|
+
def Get(api: AsyncInvokerProtocol, productCode: str) -> Awaitable[ResponseEnvelope[List[Dimension]]]: ...
|
|
23
|
+
@overload
|
|
24
|
+
def Get(api: AsyncRequestProtocol, productCode: str) -> Awaitable[ResponseEnvelope[List[Dimension]]]: ...
|
|
25
|
+
def Get(api: object, productCode: str) -> ResponseEnvelope[List[Dimension]] | Awaitable[ResponseEnvelope[List[Dimension]]]:
|
|
26
|
+
params, data = _prepare_Get(productCode=productCode)
|
|
27
|
+
return invoke_operation(api, OP_Get, params=params, data=data)
|
|
28
|
+
|
|
29
|
+
@overload
|
|
30
|
+
def Update(api: SyncInvokerProtocol, productCode: str, productDimensions: List["Dimension"]) -> ResponseEnvelope[None]: ...
|
|
31
|
+
@overload
|
|
32
|
+
def Update(api: SyncRequestProtocol, productCode: str, productDimensions: List["Dimension"]) -> ResponseEnvelope[None]: ...
|
|
33
|
+
@overload
|
|
34
|
+
def Update(api: AsyncInvokerProtocol, productCode: str, productDimensions: List["Dimension"]) -> Awaitable[ResponseEnvelope[None]]: ...
|
|
35
|
+
@overload
|
|
36
|
+
def Update(api: AsyncRequestProtocol, productCode: str, productDimensions: List["Dimension"]) -> Awaitable[ResponseEnvelope[None]]: ...
|
|
37
|
+
def Update(api: object, productCode: str, productDimensions: List["Dimension"]) -> ResponseEnvelope[None] | Awaitable[ResponseEnvelope[None]]:
|
|
38
|
+
params, data = _prepare_Update(productCode=productCode, productDimensions=productDimensions)
|
|
39
|
+
return invoke_operation(api, OP_Update, params=params, data=data)
|
|
40
|
+
|
|
41
|
+
__all__ = ["Get", "Update"]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
import json
|
|
6
|
+
|
|
7
|
+
_REQUEST_Get = ('GET', '/api/ProductDimensions')
|
|
8
|
+
def _prepare_Get(*, productCode) -> tuple[dict[str, Any] | None, Any]:
|
|
9
|
+
params: dict[str, Any] = {}
|
|
10
|
+
params["productCode"] = productCode
|
|
11
|
+
data = None
|
|
12
|
+
return params or None, data
|
|
13
|
+
|
|
14
|
+
_REQUEST_Update = ('PUT', '/api/ProductDimensions/UpdateList')
|
|
15
|
+
def _prepare_Update(*, productCode, productDimensions) -> tuple[dict[str, Any] | None, Any]:
|
|
16
|
+
params: dict[str, Any] = {}
|
|
17
|
+
params["productCode"] = productCode
|
|
18
|
+
data = json.dumps(productDimensions) if productDimensions is not None else None
|
|
19
|
+
return params or None, data
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from pydantic import TypeAdapter
|
|
5
|
+
from SymfWebAPI.operations import OperationSpec, parse_none, parse_with_adapter
|
|
6
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.FKF.Common.ViewModels import Dimension
|
|
8
|
+
|
|
9
|
+
_ADAPTER_Get = TypeAdapter(List[Dimension])
|
|
10
|
+
|
|
11
|
+
def _parse_Get(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[Dimension]]:
|
|
12
|
+
return parse_with_adapter(envelope, _ADAPTER_Get)
|
|
13
|
+
OP_Get = OperationSpec(method='GET', path='/api/ProductDimensions', parser=_parse_Get)
|
|
14
|
+
|
|
15
|
+
def _parse_Update(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[None]:
|
|
16
|
+
return parse_none(envelope)
|
|
17
|
+
OP_Update = OperationSpec(method='PUT', path='/api/ProductDimensions/UpdateList', parser=_parse_Update)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Awaitable, overload
|
|
4
|
+
from SymfWebAPI.operations import invoke_operation
|
|
5
|
+
from SymfWebAPI.protocols import (AsyncInvokerProtocol, AsyncRequestProtocol, SyncInvokerProtocol, SyncRequestProtocol)
|
|
6
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels import ProductPhoto
|
|
8
|
+
from SymfWebAPI.WebAPI.Interface.Enums import enumPhotoQuality
|
|
9
|
+
from ._common import (
|
|
10
|
+
_prepare_Get,
|
|
11
|
+
)
|
|
12
|
+
from ._ops import (
|
|
13
|
+
OP_Get,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
@overload
|
|
17
|
+
def Get(api: SyncInvokerProtocol, photoId: int, quality: "enumPhotoQuality") -> ResponseEnvelope[ProductPhoto]: ...
|
|
18
|
+
@overload
|
|
19
|
+
def Get(api: SyncRequestProtocol, photoId: int, quality: "enumPhotoQuality") -> ResponseEnvelope[ProductPhoto]: ...
|
|
20
|
+
@overload
|
|
21
|
+
def Get(api: AsyncInvokerProtocol, photoId: int, quality: "enumPhotoQuality") -> Awaitable[ResponseEnvelope[ProductPhoto]]: ...
|
|
22
|
+
@overload
|
|
23
|
+
def Get(api: AsyncRequestProtocol, photoId: int, quality: "enumPhotoQuality") -> Awaitable[ResponseEnvelope[ProductPhoto]]: ...
|
|
24
|
+
def Get(api: object, photoId: int, quality: "enumPhotoQuality") -> ResponseEnvelope[ProductPhoto] | Awaitable[ResponseEnvelope[ProductPhoto]]:
|
|
25
|
+
params, data = _prepare_Get(photoId=photoId, quality=quality)
|
|
26
|
+
return invoke_operation(api, OP_Get, params=params, data=data)
|
|
27
|
+
|
|
28
|
+
__all__ = ["Get"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
_REQUEST_Get = ('GET', '/api/ProductPhotos')
|
|
6
|
+
def _prepare_Get(*, photoId, quality) -> tuple[dict[str, Any] | None, Any]:
|
|
7
|
+
params: dict[str, Any] = {}
|
|
8
|
+
params["photoId"] = photoId
|
|
9
|
+
params["quality"] = quality.value
|
|
10
|
+
data = None
|
|
11
|
+
return params or None, data
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from pydantic import TypeAdapter
|
|
4
|
+
from SymfWebAPI.operations import OperationSpec, parse_none, parse_with_adapter
|
|
5
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
6
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels import ProductPhoto
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.Enums import enumPhotoQuality
|
|
8
|
+
|
|
9
|
+
_ADAPTER_Get = TypeAdapter(ProductPhoto)
|
|
10
|
+
|
|
11
|
+
def _parse_Get(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[ProductPhoto]:
|
|
12
|
+
return parse_with_adapter(envelope, _ADAPTER_Get)
|
|
13
|
+
OP_Get = OperationSpec(method='GET', path='/api/ProductPhotos', parser=_parse_Get)
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Awaitable, List, overload
|
|
4
|
+
from SymfWebAPI.operations import invoke_operation
|
|
5
|
+
from SymfWebAPI.protocols import (AsyncInvokerProtocol, AsyncRequestProtocol, SyncInvokerProtocol, SyncRequestProtocol)
|
|
6
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import IndividualDiscount
|
|
8
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceCalculationCriteria
|
|
9
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceCalculationResult
|
|
10
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import PriceFactor
|
|
11
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import PriceFactorCriteria
|
|
12
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceOrderCriteria
|
|
13
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceOrderResult
|
|
14
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import ProductPriceListElement
|
|
15
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import ProductPricesEdit
|
|
16
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import ProductSalePriceBase
|
|
17
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import QuantitativeDiscount
|
|
18
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import QuantitativeDiscountListElement
|
|
19
|
+
from ._common import (
|
|
20
|
+
_prepare_Update,
|
|
21
|
+
_prepare_Recalculate,
|
|
22
|
+
_prepare_GetSalePricesByProduct,
|
|
23
|
+
_prepare_GetSalePricesByProductKind,
|
|
24
|
+
_prepare_GetQuantitativeDiscountsByProduct,
|
|
25
|
+
_prepare_GetQuantitativeDiscountsByProductKind,
|
|
26
|
+
_prepare_GetIndividualDiscountsByContractor,
|
|
27
|
+
_prepare_GetIndividualDiscountsByContractorKind,
|
|
28
|
+
_prepare_GetPriceFactors,
|
|
29
|
+
_prepare_CalculatePrices,
|
|
30
|
+
_prepare_OrderPrices,
|
|
31
|
+
)
|
|
32
|
+
from ._ops import (
|
|
33
|
+
OP_Update,
|
|
34
|
+
OP_Recalculate,
|
|
35
|
+
OP_GetSalePricesByProduct,
|
|
36
|
+
OP_GetSalePricesByProductKind,
|
|
37
|
+
OP_GetQuantitativeDiscountsByProduct,
|
|
38
|
+
OP_GetQuantitativeDiscountsByProductKind,
|
|
39
|
+
OP_GetIndividualDiscountsByContractor,
|
|
40
|
+
OP_GetIndividualDiscountsByContractorKind,
|
|
41
|
+
OP_GetPriceFactors,
|
|
42
|
+
OP_CalculatePrices,
|
|
43
|
+
OP_OrderPrices,
|
|
44
|
+
)
|
|
45
|
+
|
|
46
|
+
@overload
|
|
47
|
+
def Update(api: SyncInvokerProtocol, productCode: str, prices: "ProductPricesEdit") -> ResponseEnvelope[None]: ...
|
|
48
|
+
@overload
|
|
49
|
+
def Update(api: SyncRequestProtocol, productCode: str, prices: "ProductPricesEdit") -> ResponseEnvelope[None]: ...
|
|
50
|
+
@overload
|
|
51
|
+
def Update(api: AsyncInvokerProtocol, productCode: str, prices: "ProductPricesEdit") -> Awaitable[ResponseEnvelope[None]]: ...
|
|
52
|
+
@overload
|
|
53
|
+
def Update(api: AsyncRequestProtocol, productCode: str, prices: "ProductPricesEdit") -> Awaitable[ResponseEnvelope[None]]: ...
|
|
54
|
+
def Update(api: object, productCode: str, prices: "ProductPricesEdit") -> ResponseEnvelope[None] | Awaitable[ResponseEnvelope[None]]:
|
|
55
|
+
params, data = _prepare_Update(productCode=productCode, prices=prices)
|
|
56
|
+
return invoke_operation(api, OP_Update, params=params, data=data)
|
|
57
|
+
|
|
58
|
+
@overload
|
|
59
|
+
def Recalculate(api: SyncInvokerProtocol, productCode: str) -> ResponseEnvelope[None]: ...
|
|
60
|
+
@overload
|
|
61
|
+
def Recalculate(api: SyncRequestProtocol, productCode: str) -> ResponseEnvelope[None]: ...
|
|
62
|
+
@overload
|
|
63
|
+
def Recalculate(api: AsyncInvokerProtocol, productCode: str) -> Awaitable[ResponseEnvelope[None]]: ...
|
|
64
|
+
@overload
|
|
65
|
+
def Recalculate(api: AsyncRequestProtocol, productCode: str) -> Awaitable[ResponseEnvelope[None]]: ...
|
|
66
|
+
def Recalculate(api: object, productCode: str) -> ResponseEnvelope[None] | Awaitable[ResponseEnvelope[None]]:
|
|
67
|
+
params, data = _prepare_Recalculate(productCode=productCode)
|
|
68
|
+
return invoke_operation(api, OP_Recalculate, params=params, data=data)
|
|
69
|
+
|
|
70
|
+
@overload
|
|
71
|
+
def GetSalePricesByProduct(api: SyncInvokerProtocol, productCode: str) -> ResponseEnvelope[List[ProductSalePriceBase]]: ...
|
|
72
|
+
@overload
|
|
73
|
+
def GetSalePricesByProduct(api: SyncRequestProtocol, productCode: str) -> ResponseEnvelope[List[ProductSalePriceBase]]: ...
|
|
74
|
+
@overload
|
|
75
|
+
def GetSalePricesByProduct(api: AsyncInvokerProtocol, productCode: str) -> Awaitable[ResponseEnvelope[List[ProductSalePriceBase]]]: ...
|
|
76
|
+
@overload
|
|
77
|
+
def GetSalePricesByProduct(api: AsyncRequestProtocol, productCode: str) -> Awaitable[ResponseEnvelope[List[ProductSalePriceBase]]]: ...
|
|
78
|
+
def GetSalePricesByProduct(api: object, productCode: str) -> ResponseEnvelope[List[ProductSalePriceBase]] | Awaitable[ResponseEnvelope[List[ProductSalePriceBase]]]:
|
|
79
|
+
params, data = _prepare_GetSalePricesByProduct(productCode=productCode)
|
|
80
|
+
return invoke_operation(api, OP_GetSalePricesByProduct, params=params, data=data)
|
|
81
|
+
|
|
82
|
+
@overload
|
|
83
|
+
def GetSalePricesByProductKind(api: SyncInvokerProtocol, productKindId: int) -> ResponseEnvelope[List[ProductPriceListElement]]: ...
|
|
84
|
+
@overload
|
|
85
|
+
def GetSalePricesByProductKind(api: SyncRequestProtocol, productKindId: int) -> ResponseEnvelope[List[ProductPriceListElement]]: ...
|
|
86
|
+
@overload
|
|
87
|
+
def GetSalePricesByProductKind(api: AsyncInvokerProtocol, productKindId: int) -> Awaitable[ResponseEnvelope[List[ProductPriceListElement]]]: ...
|
|
88
|
+
@overload
|
|
89
|
+
def GetSalePricesByProductKind(api: AsyncRequestProtocol, productKindId: int) -> Awaitable[ResponseEnvelope[List[ProductPriceListElement]]]: ...
|
|
90
|
+
def GetSalePricesByProductKind(api: object, productKindId: int) -> ResponseEnvelope[List[ProductPriceListElement]] | Awaitable[ResponseEnvelope[List[ProductPriceListElement]]]:
|
|
91
|
+
params, data = _prepare_GetSalePricesByProductKind(productKindId=productKindId)
|
|
92
|
+
return invoke_operation(api, OP_GetSalePricesByProductKind, params=params, data=data)
|
|
93
|
+
|
|
94
|
+
@overload
|
|
95
|
+
def GetQuantitativeDiscountsByProduct(api: SyncInvokerProtocol, productCode: str) -> ResponseEnvelope[List[QuantitativeDiscount]]: ...
|
|
96
|
+
@overload
|
|
97
|
+
def GetQuantitativeDiscountsByProduct(api: SyncRequestProtocol, productCode: str) -> ResponseEnvelope[List[QuantitativeDiscount]]: ...
|
|
98
|
+
@overload
|
|
99
|
+
def GetQuantitativeDiscountsByProduct(api: AsyncInvokerProtocol, productCode: str) -> Awaitable[ResponseEnvelope[List[QuantitativeDiscount]]]: ...
|
|
100
|
+
@overload
|
|
101
|
+
def GetQuantitativeDiscountsByProduct(api: AsyncRequestProtocol, productCode: str) -> Awaitable[ResponseEnvelope[List[QuantitativeDiscount]]]: ...
|
|
102
|
+
def GetQuantitativeDiscountsByProduct(api: object, productCode: str) -> ResponseEnvelope[List[QuantitativeDiscount]] | Awaitable[ResponseEnvelope[List[QuantitativeDiscount]]]:
|
|
103
|
+
params, data = _prepare_GetQuantitativeDiscountsByProduct(productCode=productCode)
|
|
104
|
+
return invoke_operation(api, OP_GetQuantitativeDiscountsByProduct, params=params, data=data)
|
|
105
|
+
|
|
106
|
+
@overload
|
|
107
|
+
def GetQuantitativeDiscountsByProductKind(api: SyncInvokerProtocol, productKindId: int) -> ResponseEnvelope[List[QuantitativeDiscountListElement]]: ...
|
|
108
|
+
@overload
|
|
109
|
+
def GetQuantitativeDiscountsByProductKind(api: SyncRequestProtocol, productKindId: int) -> ResponseEnvelope[List[QuantitativeDiscountListElement]]: ...
|
|
110
|
+
@overload
|
|
111
|
+
def GetQuantitativeDiscountsByProductKind(api: AsyncInvokerProtocol, productKindId: int) -> Awaitable[ResponseEnvelope[List[QuantitativeDiscountListElement]]]: ...
|
|
112
|
+
@overload
|
|
113
|
+
def GetQuantitativeDiscountsByProductKind(api: AsyncRequestProtocol, productKindId: int) -> Awaitable[ResponseEnvelope[List[QuantitativeDiscountListElement]]]: ...
|
|
114
|
+
def GetQuantitativeDiscountsByProductKind(api: object, productKindId: int) -> ResponseEnvelope[List[QuantitativeDiscountListElement]] | Awaitable[ResponseEnvelope[List[QuantitativeDiscountListElement]]]:
|
|
115
|
+
params, data = _prepare_GetQuantitativeDiscountsByProductKind(productKindId=productKindId)
|
|
116
|
+
return invoke_operation(api, OP_GetQuantitativeDiscountsByProductKind, params=params, data=data)
|
|
117
|
+
|
|
118
|
+
@overload
|
|
119
|
+
def GetIndividualDiscountsByContractor(api: SyncInvokerProtocol, contractorCode: str) -> ResponseEnvelope[List[IndividualDiscount]]: ...
|
|
120
|
+
@overload
|
|
121
|
+
def GetIndividualDiscountsByContractor(api: SyncRequestProtocol, contractorCode: str) -> ResponseEnvelope[List[IndividualDiscount]]: ...
|
|
122
|
+
@overload
|
|
123
|
+
def GetIndividualDiscountsByContractor(api: AsyncInvokerProtocol, contractorCode: str) -> Awaitable[ResponseEnvelope[List[IndividualDiscount]]]: ...
|
|
124
|
+
@overload
|
|
125
|
+
def GetIndividualDiscountsByContractor(api: AsyncRequestProtocol, contractorCode: str) -> Awaitable[ResponseEnvelope[List[IndividualDiscount]]]: ...
|
|
126
|
+
def GetIndividualDiscountsByContractor(api: object, contractorCode: str) -> ResponseEnvelope[List[IndividualDiscount]] | Awaitable[ResponseEnvelope[List[IndividualDiscount]]]:
|
|
127
|
+
params, data = _prepare_GetIndividualDiscountsByContractor(contractorCode=contractorCode)
|
|
128
|
+
return invoke_operation(api, OP_GetIndividualDiscountsByContractor, params=params, data=data)
|
|
129
|
+
|
|
130
|
+
@overload
|
|
131
|
+
def GetIndividualDiscountsByContractorKind(api: SyncInvokerProtocol, contractorKindId: int) -> ResponseEnvelope[List[IndividualDiscount]]: ...
|
|
132
|
+
@overload
|
|
133
|
+
def GetIndividualDiscountsByContractorKind(api: SyncRequestProtocol, contractorKindId: int) -> ResponseEnvelope[List[IndividualDiscount]]: ...
|
|
134
|
+
@overload
|
|
135
|
+
def GetIndividualDiscountsByContractorKind(api: AsyncInvokerProtocol, contractorKindId: int) -> Awaitable[ResponseEnvelope[List[IndividualDiscount]]]: ...
|
|
136
|
+
@overload
|
|
137
|
+
def GetIndividualDiscountsByContractorKind(api: AsyncRequestProtocol, contractorKindId: int) -> Awaitable[ResponseEnvelope[List[IndividualDiscount]]]: ...
|
|
138
|
+
def GetIndividualDiscountsByContractorKind(api: object, contractorKindId: int) -> ResponseEnvelope[List[IndividualDiscount]] | Awaitable[ResponseEnvelope[List[IndividualDiscount]]]:
|
|
139
|
+
params, data = _prepare_GetIndividualDiscountsByContractorKind(contractorKindId=contractorKindId)
|
|
140
|
+
return invoke_operation(api, OP_GetIndividualDiscountsByContractorKind, params=params, data=data)
|
|
141
|
+
|
|
142
|
+
@overload
|
|
143
|
+
def GetPriceFactors(api: SyncInvokerProtocol, criteria: "PriceFactorCriteria") -> ResponseEnvelope[List[PriceFactor]]: ...
|
|
144
|
+
@overload
|
|
145
|
+
def GetPriceFactors(api: SyncRequestProtocol, criteria: "PriceFactorCriteria") -> ResponseEnvelope[List[PriceFactor]]: ...
|
|
146
|
+
@overload
|
|
147
|
+
def GetPriceFactors(api: AsyncInvokerProtocol, criteria: "PriceFactorCriteria") -> Awaitable[ResponseEnvelope[List[PriceFactor]]]: ...
|
|
148
|
+
@overload
|
|
149
|
+
def GetPriceFactors(api: AsyncRequestProtocol, criteria: "PriceFactorCriteria") -> Awaitable[ResponseEnvelope[List[PriceFactor]]]: ...
|
|
150
|
+
def GetPriceFactors(api: object, criteria: "PriceFactorCriteria") -> ResponseEnvelope[List[PriceFactor]] | Awaitable[ResponseEnvelope[List[PriceFactor]]]:
|
|
151
|
+
params, data = _prepare_GetPriceFactors(criteria=criteria)
|
|
152
|
+
return invoke_operation(api, OP_GetPriceFactors, params=params, data=data)
|
|
153
|
+
|
|
154
|
+
@overload
|
|
155
|
+
def CalculatePrices(api: SyncInvokerProtocol, criteria: "PriceCalculationCriteria") -> ResponseEnvelope[PriceCalculationResult]: ...
|
|
156
|
+
@overload
|
|
157
|
+
def CalculatePrices(api: SyncRequestProtocol, criteria: "PriceCalculationCriteria") -> ResponseEnvelope[PriceCalculationResult]: ...
|
|
158
|
+
@overload
|
|
159
|
+
def CalculatePrices(api: AsyncInvokerProtocol, criteria: "PriceCalculationCriteria") -> Awaitable[ResponseEnvelope[PriceCalculationResult]]: ...
|
|
160
|
+
@overload
|
|
161
|
+
def CalculatePrices(api: AsyncRequestProtocol, criteria: "PriceCalculationCriteria") -> Awaitable[ResponseEnvelope[PriceCalculationResult]]: ...
|
|
162
|
+
def CalculatePrices(api: object, criteria: "PriceCalculationCriteria") -> ResponseEnvelope[PriceCalculationResult] | Awaitable[ResponseEnvelope[PriceCalculationResult]]:
|
|
163
|
+
params, data = _prepare_CalculatePrices(criteria=criteria)
|
|
164
|
+
return invoke_operation(api, OP_CalculatePrices, params=params, data=data)
|
|
165
|
+
|
|
166
|
+
@overload
|
|
167
|
+
def OrderPrices(api: SyncInvokerProtocol, criteria: "PriceOrderCriteria") -> ResponseEnvelope[PriceOrderResult]: ...
|
|
168
|
+
@overload
|
|
169
|
+
def OrderPrices(api: SyncRequestProtocol, criteria: "PriceOrderCriteria") -> ResponseEnvelope[PriceOrderResult]: ...
|
|
170
|
+
@overload
|
|
171
|
+
def OrderPrices(api: AsyncInvokerProtocol, criteria: "PriceOrderCriteria") -> Awaitable[ResponseEnvelope[PriceOrderResult]]: ...
|
|
172
|
+
@overload
|
|
173
|
+
def OrderPrices(api: AsyncRequestProtocol, criteria: "PriceOrderCriteria") -> Awaitable[ResponseEnvelope[PriceOrderResult]]: ...
|
|
174
|
+
def OrderPrices(api: object, criteria: "PriceOrderCriteria") -> ResponseEnvelope[PriceOrderResult] | Awaitable[ResponseEnvelope[PriceOrderResult]]:
|
|
175
|
+
params, data = _prepare_OrderPrices(criteria=criteria)
|
|
176
|
+
return invoke_operation(api, OP_OrderPrices, params=params, data=data)
|
|
177
|
+
|
|
178
|
+
__all__ = ["Update", "Recalculate", "GetSalePricesByProduct", "GetSalePricesByProductKind", "GetQuantitativeDiscountsByProduct", "GetQuantitativeDiscountsByProductKind", "GetIndividualDiscountsByContractor", "GetIndividualDiscountsByContractorKind", "GetPriceFactors", "CalculatePrices", "OrderPrices"]
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import Any
|
|
4
|
+
|
|
5
|
+
_REQUEST_Update = ('PUT', '/api/ProductPrices/Update')
|
|
6
|
+
def _prepare_Update(*, productCode, prices) -> tuple[dict[str, Any] | None, Any]:
|
|
7
|
+
params: dict[str, Any] = {}
|
|
8
|
+
params["productCode"] = productCode
|
|
9
|
+
data = prices.model_dump_json(exclude_unset=True) if prices is not None else None
|
|
10
|
+
return params or None, data
|
|
11
|
+
|
|
12
|
+
_REQUEST_Recalculate = ('PATCH', '/api/ProductPrices/Recalculate')
|
|
13
|
+
def _prepare_Recalculate(*, productCode) -> tuple[dict[str, Any] | None, Any]:
|
|
14
|
+
params: dict[str, Any] = {}
|
|
15
|
+
params["productCode"] = productCode
|
|
16
|
+
data = None
|
|
17
|
+
return params or None, data
|
|
18
|
+
|
|
19
|
+
_REQUEST_GetSalePricesByProduct = ('GET', '/api/ProductPrices/SalePrices')
|
|
20
|
+
def _prepare_GetSalePricesByProduct(*, productCode) -> tuple[dict[str, Any] | None, Any]:
|
|
21
|
+
params: dict[str, Any] = {}
|
|
22
|
+
params["productCode"] = productCode
|
|
23
|
+
data = None
|
|
24
|
+
return params or None, data
|
|
25
|
+
|
|
26
|
+
_REQUEST_GetSalePricesByProductKind = ('GET', '/api/ProductPrices/SalePrices')
|
|
27
|
+
def _prepare_GetSalePricesByProductKind(*, productKindId) -> tuple[dict[str, Any] | None, Any]:
|
|
28
|
+
params: dict[str, Any] = {}
|
|
29
|
+
params["productKindId"] = productKindId
|
|
30
|
+
data = None
|
|
31
|
+
return params or None, data
|
|
32
|
+
|
|
33
|
+
_REQUEST_GetQuantitativeDiscountsByProduct = ('GET', '/api/ProductPrices/QuantitativeDiscounts')
|
|
34
|
+
def _prepare_GetQuantitativeDiscountsByProduct(*, productCode) -> tuple[dict[str, Any] | None, Any]:
|
|
35
|
+
params: dict[str, Any] = {}
|
|
36
|
+
params["productCode"] = productCode
|
|
37
|
+
data = None
|
|
38
|
+
return params or None, data
|
|
39
|
+
|
|
40
|
+
_REQUEST_GetQuantitativeDiscountsByProductKind = ('GET', '/api/ProductPrices/QuantitativeDiscounts')
|
|
41
|
+
def _prepare_GetQuantitativeDiscountsByProductKind(*, productKindId) -> tuple[dict[str, Any] | None, Any]:
|
|
42
|
+
params: dict[str, Any] = {}
|
|
43
|
+
params["productKindId"] = productKindId
|
|
44
|
+
data = None
|
|
45
|
+
return params or None, data
|
|
46
|
+
|
|
47
|
+
_REQUEST_GetIndividualDiscountsByContractor = ('GET', '/api/ProductPrices/IndividualDiscounts')
|
|
48
|
+
def _prepare_GetIndividualDiscountsByContractor(*, contractorCode) -> tuple[dict[str, Any] | None, Any]:
|
|
49
|
+
params: dict[str, Any] = {}
|
|
50
|
+
params["contractorCode"] = contractorCode
|
|
51
|
+
data = None
|
|
52
|
+
return params or None, data
|
|
53
|
+
|
|
54
|
+
_REQUEST_GetIndividualDiscountsByContractorKind = ('GET', '/api/ProductPrices/IndividualDiscounts')
|
|
55
|
+
def _prepare_GetIndividualDiscountsByContractorKind(*, contractorKindId) -> tuple[dict[str, Any] | None, Any]:
|
|
56
|
+
params: dict[str, Any] = {}
|
|
57
|
+
params["contractorKindId"] = contractorKindId
|
|
58
|
+
data = None
|
|
59
|
+
return params or None, data
|
|
60
|
+
|
|
61
|
+
_REQUEST_GetPriceFactors = ('GET', '/api/ProductPrices/PriceFactors')
|
|
62
|
+
def _prepare_GetPriceFactors(*, criteria) -> tuple[dict[str, Any] | None, Any]:
|
|
63
|
+
params: dict[str, Any] = {}
|
|
64
|
+
data = criteria.model_dump_json(exclude_unset=True) if criteria is not None else None
|
|
65
|
+
return params or None, data
|
|
66
|
+
|
|
67
|
+
_REQUEST_CalculatePrices = ('PATCH', '/api/ProductPrices/CalculatePrices')
|
|
68
|
+
def _prepare_CalculatePrices(*, criteria) -> tuple[dict[str, Any] | None, Any]:
|
|
69
|
+
params: dict[str, Any] = {}
|
|
70
|
+
data = criteria.model_dump_json(exclude_unset=True) if criteria is not None else None
|
|
71
|
+
return params or None, data
|
|
72
|
+
|
|
73
|
+
_REQUEST_OrderPrices = ('PATCH', '/api/ProductPrices/OrderPrices')
|
|
74
|
+
def _prepare_OrderPrices(*, criteria) -> tuple[dict[str, Any] | None, Any]:
|
|
75
|
+
params: dict[str, Any] = {}
|
|
76
|
+
data = criteria.model_dump_json(exclude_unset=True) if criteria is not None else None
|
|
77
|
+
return params or None, data
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from typing import List
|
|
4
|
+
from pydantic import TypeAdapter
|
|
5
|
+
from SymfWebAPI.operations import OperationSpec, parse_none, parse_with_adapter
|
|
6
|
+
from SymfWebAPI.response import ResponseEnvelope
|
|
7
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import IndividualDiscount
|
|
8
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceCalculationCriteria
|
|
9
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceCalculationResult
|
|
10
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import PriceFactor
|
|
11
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import PriceFactorCriteria
|
|
12
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceOrderCriteria
|
|
13
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.PriceCalculations import PriceOrderResult
|
|
14
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import ProductPriceListElement
|
|
15
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import ProductPricesEdit
|
|
16
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import ProductSalePriceBase
|
|
17
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import QuantitativeDiscount
|
|
18
|
+
from SymfWebAPI.WebAPI.Interface.Products.ViewModels.Prices import QuantitativeDiscountListElement
|
|
19
|
+
|
|
20
|
+
def _parse_Update(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[None]:
|
|
21
|
+
return parse_none(envelope)
|
|
22
|
+
OP_Update = OperationSpec(method='PUT', path='/api/ProductPrices/Update', parser=_parse_Update)
|
|
23
|
+
|
|
24
|
+
def _parse_Recalculate(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[None]:
|
|
25
|
+
return parse_none(envelope)
|
|
26
|
+
OP_Recalculate = OperationSpec(method='PATCH', path='/api/ProductPrices/Recalculate', parser=_parse_Recalculate)
|
|
27
|
+
|
|
28
|
+
_ADAPTER_GetSalePricesByProduct = TypeAdapter(List[ProductSalePriceBase])
|
|
29
|
+
|
|
30
|
+
def _parse_GetSalePricesByProduct(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[ProductSalePriceBase]]:
|
|
31
|
+
return parse_with_adapter(envelope, _ADAPTER_GetSalePricesByProduct)
|
|
32
|
+
OP_GetSalePricesByProduct = OperationSpec(method='GET', path='/api/ProductPrices/SalePrices', parser=_parse_GetSalePricesByProduct)
|
|
33
|
+
|
|
34
|
+
_ADAPTER_GetSalePricesByProductKind = TypeAdapter(List[ProductPriceListElement])
|
|
35
|
+
|
|
36
|
+
def _parse_GetSalePricesByProductKind(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[ProductPriceListElement]]:
|
|
37
|
+
return parse_with_adapter(envelope, _ADAPTER_GetSalePricesByProductKind)
|
|
38
|
+
OP_GetSalePricesByProductKind = OperationSpec(method='GET', path='/api/ProductPrices/SalePrices', parser=_parse_GetSalePricesByProductKind)
|
|
39
|
+
|
|
40
|
+
_ADAPTER_GetQuantitativeDiscountsByProduct = TypeAdapter(List[QuantitativeDiscount])
|
|
41
|
+
|
|
42
|
+
def _parse_GetQuantitativeDiscountsByProduct(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[QuantitativeDiscount]]:
|
|
43
|
+
return parse_with_adapter(envelope, _ADAPTER_GetQuantitativeDiscountsByProduct)
|
|
44
|
+
OP_GetQuantitativeDiscountsByProduct = OperationSpec(method='GET', path='/api/ProductPrices/QuantitativeDiscounts', parser=_parse_GetQuantitativeDiscountsByProduct)
|
|
45
|
+
|
|
46
|
+
_ADAPTER_GetQuantitativeDiscountsByProductKind = TypeAdapter(List[QuantitativeDiscountListElement])
|
|
47
|
+
|
|
48
|
+
def _parse_GetQuantitativeDiscountsByProductKind(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[QuantitativeDiscountListElement]]:
|
|
49
|
+
return parse_with_adapter(envelope, _ADAPTER_GetQuantitativeDiscountsByProductKind)
|
|
50
|
+
OP_GetQuantitativeDiscountsByProductKind = OperationSpec(method='GET', path='/api/ProductPrices/QuantitativeDiscounts', parser=_parse_GetQuantitativeDiscountsByProductKind)
|
|
51
|
+
|
|
52
|
+
_ADAPTER_GetIndividualDiscountsByContractor = TypeAdapter(List[IndividualDiscount])
|
|
53
|
+
|
|
54
|
+
def _parse_GetIndividualDiscountsByContractor(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[IndividualDiscount]]:
|
|
55
|
+
return parse_with_adapter(envelope, _ADAPTER_GetIndividualDiscountsByContractor)
|
|
56
|
+
OP_GetIndividualDiscountsByContractor = OperationSpec(method='GET', path='/api/ProductPrices/IndividualDiscounts', parser=_parse_GetIndividualDiscountsByContractor)
|
|
57
|
+
|
|
58
|
+
_ADAPTER_GetIndividualDiscountsByContractorKind = TypeAdapter(List[IndividualDiscount])
|
|
59
|
+
|
|
60
|
+
def _parse_GetIndividualDiscountsByContractorKind(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[IndividualDiscount]]:
|
|
61
|
+
return parse_with_adapter(envelope, _ADAPTER_GetIndividualDiscountsByContractorKind)
|
|
62
|
+
OP_GetIndividualDiscountsByContractorKind = OperationSpec(method='GET', path='/api/ProductPrices/IndividualDiscounts', parser=_parse_GetIndividualDiscountsByContractorKind)
|
|
63
|
+
|
|
64
|
+
_ADAPTER_GetPriceFactors = TypeAdapter(List[PriceFactor])
|
|
65
|
+
|
|
66
|
+
def _parse_GetPriceFactors(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[List[PriceFactor]]:
|
|
67
|
+
return parse_with_adapter(envelope, _ADAPTER_GetPriceFactors)
|
|
68
|
+
OP_GetPriceFactors = OperationSpec(method='GET', path='/api/ProductPrices/PriceFactors', parser=_parse_GetPriceFactors)
|
|
69
|
+
|
|
70
|
+
_ADAPTER_CalculatePrices = TypeAdapter(PriceCalculationResult)
|
|
71
|
+
|
|
72
|
+
def _parse_CalculatePrices(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[PriceCalculationResult]:
|
|
73
|
+
return parse_with_adapter(envelope, _ADAPTER_CalculatePrices)
|
|
74
|
+
OP_CalculatePrices = OperationSpec(method='PATCH', path='/api/ProductPrices/CalculatePrices', parser=_parse_CalculatePrices)
|
|
75
|
+
|
|
76
|
+
_ADAPTER_OrderPrices = TypeAdapter(PriceOrderResult)
|
|
77
|
+
|
|
78
|
+
def _parse_OrderPrices(envelope: ResponseEnvelope[object]) -> ResponseEnvelope[PriceOrderResult]:
|
|
79
|
+
return parse_with_adapter(envelope, _ADAPTER_OrderPrices)
|
|
80
|
+
OP_OrderPrices = OperationSpec(method='PATCH', path='/api/ProductPrices/OrderPrices', parser=_parse_OrderPrices)
|