shopware-api-client 1.0.118__py3-none-any.whl → 1.1.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.
- shopware_api_client/base.py +338 -176
- shopware_api_client/cache.py +5 -10
- shopware_api_client/endpoints/admin/__init__.py +11 -4
- shopware_api_client/endpoints/admin/commercial/b2b_components_role.py +5 -20
- shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list.py +5 -25
- shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list_line_item.py +7 -24
- shopware_api_client/endpoints/admin/commercial/b2b_employee.py +5 -27
- shopware_api_client/endpoints/admin/commercial/dynamic_access.py +9 -19
- shopware_api_client/endpoints/admin/core/acl_role.py +5 -19
- shopware_api_client/endpoints/admin/core/api_info.py +11 -12
- shopware_api_client/endpoints/admin/core/app.py +5 -42
- shopware_api_client/endpoints/admin/core/app_script_condition.py +5 -24
- shopware_api_client/endpoints/admin/core/category.py +5 -56
- shopware_api_client/endpoints/admin/core/cms_block.py +5 -34
- shopware_api_client/endpoints/admin/core/cms_page.py +5 -26
- shopware_api_client/endpoints/admin/core/cms_section.py +5 -35
- shopware_api_client/endpoints/admin/core/cms_slot.py +5 -31
- shopware_api_client/endpoints/admin/core/country.py +5 -37
- shopware_api_client/endpoints/admin/core/country_state.py +5 -23
- shopware_api_client/endpoints/admin/core/currency.py +5 -33
- shopware_api_client/endpoints/admin/core/currency_country_rounding.py +5 -20
- shopware_api_client/endpoints/admin/core/custom_entity.py +4 -26
- shopware_api_client/endpoints/admin/core/custom_field.py +4 -14
- shopware_api_client/endpoints/admin/core/customer.py +5 -57
- shopware_api_client/endpoints/admin/core/customer_address.py +6 -33
- shopware_api_client/endpoints/admin/core/customer_group.py +5 -24
- shopware_api_client/endpoints/admin/core/customer_recovery.py +5 -16
- shopware_api_client/endpoints/admin/core/customer_wishlist.py +5 -19
- shopware_api_client/endpoints/admin/core/customer_wishlist_product.py +5 -19
- shopware_api_client/endpoints/admin/core/delivery_time.py +5 -21
- shopware_api_client/endpoints/admin/core/document.py +5 -28
- shopware_api_client/endpoints/admin/core/document_base_config.py +5 -27
- shopware_api_client/endpoints/admin/core/document_base_config_sales_channel.py +7 -20
- shopware_api_client/endpoints/admin/core/document_type.py +5 -19
- shopware_api_client/endpoints/admin/core/integration.py +5 -25
- shopware_api_client/endpoints/admin/core/landing_page.py +5 -28
- shopware_api_client/endpoints/admin/core/language.py +5 -21
- shopware_api_client/endpoints/admin/core/locale.py +5 -20
- shopware_api_client/endpoints/admin/core/main_category.py +5 -19
- shopware_api_client/endpoints/admin/core/media.py +25 -37
- shopware_api_client/endpoints/admin/core/media_default_folder.py +4 -17
- shopware_api_client/endpoints/admin/core/media_folder.py +5 -26
- shopware_api_client/endpoints/admin/core/media_folder_configuration.py +5 -21
- shopware_api_client/endpoints/admin/core/media_thumbnail.py +5 -26
- shopware_api_client/endpoints/admin/core/media_thumbnail_size.py +7 -18
- shopware_api_client/endpoints/admin/core/order.py +12 -48
- shopware_api_client/endpoints/admin/core/order_address.py +6 -34
- shopware_api_client/endpoints/admin/core/order_customer.py +6 -29
- shopware_api_client/endpoints/admin/core/order_delivery.py +5 -30
- shopware_api_client/endpoints/admin/core/order_delivery_position.py +5 -26
- shopware_api_client/endpoints/admin/core/order_line_item.py +7 -44
- shopware_api_client/endpoints/admin/core/order_line_item_download.py +5 -23
- shopware_api_client/endpoints/admin/core/order_transaction.py +5 -25
- shopware_api_client/endpoints/admin/core/order_transaction_capture.py +5 -27
- shopware_api_client/endpoints/admin/core/order_transaction_capture_refund.py +7 -28
- shopware_api_client/endpoints/admin/core/order_transaction_capture_refund_position.py +8 -29
- shopware_api_client/endpoints/admin/core/payment_method.py +5 -52
- shopware_api_client/endpoints/admin/core/product.py +24 -90
- shopware_api_client/endpoints/admin/core/product_configurator_setting.py +5 -26
- shopware_api_client/endpoints/admin/core/product_cross_selling.py +5 -27
- shopware_api_client/endpoints/admin/core/product_cross_selling_assigned_products.py +7 -21
- shopware_api_client/endpoints/admin/core/product_download.py +5 -22
- shopware_api_client/endpoints/admin/core/product_export.py +5 -34
- shopware_api_client/endpoints/admin/core/product_feature_set.py +5 -19
- shopware_api_client/endpoints/admin/core/product_manufacturer.py +5 -23
- shopware_api_client/endpoints/admin/core/product_media.py +5 -22
- shopware_api_client/endpoints/admin/core/product_price.py +5 -24
- shopware_api_client/endpoints/admin/core/product_review.py +5 -29
- shopware_api_client/endpoints/admin/core/product_search_keyword.py +5 -20
- shopware_api_client/endpoints/admin/core/product_stream.py +5 -23
- shopware_api_client/endpoints/admin/core/product_visibility.py +5 -18
- shopware_api_client/endpoints/admin/core/product_warehouse.py +5 -17
- shopware_api_client/endpoints/admin/core/promotion.py +5 -38
- shopware_api_client/endpoints/admin/core/promotion_discount.py +5 -24
- shopware_api_client/endpoints/admin/core/promotion_discount_prices.py +5 -19
- shopware_api_client/endpoints/admin/core/property_group.py +5 -24
- shopware_api_client/endpoints/admin/core/property_group_option.py +5 -23
- shopware_api_client/endpoints/admin/core/rule.py +5 -24
- shopware_api_client/endpoints/admin/core/rule_condition.py +5 -23
- shopware_api_client/endpoints/admin/core/sales_channel.py +6 -53
- shopware_api_client/endpoints/admin/core/sales_channel_domain.py +5 -23
- shopware_api_client/endpoints/admin/core/salutation.py +5 -20
- shopware_api_client/endpoints/admin/core/seo_url.py +5 -30
- shopware_api_client/endpoints/admin/core/shipping_method.py +8 -30
- shopware_api_client/endpoints/admin/core/shipping_method_price.py +20 -0
- shopware_api_client/endpoints/admin/core/state_machine.py +5 -21
- shopware_api_client/endpoints/admin/core/state_machine_history.py +5 -25
- shopware_api_client/endpoints/admin/core/state_machine_state.py +6 -20
- shopware_api_client/endpoints/admin/core/state_machine_transition.py +5 -23
- shopware_api_client/endpoints/admin/core/system_config.py +5 -19
- shopware_api_client/endpoints/admin/core/tag.py +5 -14
- shopware_api_client/endpoints/admin/core/tax.py +5 -21
- shopware_api_client/endpoints/admin/core/tax_rule.py +5 -22
- shopware_api_client/endpoints/admin/core/tax_rule_type.py +5 -21
- shopware_api_client/endpoints/admin/core/unit.py +5 -19
- shopware_api_client/endpoints/admin/core/user.py +5 -31
- shopware_api_client/endpoints/admin/core/warehouse.py +5 -15
- shopware_api_client/endpoints/admin/core/warehouse_group.py +6 -18
- shopware_api_client/endpoints/admin/core/warehouse_group_warehouse.py +6 -18
- shopware_api_client/endpoints/base_fields.py +13 -22
- shopware_api_client/endpoints/relations.py +36 -24
- shopware_api_client/endpoints/store/__init__.py +37 -4
- shopware_api_client/endpoints/store/core/address.py +51 -68
- shopware_api_client/endpoints/store/core/cart.py +39 -85
- shopware_api_client/endpoints/store/core/category.py +16 -0
- shopware_api_client/endpoints/store/core/cms_block.py +10 -0
- shopware_api_client/endpoints/store/core/cms_page.py +12 -0
- shopware_api_client/endpoints/store/core/cms_section.py +12 -0
- shopware_api_client/endpoints/store/core/cms_slot.py +8 -0
- shopware_api_client/endpoints/store/core/context.py +58 -0
- shopware_api_client/endpoints/store/core/country.py +15 -0
- shopware_api_client/endpoints/store/core/country_state.py +19 -0
- shopware_api_client/endpoints/store/core/currency.py +12 -0
- shopware_api_client/endpoints/store/core/customer.py +34 -0
- shopware_api_client/endpoints/store/core/customer_group.py +5 -0
- shopware_api_client/endpoints/store/core/delivery_time.py +5 -0
- shopware_api_client/endpoints/store/core/document.py +15 -0
- shopware_api_client/endpoints/store/core/document_type.py +5 -0
- shopware_api_client/endpoints/store/core/landing_page.py +10 -0
- shopware_api_client/endpoints/store/core/language.py +18 -0
- shopware_api_client/endpoints/store/core/locale.py +5 -0
- shopware_api_client/endpoints/store/core/main_category.py +5 -0
- shopware_api_client/endpoints/store/core/media.py +8 -0
- shopware_api_client/endpoints/store/core/media_thumbnail.py +5 -0
- shopware_api_client/endpoints/store/core/order.py +67 -0
- shopware_api_client/endpoints/store/core/order_address.py +12 -0
- shopware_api_client/endpoints/store/core/order_customer.py +8 -0
- shopware_api_client/endpoints/store/core/order_delivery.py +14 -0
- shopware_api_client/endpoints/store/core/order_delivery_position.py +5 -0
- shopware_api_client/endpoints/store/core/order_line_item.py +14 -0
- shopware_api_client/endpoints/store/core/order_transaction.py +12 -0
- shopware_api_client/endpoints/store/core/order_transaction_capture.py +12 -0
- shopware_api_client/endpoints/store/core/order_transaction_capture_refund.py +12 -0
- shopware_api_client/endpoints/store/core/order_transaction_capture_refund_position.py +11 -0
- shopware_api_client/endpoints/store/core/payment_method.py +8 -0
- shopware_api_client/endpoints/store/core/product.py +60 -0
- shopware_api_client/endpoints/store/core/product_configurator_setting.py +10 -0
- shopware_api_client/endpoints/store/core/product_cross_selling.py +5 -0
- shopware_api_client/endpoints/store/core/product_download.py +10 -0
- shopware_api_client/endpoints/store/core/product_manufacturer.py +8 -0
- shopware_api_client/endpoints/store/core/product_media.py +10 -0
- shopware_api_client/endpoints/store/core/product_review.py +5 -0
- shopware_api_client/endpoints/store/core/product_stream.py +5 -0
- shopware_api_client/endpoints/store/core/property_group.py +8 -0
- shopware_api_client/endpoints/store/core/property_group_option.py +10 -0
- shopware_api_client/endpoints/store/core/rule.py +5 -0
- shopware_api_client/endpoints/store/core/sales_channel.py +23 -0
- shopware_api_client/endpoints/store/core/sales_channel_domain.py +12 -0
- shopware_api_client/endpoints/store/core/salutation.py +12 -0
- shopware_api_client/endpoints/store/core/seo_url.py +5 -0
- shopware_api_client/endpoints/store/core/shipping_method.py +18 -0
- shopware_api_client/endpoints/store/core/shipping_method_price.py +5 -0
- shopware_api_client/endpoints/store/core/state_machine_state.py +5 -0
- shopware_api_client/endpoints/store/core/tag.py +5 -0
- shopware_api_client/endpoints/store/core/tax.py +5 -0
- shopware_api_client/endpoints/store/core/unit.py +5 -0
- shopware_api_client/exceptions.py +4 -0
- shopware_api_client/fieldsets.py +12 -0
- shopware_api_client/models/__init__.py +0 -0
- shopware_api_client/models/acl_role.py +11 -0
- shopware_api_client/models/app.py +33 -0
- shopware_api_client/models/app_script_condition.py +16 -0
- shopware_api_client/models/b2b_components_role.py +12 -0
- shopware_api_client/models/b2b_components_shopping_list.py +13 -0
- shopware_api_client/models/b2b_components_shopping_list_line_item.py +14 -0
- shopware_api_client/models/b2b_employee.py +17 -0
- shopware_api_client/models/category.py +44 -0
- shopware_api_client/models/cms_block.py +23 -0
- shopware_api_client/models/cms_page.py +15 -0
- shopware_api_client/models/cms_section.py +20 -0
- shopware_api_client/models/cms_slot.py +17 -0
- shopware_api_client/models/country.py +27 -0
- shopware_api_client/models/country_state.py +12 -0
- shopware_api_client/models/currency.py +20 -0
- shopware_api_client/models/currency_country_rounding.py +11 -0
- shopware_api_client/models/custom_entity.py +19 -0
- shopware_api_client/models/custom_field.py +8 -0
- shopware_api_client/models/customer.py +47 -0
- shopware_api_client/models/customer_address.py +22 -0
- shopware_api_client/models/customer_group.py +13 -0
- shopware_api_client/models/customer_recovery.py +9 -0
- shopware_api_client/models/customer_wishlist.py +9 -0
- shopware_api_client/models/customer_wishlist_product.py +10 -0
- shopware_api_client/models/delivery_time.py +12 -0
- shopware_api_client/models/document.py +20 -0
- shopware_api_client/models/document_base_config.py +19 -0
- shopware_api_client/models/document_base_config_sales_channel.py +10 -0
- shopware_api_client/models/document_type.py +8 -0
- shopware_api_client/models/dynamic_access.py +9 -0
- shopware_api_client/models/integration.py +15 -0
- shopware_api_client/models/landing_page.py +15 -0
- shopware_api_client/models/language.py +11 -0
- shopware_api_client/models/locale.py +9 -0
- shopware_api_client/models/main_category.py +12 -0
- shopware_api_client/models/media.py +26 -0
- shopware_api_client/models/media_default_folder.py +7 -0
- shopware_api_client/models/media_folder.py +16 -0
- shopware_api_client/models/media_folder_configuration.py +11 -0
- shopware_api_client/models/media_thumbnail.py +15 -0
- shopware_api_client/models/media_thumbnail_size.py +8 -0
- shopware_api_client/models/order.py +36 -0
- shopware_api_client/models/order_address.py +23 -0
- shopware_api_client/models/order_customer.py +18 -0
- shopware_api_client/models/order_delivery.py +19 -0
- shopware_api_client/models/order_delivery_position.py +15 -0
- shopware_api_client/models/order_line_item.py +34 -0
- shopware_api_client/models/order_line_item_download.py +12 -0
- shopware_api_client/models/order_transaction.py +15 -0
- shopware_api_client/models/order_transaction_capture.py +15 -0
- shopware_api_client/models/order_transaction_capture_refund.py +16 -0
- shopware_api_client/models/order_transaction_capture_refund_position.py +15 -0
- shopware_api_client/models/payment_method.py +29 -0
- shopware_api_client/models/product.py +72 -0
- shopware_api_client/models/product_configurator_setting.py +14 -0
- shopware_api_client/models/product_cross_selling.py +17 -0
- shopware_api_client/models/product_cross_selling_assigned_products.py +11 -0
- shopware_api_client/models/product_download.py +11 -0
- shopware_api_client/models/product_export.py +27 -0
- shopware_api_client/models/product_feature_set.py +11 -0
- shopware_api_client/models/product_manufacturer.py +11 -0
- shopware_api_client/models/product_media.py +11 -0
- shopware_api_client/models/product_price.py +15 -0
- shopware_api_client/models/product_review.py +19 -0
- shopware_api_client/models/product_search_keyword.py +13 -0
- shopware_api_client/models/product_stream.py +14 -0
- shopware_api_client/models/product_visibility.py +11 -0
- shopware_api_client/models/product_warehouse.py +10 -0
- shopware_api_client/models/promotion.py +29 -0
- shopware_api_client/models/promotion_discount.py +17 -0
- shopware_api_client/models/promotion_discount_prices.py +10 -0
- shopware_api_client/models/property_group.py +13 -0
- shopware_api_client/models/property_group_option.py +12 -0
- shopware_api_client/models/rule.py +16 -0
- shopware_api_client/models/rule_condition.py +15 -0
- shopware_api_client/models/sales_channel.py +44 -0
- shopware_api_client/models/sales_channel_domain.py +13 -0
- shopware_api_client/models/salutation.py +9 -0
- shopware_api_client/models/seo_url.py +19 -0
- shopware_api_client/models/shipping_method.py +18 -0
- shopware_api_client/models/shipping_method_price.py +15 -0
- shopware_api_client/models/state_machine.py +10 -0
- shopware_api_client/models/state_machine_history.py +18 -0
- shopware_api_client/models/state_machine_state.py +8 -0
- shopware_api_client/models/state_machine_transition.py +11 -0
- shopware_api_client/models/system_config.py +12 -0
- shopware_api_client/models/tag.py +7 -0
- shopware_api_client/models/tax.py +9 -0
- shopware_api_client/models/tax_rule.py +15 -0
- shopware_api_client/models/tax_rule_type.py +11 -0
- shopware_api_client/models/unit.py +8 -0
- shopware_api_client/models/user.py +21 -0
- shopware_api_client/models/warehouse.py +8 -0
- shopware_api_client/models/warehouse_group.py +11 -0
- shopware_api_client/models/warehouse_group_warehouse.py +11 -0
- shopware_api_client/structs/__init__.py +0 -0
- shopware_api_client/structs/absolute_price_definition.py +6 -0
- shopware_api_client/structs/calculated_cheapest_price.py +6 -0
- shopware_api_client/structs/calculated_price.py +17 -0
- shopware_api_client/structs/calculated_tax.py +8 -0
- shopware_api_client/structs/cart.py +21 -0
- shopware_api_client/structs/cart_price.py +15 -0
- shopware_api_client/structs/cash_rounding_config.py +7 -0
- shopware_api_client/structs/context.py +15 -0
- shopware_api_client/structs/delivery.py +16 -0
- shopware_api_client/structs/delivery_date.py +8 -0
- shopware_api_client/structs/delivery_information.py +13 -0
- shopware_api_client/structs/delivery_position.py +12 -0
- shopware_api_client/structs/delivery_time.py +8 -0
- shopware_api_client/structs/language_info.py +6 -0
- shopware_api_client/structs/line_item.py +39 -0
- shopware_api_client/structs/list_price.py +7 -0
- shopware_api_client/structs/measurement_units.py +8 -0
- shopware_api_client/structs/percentage_price_definition.py +6 -0
- shopware_api_client/structs/price.py +14 -0
- shopware_api_client/structs/quantity_information.py +7 -0
- shopware_api_client/structs/quantity_price_definition.py +14 -0
- shopware_api_client/structs/reference_price.py +5 -0
- shopware_api_client/structs/reference_price_definition.py +7 -0
- shopware_api_client/structs/regulation_price.py +5 -0
- shopware_api_client/structs/sales_channel_context.py +33 -0
- shopware_api_client/structs/shipping_location.py +12 -0
- shopware_api_client/structs/tax_free_config.py +8 -0
- shopware_api_client/structs/tax_rule.py +6 -0
- shopware_api_client/structs/transaction.py +8 -0
- shopware_api_client/structs/variant_listing_config.py +8 -0
- {shopware_api_client-1.0.118.dist-info → shopware_api_client-1.1.1.dist-info}/METADATA +45 -273
- shopware_api_client-1.1.1.dist-info/RECORD +298 -0
- shopware_api_client-1.0.118.dist-info/RECORD +0 -117
- {shopware_api_client-1.0.118.dist-info → shopware_api_client-1.1.1.dist-info}/WHEEL +0 -0
- {shopware_api_client-1.0.118.dist-info → shopware_api_client-1.1.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AppScriptConditionBase(ApiModelBase):
|
|
8
|
+
_identifier = "app_script_condition"
|
|
9
|
+
|
|
10
|
+
identifier: str
|
|
11
|
+
name: str
|
|
12
|
+
active: bool
|
|
13
|
+
group: str | None = None
|
|
14
|
+
script: str | None = None
|
|
15
|
+
config: list[dict[str, Any]] | None = None
|
|
16
|
+
app_id: IdField
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class B2bComponentsRoleBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "b2b_components_role"
|
|
9
|
+
|
|
10
|
+
business_partner_customer_id: IdField | None = None
|
|
11
|
+
name: str
|
|
12
|
+
permissions: dict[str, Any] | None = None
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField, Price
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class B2bComponentsShoppingListBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "b2b_components_shopping_list"
|
|
7
|
+
|
|
8
|
+
name: str | None = None
|
|
9
|
+
active: bool | None = None
|
|
10
|
+
price: Price | None = None
|
|
11
|
+
sales_channel_id: IdField | None = None
|
|
12
|
+
customer_id: IdField | None = None
|
|
13
|
+
employee_id: IdField | None = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class B2bComponentsShoppingListLineItemBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "b2b_components_shopping_list_line_item"
|
|
9
|
+
|
|
10
|
+
product_id: IdField
|
|
11
|
+
product_version_id: IdField | None = None
|
|
12
|
+
quantity: int
|
|
13
|
+
price: dict[str, Any] | None = None
|
|
14
|
+
shopping_list_id: IdField
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from pydantic import AwareDatetime
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class B2bEmployeeBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "b2b_employee"
|
|
9
|
+
|
|
10
|
+
business_partner_customer_id: IdField | None = None
|
|
11
|
+
role_id: IdField | None = None
|
|
12
|
+
language_id: IdField
|
|
13
|
+
active: bool | None = None
|
|
14
|
+
first_name: str
|
|
15
|
+
last_name: str
|
|
16
|
+
email: str
|
|
17
|
+
recovery_time: AwareDatetime | None = None
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from pydantic import Field
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CategoryBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "category"
|
|
9
|
+
|
|
10
|
+
parent_id: IdField | None = None
|
|
11
|
+
parent_version_id: IdField | None = None
|
|
12
|
+
after_category_id: IdField | None = None
|
|
13
|
+
after_category_version_id: IdField | None = None
|
|
14
|
+
media_id: IdField | None = None
|
|
15
|
+
display_nested_products: bool
|
|
16
|
+
auto_increment: int | None = Field(default=None, exclude=True)
|
|
17
|
+
breadcrumb: list[str] | None = Field(default=None, exclude=True)
|
|
18
|
+
level: int | None = Field(default=None, exclude=True)
|
|
19
|
+
path: str | None = Field(default=None, exclude=True)
|
|
20
|
+
child_count: int | None = Field(default=None, exclude=True)
|
|
21
|
+
type: str
|
|
22
|
+
product_assignment_type: str
|
|
23
|
+
visible: bool | None = None
|
|
24
|
+
active: bool | None = None
|
|
25
|
+
cms_page_id_sIdFieldched: bool | None = Field(
|
|
26
|
+
default=None, description="Runtime field, cannot be used as part of the criteria."
|
|
27
|
+
)
|
|
28
|
+
visible_child_count: int | None = Field(
|
|
29
|
+
default=None, description="Runtime field, cannot be used as part of the criteria."
|
|
30
|
+
)
|
|
31
|
+
name: str
|
|
32
|
+
slot_config: dict[str, Any] | list[Any] | None = None
|
|
33
|
+
link_type: str | None = None
|
|
34
|
+
internal_link: str | None = None
|
|
35
|
+
external_link: str | None = None
|
|
36
|
+
link_new_tab: bool | None = None
|
|
37
|
+
description: str | None = None
|
|
38
|
+
meta_title: str | None = None
|
|
39
|
+
meta_description: str | None = None
|
|
40
|
+
keywords: str | None = None
|
|
41
|
+
cms_page_id: IdField | None = None
|
|
42
|
+
cms_page_version_id: IdField | None = None
|
|
43
|
+
product_stream_id: IdField | None = None
|
|
44
|
+
custom_entity_type_id: IdField | None = None
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField, Visibility
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CmsBlockBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "cms_block"
|
|
7
|
+
|
|
8
|
+
position: int
|
|
9
|
+
type: str
|
|
10
|
+
locked: bool | None = None
|
|
11
|
+
name: str | None = None
|
|
12
|
+
section_position: str | None = None
|
|
13
|
+
margin_top: str | None = None
|
|
14
|
+
margin_bottom: str | None = None
|
|
15
|
+
margin_left: str | None = None
|
|
16
|
+
margin_right: str | None = None
|
|
17
|
+
background_color: str | None = None
|
|
18
|
+
background_media_id: IdField | None = None
|
|
19
|
+
background_media_mode: str | None = None
|
|
20
|
+
css_class: str | None = None
|
|
21
|
+
visibility: Visibility | None = None
|
|
22
|
+
section_id: IdField
|
|
23
|
+
cms_section_version_id: IdField | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
3
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CmsPageBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
_identifier: str = "cms_page"
|
|
8
|
+
|
|
9
|
+
name: str | None = None
|
|
10
|
+
type: str
|
|
11
|
+
entity: str | None = None
|
|
12
|
+
css_class: str | None = None
|
|
13
|
+
config: dict[str, Any] | None = None
|
|
14
|
+
preview_media_id: IdField | None = None
|
|
15
|
+
locked: bool | None = None
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField, Visibility
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CmsSectionBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "cms_section"
|
|
7
|
+
|
|
8
|
+
position: int
|
|
9
|
+
type: str
|
|
10
|
+
locked: bool | None = None
|
|
11
|
+
name: str | None = None
|
|
12
|
+
sizing_mode: str | None = None
|
|
13
|
+
mobile_behavior: str | None = None
|
|
14
|
+
background_color: str | None = None
|
|
15
|
+
background_media_id: IdField | None = None
|
|
16
|
+
background_media_mode: str | None = None
|
|
17
|
+
css_class: str | None = None
|
|
18
|
+
page_id: IdField
|
|
19
|
+
visibility: Visibility | None = None
|
|
20
|
+
cms_page_version_id: IdField | None = None
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from pydantic import Field
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CmsSlotBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "cms_slot"
|
|
9
|
+
|
|
10
|
+
type: str
|
|
11
|
+
slot: str
|
|
12
|
+
locked: bool | None = None
|
|
13
|
+
config: dict[str, Any] | None = None
|
|
14
|
+
data: dict[str, Any] | None = Field(default=None, exclude=True)
|
|
15
|
+
block_id: IdField
|
|
16
|
+
field_config: dict[str, Any] | None = None
|
|
17
|
+
cms_block_version_id: IdField | None = None
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.structs.tax_free_config import TaxFreeConfig
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CountryBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier = "country"
|
|
7
|
+
|
|
8
|
+
name: str
|
|
9
|
+
iso: str | None = None
|
|
10
|
+
position: int | None = None
|
|
11
|
+
active: bool | None = None
|
|
12
|
+
shipping_available: bool | None = None
|
|
13
|
+
iso3: str | None = None
|
|
14
|
+
display_state_in_registration: bool | None = None
|
|
15
|
+
force_state_in_registration: bool | None = None
|
|
16
|
+
check_vat_id_pattern: bool | None = None
|
|
17
|
+
var_id_pattern: str | None = None
|
|
18
|
+
vat_id_required: bool | None = None
|
|
19
|
+
customer_tax: TaxFreeConfig | None = None
|
|
20
|
+
company_tax: TaxFreeConfig | None = None
|
|
21
|
+
postal_code_required: bool | None = None
|
|
22
|
+
is_eu: bool | None = None
|
|
23
|
+
check_postal_code_pattern: bool | None = None
|
|
24
|
+
check_advanced_postal_code_pattern: bool | None = None
|
|
25
|
+
advanced_postal_code_pattern: str | None = None
|
|
26
|
+
default_postal_code_pattern: str | None = None
|
|
27
|
+
address_format: list[list[str]]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CountryStateBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier = "country_state"
|
|
7
|
+
|
|
8
|
+
country_id: IdField
|
|
9
|
+
short_code: str
|
|
10
|
+
name: str
|
|
11
|
+
position: int | None = None
|
|
12
|
+
active: bool | None = None
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class CurrencyBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
_identifier: str = "currency"
|
|
8
|
+
|
|
9
|
+
factor: float
|
|
10
|
+
symbol: str
|
|
11
|
+
iso_code: str
|
|
12
|
+
short_name: str
|
|
13
|
+
name: str
|
|
14
|
+
position: int | None = None
|
|
15
|
+
is_system_default: bool | None = Field(
|
|
16
|
+
None,
|
|
17
|
+
description="Runtime field, cannot be used as part of the criteria.",
|
|
18
|
+
)
|
|
19
|
+
tax_free_from: float | None = None
|
|
20
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField, Rounding
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CurrencyCountryRoundingBase(ApiModelBase):
|
|
6
|
+
_identifier: str = "currency_country_rounding"
|
|
7
|
+
|
|
8
|
+
currency_id: IdField
|
|
9
|
+
country_id: IdField
|
|
10
|
+
item_rounding: Rounding
|
|
11
|
+
total_rounding: Rounding
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from pydantic import AwareDatetime, Field
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CustomEntityBase(ApiModelBase):
|
|
8
|
+
_identifier: str = "custom_entity"
|
|
9
|
+
|
|
10
|
+
name: str
|
|
11
|
+
fields: list
|
|
12
|
+
flags: list | None = None
|
|
13
|
+
app_id: IdField | None = None
|
|
14
|
+
plugin_id: IdField | None = None
|
|
15
|
+
cms_aware: bool | None = None
|
|
16
|
+
store_api_aware: bool | None = None
|
|
17
|
+
custom_fields_aware: bool | None = None
|
|
18
|
+
label_property: str | None = None
|
|
19
|
+
deleted_at: AwareDatetime | None = Field(default=None)
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
from pydantic import AwareDatetime, Field
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class CustomerBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "customer"
|
|
9
|
+
|
|
10
|
+
group_id: IdField
|
|
11
|
+
default_payment_method_id: IdField | None = None
|
|
12
|
+
sales_channel_id: IdField
|
|
13
|
+
language_id: IdField
|
|
14
|
+
last_payment_method_id: IdField | None = None
|
|
15
|
+
default_billing_address_id: IdField
|
|
16
|
+
default_shipping_address_id: IdField
|
|
17
|
+
auto_increment: int | None = Field(default=None, exclude=True)
|
|
18
|
+
customer_number: str
|
|
19
|
+
salutation_id: IdField | None = None
|
|
20
|
+
first_name: str
|
|
21
|
+
last_name: str
|
|
22
|
+
company: str | None = None
|
|
23
|
+
email: str
|
|
24
|
+
title: str | None = None
|
|
25
|
+
vat_ids: list[str] | None = None
|
|
26
|
+
affiliate_code: str | None = None
|
|
27
|
+
campaign_code: str | None = None
|
|
28
|
+
active: bool | None = None
|
|
29
|
+
double_opt_in_registration: bool | None = None
|
|
30
|
+
double_opt_in_email_sent_date: AwareDatetime | None = None
|
|
31
|
+
double_opt_in_confirm_date: AwareDatetime | None = None
|
|
32
|
+
hash: str | None = None
|
|
33
|
+
guest: bool | None = None
|
|
34
|
+
first_login: AwareDatetime | None = None
|
|
35
|
+
last_login: AwareDatetime | None = None
|
|
36
|
+
birthday: str | None = None
|
|
37
|
+
last_order_date: AwareDatetime | None = Field(default=None, exclude=True)
|
|
38
|
+
order_count: int | None = Field(default=None, exclude=True)
|
|
39
|
+
order_total_amount: float | None = Field(default=None, exclude=True)
|
|
40
|
+
review_count: int | None = Field(default=None, exclude=True)
|
|
41
|
+
remote_address: str | None = None
|
|
42
|
+
tag_ids: list[IdField] | None = Field(default=None, exclude=True)
|
|
43
|
+
requested_group_id: IdField | None = None
|
|
44
|
+
bound_sales_channel_id: IdField | None = None
|
|
45
|
+
account_type: str
|
|
46
|
+
created_by_id: IdField | None = None
|
|
47
|
+
updated_by_id: IdField | None = None
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CustomerAddressBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier = "customer_address"
|
|
7
|
+
|
|
8
|
+
customer_id: IdField
|
|
9
|
+
country_id: IdField
|
|
10
|
+
country_state_id: IdField | None = None
|
|
11
|
+
salutation_id: IdField | None = None
|
|
12
|
+
first_name: str
|
|
13
|
+
last_name: str
|
|
14
|
+
zipcode: str | None = None
|
|
15
|
+
city: str
|
|
16
|
+
company: str | None = None
|
|
17
|
+
street: str
|
|
18
|
+
department: str | None = None
|
|
19
|
+
title: str | None = None
|
|
20
|
+
phone_number: str | None = None
|
|
21
|
+
additional_address_line1: str | None = None
|
|
22
|
+
additional_address_line2: str | None = None
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class CustomerGroupBase(ApiModelBase, CustomFieldsMixin):
|
|
5
|
+
_identifier = "customer_group"
|
|
6
|
+
|
|
7
|
+
name: str
|
|
8
|
+
display_gross: bool | None = None
|
|
9
|
+
registration_active: bool | None = None
|
|
10
|
+
registration_title: str | None = None
|
|
11
|
+
registration_introduction: str | None = None
|
|
12
|
+
registration_only_company_registration: bool | None = None
|
|
13
|
+
registration_seo_meta_description: str | None = None
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CustomerWishlistBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "customer_wishlist"
|
|
7
|
+
|
|
8
|
+
customer_id: IdField
|
|
9
|
+
sales_channel_id: IdField
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class CustomerWishlistProductBase(ApiModelBase):
|
|
6
|
+
_identifier: str = "customer_wishlist_product"
|
|
7
|
+
|
|
8
|
+
product_id: IdField
|
|
9
|
+
product_version_id: IdField | None = None
|
|
10
|
+
wishlist_id: IdField
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class DeliveryTimeBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
_identifier: str = "delivery_time"
|
|
8
|
+
|
|
9
|
+
name: str
|
|
10
|
+
min: int
|
|
11
|
+
max: int
|
|
12
|
+
unit: Literal["hour", "day", "week", "month", "year"]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DocumentBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "document"
|
|
9
|
+
|
|
10
|
+
document_type_id: IdField
|
|
11
|
+
file_type: str
|
|
12
|
+
referenced_document_id: IdField | None = None
|
|
13
|
+
order_id: IdField
|
|
14
|
+
document_media_file_id: IdField | None = None
|
|
15
|
+
order_version_id: IdField | None = None
|
|
16
|
+
config: dict[str, Any]
|
|
17
|
+
sent: bool | None = None
|
|
18
|
+
static: bool | None = None
|
|
19
|
+
deep_link_code: str
|
|
20
|
+
document_number: str | None = None
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from pydantic import AliasChoices, Field
|
|
4
|
+
|
|
5
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
6
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class DocumentBaseConfigBase(ApiModelBase, CustomFieldsMixin):
|
|
10
|
+
_identifier: str = "document_base_config"
|
|
11
|
+
|
|
12
|
+
document_type_id: IdField
|
|
13
|
+
logo_id: IdField | None = None
|
|
14
|
+
name: str
|
|
15
|
+
filename_prefix: str | None = None
|
|
16
|
+
filename_suffix: str | None = None
|
|
17
|
+
global_: bool = Field(..., serialization_alias="global", validation_alias=AliasChoices("global_", "global"))
|
|
18
|
+
document_number: str | None = None
|
|
19
|
+
config: dict[str, Any] | None = None
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class DocumentBaseConfigSalesChannelBase(ApiModelBase):
|
|
6
|
+
_identifier: str = "document_base_config_sales_channel"
|
|
7
|
+
|
|
8
|
+
document_base_config_id: IdField
|
|
9
|
+
sales_channel_id: IdField | None = None
|
|
10
|
+
document_type_id: IdField | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from pydantic import AwareDatetime
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class IntegrationBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
_identifier = "integration"
|
|
8
|
+
|
|
9
|
+
label: str
|
|
10
|
+
access_key: str
|
|
11
|
+
secret_access_key: str
|
|
12
|
+
last_usage_at: AwareDatetime | None = None
|
|
13
|
+
admin: bool | None = None
|
|
14
|
+
deleted_at: AwareDatetime | None = None
|
|
15
|
+
write_access: bool | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
3
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class LandingPageBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
active: bool | None = None
|
|
8
|
+
name: str
|
|
9
|
+
slot_config: dict[str, Any] | None = None
|
|
10
|
+
meta_title: str | None = None
|
|
11
|
+
meta_description: str | None = None
|
|
12
|
+
keywords: str | None = None
|
|
13
|
+
url: str
|
|
14
|
+
cms_page_id: IdField | None = None
|
|
15
|
+
cms_page_version_id: IdField | None = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class LanguageBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "language"
|
|
7
|
+
|
|
8
|
+
parent_id: IdField | None = None
|
|
9
|
+
locale_id: IdField
|
|
10
|
+
translation_code_id: IdField | None = None
|
|
11
|
+
name: str
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class MainCategoryBase(ApiModelBase):
|
|
6
|
+
_identifier: str = "main_category"
|
|
7
|
+
|
|
8
|
+
product_id: IdField
|
|
9
|
+
product_version_id: IdField | None = None
|
|
10
|
+
category_id: IdField
|
|
11
|
+
category_version_id: IdField | None = None
|
|
12
|
+
sales_channel_id: IdField
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
from pydantic import Field, AwareDatetime
|
|
3
|
+
|
|
4
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
5
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class MediaBase(ApiModelBase, CustomFieldsMixin):
|
|
9
|
+
_identifier: str = "media"
|
|
10
|
+
|
|
11
|
+
user_id: IdField | None = None
|
|
12
|
+
media_folder_id: IdField | None = Field(default=None)
|
|
13
|
+
mime_type: str | None = Field(default=None)
|
|
14
|
+
file_extension: str | None = Field(default=None)
|
|
15
|
+
uploaded_at: AwareDatetime | None = Field(default=None, exclude=True)
|
|
16
|
+
file_name: str | None = Field(default=None)
|
|
17
|
+
file_size: int | None = Field(default=None, exclude=True)
|
|
18
|
+
meta_data: dict[str, Any] | None = Field(default=None, exclude=True)
|
|
19
|
+
media_type: dict[str, Any] | None = Field(default=None, exclude=True)
|
|
20
|
+
config: dict[str, Any] | None = Field(default=None, exclude=True)
|
|
21
|
+
alt: str | None = None
|
|
22
|
+
title: str | None = None
|
|
23
|
+
url: str | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
|
|
24
|
+
path: str | None = Field(default=None)
|
|
25
|
+
has_file: bool | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
|
|
26
|
+
private: bool | None = False
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class MediaFolderBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "media_folder"
|
|
9
|
+
|
|
10
|
+
use_parent_configuration: bool | None = None
|
|
11
|
+
configuration_id: IdField
|
|
12
|
+
default_folder_id: IdField | None = None
|
|
13
|
+
parent_id: IdField | None = None
|
|
14
|
+
child_count: int | None = Field(default=None, exclude=True)
|
|
15
|
+
path: str | None = Field(default=None, exclude=True)
|
|
16
|
+
name: str
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class MediaFolderConfigurationBase(ApiModelBase, CustomFieldsMixin):
|
|
5
|
+
_identifier: str = "media_folder_configuration"
|
|
6
|
+
|
|
7
|
+
create_thumbnails: bool | None = None
|
|
8
|
+
keep_aspect_ration: bool | None = None
|
|
9
|
+
thumbnail_quality: int | None = None
|
|
10
|
+
private: bool | None = False
|
|
11
|
+
no_association: bool | None = None
|