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,12 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class PropertyGroupOptionBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "property_group_option"
|
|
7
|
+
|
|
8
|
+
group_id: IdField | None = None
|
|
9
|
+
name: str | None = None
|
|
10
|
+
position: int | None = None
|
|
11
|
+
color_hex_code: str | None = None
|
|
12
|
+
media_id: IdField | None = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
|
|
5
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RuleBase(ApiModelBase, CustomFieldsMixin):
|
|
9
|
+
_identifier: str = "rule"
|
|
10
|
+
|
|
11
|
+
name: str
|
|
12
|
+
priority: int
|
|
13
|
+
description: str | None = None
|
|
14
|
+
invalid: bool | None = Field(default=None, exclude=True)
|
|
15
|
+
areas: list[str] | None = Field(default=None, exclude=True)
|
|
16
|
+
module_types: dict[str, Any] | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
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 RuleConditionBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "rule_condition"
|
|
9
|
+
|
|
10
|
+
type: str
|
|
11
|
+
rule_id: IdField
|
|
12
|
+
script_id: IdField | None = None
|
|
13
|
+
parent_id: IdField | None = None
|
|
14
|
+
value: Any | None = None
|
|
15
|
+
position: int | None = None
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from pydantic import 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 SalesChannelBase(ApiModelBase, CustomFieldsMixin):
|
|
10
|
+
_identifier: str = "sales_channel"
|
|
11
|
+
|
|
12
|
+
language_id: IdField
|
|
13
|
+
customer_group_id: IdField
|
|
14
|
+
currency_id: IdField
|
|
15
|
+
payment_method_id: IdField
|
|
16
|
+
shipping_method_id: IdField
|
|
17
|
+
country_id: IdField
|
|
18
|
+
analytics_id: IdField | None = None
|
|
19
|
+
navigation_category_id: IdField
|
|
20
|
+
navigation_category_version_id: IdField | None = None
|
|
21
|
+
navigation_category_depth: int | None = None
|
|
22
|
+
footer_category_id: IdField | None = None
|
|
23
|
+
footer_category_version_id: IdField | None = None
|
|
24
|
+
service_category_id: IdField | None = None
|
|
25
|
+
service_category_version_id: IdField | None = None
|
|
26
|
+
mail_header_footer_id: IdField | None = None
|
|
27
|
+
hreflang_default_domain_id: IdField | None = None
|
|
28
|
+
name: str
|
|
29
|
+
short_name: str | None = None
|
|
30
|
+
tax_calculation_type: str | None = None
|
|
31
|
+
configuration: dict[str, Any] | None = None
|
|
32
|
+
active: bool | None = None
|
|
33
|
+
hreflang_active: bool | None = None
|
|
34
|
+
maintenance: bool | None = None
|
|
35
|
+
maintenance_ip_whitelist: list[str] | None = None
|
|
36
|
+
payment_method_ids: list[IdField] | None = Field(default=None, exclude=True)
|
|
37
|
+
home_cms_page_id: IdField | None = None
|
|
38
|
+
home_cms_page_version_id: IdField | None = None
|
|
39
|
+
home_slot_config: dict[str, Any] | None = None
|
|
40
|
+
home_enabled: bool
|
|
41
|
+
home_name: str | None = None
|
|
42
|
+
home_meta_title: str | None = None
|
|
43
|
+
home_meta_description: str | None = None
|
|
44
|
+
home_keywords: str | 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
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class SalesChannelDomainBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "sales_channel_domain"
|
|
7
|
+
|
|
8
|
+
url: str
|
|
9
|
+
sales_channel_id: IdField
|
|
10
|
+
language_id: IdField
|
|
11
|
+
currency_id: IdField
|
|
12
|
+
snippet_set_id: IdField
|
|
13
|
+
hreflang_use_only_locale: bool | None = None
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from pydantic import Field
|
|
2
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
3
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SeoUrlBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
_identifier: str = "seo_url"
|
|
8
|
+
|
|
9
|
+
sales_channel_id: IdField | None = None
|
|
10
|
+
language_id: IdField
|
|
11
|
+
foreign_key: IdField
|
|
12
|
+
route_name: str
|
|
13
|
+
path_info: str
|
|
14
|
+
seo_path_info: str
|
|
15
|
+
is_canonical: bool | None = None
|
|
16
|
+
is_modified: bool | None = None
|
|
17
|
+
is_deleted: bool | None = None
|
|
18
|
+
url: str | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
|
|
19
|
+
is_valid: bool | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class ShippingMethodBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "shipping_method"
|
|
7
|
+
|
|
8
|
+
name: str
|
|
9
|
+
active: bool | None = None
|
|
10
|
+
position: int | None = None
|
|
11
|
+
availability_rule_id: IdField | None = None
|
|
12
|
+
media_id: IdField | None = None
|
|
13
|
+
delivery_time_id: IdField
|
|
14
|
+
tax_type: str
|
|
15
|
+
tax_id: IdField | None = None
|
|
16
|
+
description: str | None = None
|
|
17
|
+
tracking_url: str | None = None
|
|
18
|
+
technical_name: str | None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
from shopware_api_client.structs.price import Price
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ShippingMethodPriceBase(ApiModelBase, CustomFieldsMixin):
|
|
7
|
+
_identifier = "shipping_method_price"
|
|
8
|
+
|
|
9
|
+
shipping_method_id: IdField
|
|
10
|
+
rule_id: IdField | None
|
|
11
|
+
calculation: int | None = None
|
|
12
|
+
calculation_rule_id: IdField | None
|
|
13
|
+
quantity_start: float | None = None
|
|
14
|
+
quantity_end: float | None = None
|
|
15
|
+
currency_price: list[Price] | None = None
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class StateMachineBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "state_machine"
|
|
7
|
+
|
|
8
|
+
technical_name: str
|
|
9
|
+
name: str
|
|
10
|
+
initial_state_id: IdField | None = None
|
|
@@ -0,0 +1,18 @@
|
|
|
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 StateMachineHistoryBase(ApiModelBase):
|
|
8
|
+
_identifier: str = "state_machine_history"
|
|
9
|
+
|
|
10
|
+
state_machine_id: IdField
|
|
11
|
+
entity_name: str
|
|
12
|
+
from_state_id: IdField
|
|
13
|
+
to_state_id: IdField
|
|
14
|
+
transition_action_name: str | None = None
|
|
15
|
+
user_id: IdField | None = None
|
|
16
|
+
entity_id: dict[str, Any]
|
|
17
|
+
referenced_id: IdField | None = None
|
|
18
|
+
referenced_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 StateMachineTransitionBase(ApiModelBase, CustomFieldsMixin):
|
|
6
|
+
_identifier: str = "state_machine_transition"
|
|
7
|
+
|
|
8
|
+
action_name: str
|
|
9
|
+
state_machine_id: IdField
|
|
10
|
+
from_state_id: IdField
|
|
11
|
+
to_state_id: IdField
|
|
@@ -0,0 +1,12 @@
|
|
|
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 SystemConfigBase(ApiModelBase):
|
|
8
|
+
_identifier: str = "system_config"
|
|
9
|
+
|
|
10
|
+
configuration_key: str
|
|
11
|
+
configuration_value: Any
|
|
12
|
+
sales_channel_id: IdField | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from pydantic import AwareDatetime
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.base import ApiModelBase
|
|
4
|
+
from shopware_api_client.endpoints.base_fields import Data, IdField
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class TaxRuleBase(ApiModelBase):
|
|
8
|
+
_identifier: str = "tax_rule"
|
|
9
|
+
|
|
10
|
+
tax_rule_type_id: IdField
|
|
11
|
+
country_id: IdField
|
|
12
|
+
tax_rate: float
|
|
13
|
+
data: "Data | None" = None
|
|
14
|
+
tax_id: IdField
|
|
15
|
+
active_from: AwareDatetime | None = None
|
|
@@ -0,0 +1,21 @@
|
|
|
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 UserBase(ApiModelBase, CustomFieldsMixin):
|
|
8
|
+
_identifier: str = "user"
|
|
9
|
+
|
|
10
|
+
locale_id: IdField
|
|
11
|
+
username: str
|
|
12
|
+
first_name: str
|
|
13
|
+
last_name: str
|
|
14
|
+
password: str | None = None
|
|
15
|
+
title: str | None = None
|
|
16
|
+
email: str
|
|
17
|
+
active: bool | None = None
|
|
18
|
+
admin: bool | None = None
|
|
19
|
+
last_updated_password_at: AwareDatetime | None = None
|
|
20
|
+
time_zone: str
|
|
21
|
+
avatar_id: IdField | None = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class WarehouseGroupBase(ApiModelBase):
|
|
6
|
+
_identifier = "warehouse_group"
|
|
7
|
+
|
|
8
|
+
name: str
|
|
9
|
+
description: str | None = None
|
|
10
|
+
priority: int | None = None
|
|
11
|
+
rule_id: IdField | None = None
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from shopware_api_client.base import ApiModelBase
|
|
2
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class WarehouseGroupWarehouseBase(ApiModelBase):
|
|
6
|
+
_identifier = "warehouse_group_warehouse"
|
|
7
|
+
|
|
8
|
+
name: str
|
|
9
|
+
warehouse_id: IdField
|
|
10
|
+
warehouse_group_id: IdField
|
|
11
|
+
priority: int | None = None
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from .calculated_tax import CalculatedTax
|
|
2
|
+
from .list_price import ListPrice
|
|
3
|
+
from .reference_price import ReferencePrice
|
|
4
|
+
from .regulation_price import RegulationPrice
|
|
5
|
+
from .tax_rule import TaxRule
|
|
6
|
+
from ..fieldsets import FieldSetBase
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CalculatedPrice(FieldSetBase):
|
|
10
|
+
unit_price: float
|
|
11
|
+
total_price: float
|
|
12
|
+
calculated_taxes: list[CalculatedTax]
|
|
13
|
+
tax_rules: list[TaxRule]
|
|
14
|
+
quantity: int = 1
|
|
15
|
+
reference_price: ReferencePrice | None = None
|
|
16
|
+
list_price: ListPrice | None = None
|
|
17
|
+
regulation_price: RegulationPrice | None = None
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from .cart_price import CartPrice
|
|
4
|
+
from .delivery import Delivery
|
|
5
|
+
from .line_item import LineItem
|
|
6
|
+
from .transaction import Transaction
|
|
7
|
+
from ..fieldsets import FieldSetBase
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class Cart(FieldSetBase):
|
|
11
|
+
name: str | None = None
|
|
12
|
+
token: str | None = None
|
|
13
|
+
price: CartPrice
|
|
14
|
+
line_items: list[LineItem]
|
|
15
|
+
errors: list[dict[str, Any]] | dict[str, Any] | None = None
|
|
16
|
+
deliveries: list[Delivery] | None = None
|
|
17
|
+
transactions: list[Transaction] | None = None
|
|
18
|
+
modified: bool | None = False
|
|
19
|
+
customer_comment: str | None = None
|
|
20
|
+
affiliate_code: str | None = None
|
|
21
|
+
campaign_code: str | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Literal
|
|
2
|
+
|
|
3
|
+
from .calculated_tax import CalculatedTax
|
|
4
|
+
from .tax_rule import TaxRule
|
|
5
|
+
from ..fieldsets import FieldSetBase
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CartPrice(FieldSetBase):
|
|
9
|
+
net_price: float
|
|
10
|
+
total_price: float
|
|
11
|
+
position_price: float
|
|
12
|
+
calculated_taxes: list[CalculatedTax]
|
|
13
|
+
tax_rules: list[TaxRule]
|
|
14
|
+
tax_status: Literal["gross", "net", "tax-free"]
|
|
15
|
+
raw_total: float | None = None
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.fieldsets import FieldSetBase
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Context(FieldSetBase):
|
|
7
|
+
version_id: str | None = None
|
|
8
|
+
currency_id: str | None = None
|
|
9
|
+
currency_factor: int | None = None
|
|
10
|
+
currency_precision: int | None = None
|
|
11
|
+
language_id_chain: list[str] | None = None
|
|
12
|
+
scope: str | None = None
|
|
13
|
+
source: dict[str, Any] | None = None
|
|
14
|
+
tax_state: str | None = None
|
|
15
|
+
use_cache: bool | None = None
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
from .calculated_price import CalculatedPrice
|
|
2
|
+
from .delivery_date import DeliveryDate
|
|
3
|
+
from .delivery_position import DeliveryPosition
|
|
4
|
+
from .shipping_location import ShippingLocation
|
|
5
|
+
from ..fieldsets import FieldSetBase
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class Delivery(FieldSetBase):
|
|
9
|
+
delivery_date: DeliveryDate | None = None
|
|
10
|
+
location: ShippingLocation | None = None
|
|
11
|
+
positions: list[DeliveryPosition] | None = None
|
|
12
|
+
shipping_costs: CalculatedPrice | None = None
|
|
13
|
+
shipping_method: "ShippingMethod | None" = None
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
from ..endpoints.store.core.shipping_method import ShippingMethod # noqa: E402
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
from .delivery_time import DeliveryTime
|
|
2
|
+
from ..fieldsets import FieldSetBase
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class DeliveryInformation(FieldSetBase):
|
|
6
|
+
free_delivery: bool | None = None
|
|
7
|
+
delivery_time: DeliveryTime | None = None
|
|
8
|
+
height: float | None = None
|
|
9
|
+
length: float | None = None
|
|
10
|
+
restock_time: int | None = None
|
|
11
|
+
stock: int | None = None
|
|
12
|
+
weight: float | None = None
|
|
13
|
+
width: float | None = None
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from .calculated_price import CalculatedPrice
|
|
2
|
+
from .delivery_date import DeliveryDate
|
|
3
|
+
from .line_item import LineItem
|
|
4
|
+
from ..fieldsets import FieldSetBase
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DeliveryPosition(FieldSetBase):
|
|
8
|
+
delivery_date: DeliveryDate | None = None
|
|
9
|
+
identifier: str | None = None
|
|
10
|
+
line_item: LineItem | None = None
|
|
11
|
+
price: CalculatedPrice | None = None
|
|
12
|
+
quantity: int | None = None
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Any, Literal
|
|
2
|
+
|
|
3
|
+
from pydantic import Field
|
|
4
|
+
|
|
5
|
+
from .absolute_price_definition import AbsolutPriceDefinition
|
|
6
|
+
from .calculated_price import CalculatedPrice
|
|
7
|
+
from .delivery_information import DeliveryInformation
|
|
8
|
+
from .quantity_information import QuantityInformation
|
|
9
|
+
from .quantity_price_definition import QuantityPriceDefinition
|
|
10
|
+
from .reference_price_definition import ReferencePriceDefinition
|
|
11
|
+
from ..fieldsets import FieldSetBase
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LineItem(FieldSetBase):
|
|
15
|
+
children: list["LineItem"] | None = None
|
|
16
|
+
cover: "Media | None" = None
|
|
17
|
+
data_context_hash: str | None = None
|
|
18
|
+
data_timestamp: str | None = None
|
|
19
|
+
delivery_information: DeliveryInformation | None = None
|
|
20
|
+
description: str | None = None
|
|
21
|
+
good: bool | None = True
|
|
22
|
+
id: str
|
|
23
|
+
label: str | None = None
|
|
24
|
+
modified: bool | None = False
|
|
25
|
+
modified_by_app: bool | None = False
|
|
26
|
+
payload: dict[str, Any] | None = Field(default=None)
|
|
27
|
+
price: CalculatedPrice | None = None
|
|
28
|
+
price_definition: AbsolutPriceDefinition | QuantityPriceDefinition | ReferencePriceDefinition | None = None
|
|
29
|
+
quantity: int | None = 1
|
|
30
|
+
quantity_information: QuantityInformation | None = None
|
|
31
|
+
reference_id: str | None = None
|
|
32
|
+
removable: bool | None = False
|
|
33
|
+
stackable: bool | None = False
|
|
34
|
+
states: list[Literal["is-physical", "is-download"]] | None = None
|
|
35
|
+
type: Literal["product", "credit", "custom", "promotion", "discount", "container", "quantity"]
|
|
36
|
+
unique_identifier: str | None = None
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
from ..endpoints.store.core.media import Media # noqa: E402
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from typing import Any
|
|
2
|
+
|
|
3
|
+
from shopware_api_client.endpoints.base_fields import IdField
|
|
4
|
+
from shopware_api_client.fieldsets import FieldSetBase
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Price(FieldSetBase):
|
|
8
|
+
currency_id: IdField
|
|
9
|
+
gross: float
|
|
10
|
+
net: float
|
|
11
|
+
linked: bool
|
|
12
|
+
list_price: "Price | None" = None
|
|
13
|
+
regulation_price: "Price | None" = None
|
|
14
|
+
percentage: list[Any] | dict[str, Any] | None = None
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from .reference_price_definition import ReferencePriceDefinition
|
|
2
|
+
from .tax_rule import TaxRule
|
|
3
|
+
from ..fieldsets import FieldSetBase
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class QuantityPriceDefinition(FieldSetBase):
|
|
7
|
+
type: str = "quantitiy"
|
|
8
|
+
is_calculated: bool = True
|
|
9
|
+
reference_price_definition: ReferencePriceDefinition | None = None
|
|
10
|
+
list_price: float | None = None
|
|
11
|
+
regulation_price: float | None = None
|
|
12
|
+
price: float
|
|
13
|
+
tax_rules: list[TaxRule]
|
|
14
|
+
quantity: int = 1
|