shopware-api-client 1.1.1__tar.gz → 1.1.5__tar.gz

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.
Files changed (304) hide show
  1. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/PKG-INFO +1 -1
  2. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/pyproject.toml +1 -1
  3. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/base.py +130 -31
  4. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/commercial/b2b_components_role.py +4 -2
  5. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list.py +6 -4
  6. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list_line_item.py +4 -2
  7. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/commercial/b2b_employee.py +5 -3
  8. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/commercial/dynamic_access.py +4 -2
  9. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/acl_role.py +5 -3
  10. shopware_api_client-1.1.5/src/shopware_api_client/endpoints/admin/core/api_info.py +106 -0
  11. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/app.py +5 -3
  12. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/app_script_condition.py +4 -2
  13. shopware_api_client-1.1.5/src/shopware_api_client/endpoints/admin/core/category.py +37 -0
  14. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/cms_block.py +5 -3
  15. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/cms_page.py +8 -6
  16. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/cms_section.py +5 -3
  17. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/cms_slot.py +3 -1
  18. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/country.py +9 -7
  19. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/country_state.py +5 -3
  20. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/currency.py +9 -7
  21. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/currency_country_rounding.py +4 -2
  22. shopware_api_client-1.1.5/src/shopware_api_client/endpoints/admin/core/customer.py +48 -0
  23. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/customer_address.py +7 -5
  24. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/customer_group.py +5 -3
  25. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/customer_recovery.py +3 -1
  26. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/customer_wishlist.py +5 -3
  27. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/customer_wishlist_product.py +4 -2
  28. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/delivery_time.py +4 -2
  29. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/document.py +7 -5
  30. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/document_base_config.py +5 -3
  31. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/document_base_config_sales_channel.py +5 -3
  32. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/document_type.py +5 -3
  33. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/integration.py +4 -2
  34. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/landing_page.py +6 -4
  35. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/language.py +13 -11
  36. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/locale.py +4 -2
  37. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/main_category.py +5 -3
  38. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/media.py +22 -20
  39. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/media_folder.py +7 -5
  40. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/media_folder_configuration.py +4 -2
  41. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/media_thumbnail.py +3 -1
  42. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/media_thumbnail_size.py +4 -2
  43. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order.py +13 -13
  44. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_address.py +7 -5
  45. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_customer.py +5 -3
  46. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_delivery.py +7 -5
  47. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_delivery_position.py +4 -2
  48. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_line_item.py +11 -9
  49. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_line_item_download.py +4 -2
  50. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_transaction.py +6 -4
  51. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture_refund.py +5 -3
  52. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture_refund_position.py +4 -2
  53. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/payment_method.py +8 -6
  54. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product.py +30 -30
  55. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_configurator_setting.py +5 -3
  56. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_cross_selling.py +5 -3
  57. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_cross_selling_assigned_products.py +4 -2
  58. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_download.py +4 -2
  59. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_export.py +7 -5
  60. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_feature_set.py +3 -1
  61. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_manufacturer.py +4 -2
  62. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_media.py +5 -3
  63. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_price.py +4 -2
  64. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_review.py +6 -4
  65. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_search_keyword.py +4 -2
  66. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_stream.py +5 -3
  67. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_visibility.py +4 -2
  68. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/product_warehouse.py +4 -2
  69. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/promotion.py +9 -7
  70. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/promotion_discount.py +5 -3
  71. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/promotion_discount_prices.py +4 -2
  72. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/property_group.py +3 -1
  73. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/property_group_option.py +7 -5
  74. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/rule.py +11 -9
  75. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/rule_condition.py +6 -4
  76. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/sales_channel.py +31 -29
  77. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/sales_channel_domain.py +7 -5
  78. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/salutation.py +6 -4
  79. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/seo_url.py +4 -2
  80. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/shipping_method.py +11 -9
  81. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/shipping_method_price.py +5 -4
  82. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/state_machine.py +5 -3
  83. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/state_machine_history.py +6 -4
  84. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/state_machine_state.py +12 -10
  85. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/state_machine_transition.py +5 -3
  86. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/system_config.py +3 -1
  87. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/tag.py +10 -8
  88. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/tax.py +5 -3
  89. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/tax_rule.py +5 -3
  90. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/tax_rule_type.py +3 -1
  91. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/unit.py +3 -1
  92. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/user.py +11 -9
  93. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/warehouse.py +4 -2
  94. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/warehouse_group.py +5 -3
  95. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/warehouse_group_warehouse.py +4 -2
  96. shopware_api_client-1.1.5/src/shopware_api_client/endpoints/base_fields.py +20 -0
  97. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/relations.py +8 -8
  98. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/app.py +4 -4
  99. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/app_script_condition.py +3 -1
  100. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/b2b_components_role.py +3 -1
  101. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/b2b_components_shopping_list.py +3 -2
  102. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/b2b_components_shopping_list_line_item.py +2 -3
  103. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/category.py +1 -1
  104. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/cms_page.py +4 -1
  105. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/cms_slot.py +4 -2
  106. shopware_api_client-1.1.5/src/shopware_api_client/models/currency_country_rounding.py +12 -0
  107. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/document_base_config.py +1 -1
  108. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/landing_page.py +4 -1
  109. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order.py +5 -3
  110. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_delivery.py +3 -2
  111. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_delivery_position.py +3 -2
  112. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_line_item.py +5 -2
  113. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_transaction.py +3 -3
  114. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_transaction_capture.py +3 -3
  115. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_transaction_capture_refund.py +3 -3
  116. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_transaction_capture_refund_position.py +3 -2
  117. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product.py +5 -4
  118. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_feature_set.py +3 -1
  119. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_price.py +2 -2
  120. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_search_keyword.py +0 -1
  121. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/rule.py +1 -1
  122. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/sales_channel.py +2 -2
  123. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/state_machine_history.py +1 -2
  124. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/absolute_price_definition.py +2 -2
  125. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/calculated_price.py +2 -2
  126. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/cart.py +3 -1
  127. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/cart_price.py +3 -3
  128. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/context.py +4 -2
  129. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/line_item.py +17 -6
  130. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/price.py +3 -1
  131. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/quantity_price_definition.py +2 -2
  132. shopware_api_client-1.1.5/src/shopware_api_client/structs/reference_price_definition.py +7 -0
  133. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/variant_listing_config.py +4 -1
  134. shopware_api_client-1.1.1/src/shopware_api_client/endpoints/admin/core/api_info.py +0 -65
  135. shopware_api_client-1.1.1/src/shopware_api_client/endpoints/admin/core/category.py +0 -35
  136. shopware_api_client-1.1.1/src/shopware_api_client/endpoints/admin/core/customer.py +0 -46
  137. shopware_api_client-1.1.1/src/shopware_api_client/endpoints/base_fields.py +0 -69
  138. shopware_api_client-1.1.1/src/shopware_api_client/models/currency_country_rounding.py +0 -11
  139. shopware_api_client-1.1.1/src/shopware_api_client/structs/reference_price_definition.py +0 -7
  140. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/LICENSE +0 -0
  141. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/README.md +0 -0
  142. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/__init__.py +0 -0
  143. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/cache.py +0 -0
  144. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/client.py +0 -0
  145. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/config.py +0 -0
  146. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/__init__.py +0 -0
  147. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/__init__.py +0 -0
  148. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/commercial/__init__.py +0 -0
  149. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/__init__.py +0 -0
  150. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/custom_entity.py +0 -0
  151. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/custom_field.py +0 -0
  152. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/media_default_folder.py +0 -0
  153. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture.py +0 -0
  154. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/__init__.py +0 -0
  155. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/__init__.py +0 -0
  156. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/address.py +0 -0
  157. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/cart.py +0 -0
  158. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/category.py +0 -0
  159. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/cms_block.py +0 -0
  160. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/cms_page.py +0 -0
  161. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/cms_section.py +0 -0
  162. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/cms_slot.py +0 -0
  163. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/context.py +0 -0
  164. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/country.py +0 -0
  165. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/country_state.py +0 -0
  166. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/currency.py +0 -0
  167. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/customer.py +0 -0
  168. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/customer_group.py +0 -0
  169. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/delivery_time.py +0 -0
  170. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/document.py +0 -0
  171. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/document_type.py +0 -0
  172. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/landing_page.py +0 -0
  173. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/language.py +0 -0
  174. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/locale.py +0 -0
  175. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/main_category.py +0 -0
  176. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/media.py +0 -0
  177. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/media_thumbnail.py +0 -0
  178. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order.py +0 -0
  179. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_address.py +0 -0
  180. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_customer.py +0 -0
  181. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_delivery.py +0 -0
  182. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_delivery_position.py +0 -0
  183. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_line_item.py +0 -0
  184. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_transaction.py +0 -0
  185. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_transaction_capture.py +0 -0
  186. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_transaction_capture_refund.py +0 -0
  187. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/order_transaction_capture_refund_position.py +0 -0
  188. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/payment_method.py +0 -0
  189. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product.py +0 -0
  190. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_configurator_setting.py +0 -0
  191. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_cross_selling.py +0 -0
  192. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_download.py +0 -0
  193. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_manufacturer.py +0 -0
  194. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_media.py +0 -0
  195. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_review.py +0 -0
  196. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/product_stream.py +0 -0
  197. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/property_group.py +0 -0
  198. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/property_group_option.py +0 -0
  199. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/rule.py +0 -0
  200. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/sales_channel.py +0 -0
  201. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/sales_channel_domain.py +0 -0
  202. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/salutation.py +0 -0
  203. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/seo_url.py +0 -0
  204. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/shipping_method.py +0 -0
  205. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/shipping_method_price.py +0 -0
  206. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/state_machine_state.py +0 -0
  207. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/tag.py +0 -0
  208. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/tax.py +0 -0
  209. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/endpoints/store/core/unit.py +0 -0
  210. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/exceptions.py +0 -0
  211. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/fieldsets.py +0 -0
  212. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/logging.py +0 -0
  213. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/__init__.py +0 -0
  214. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/acl_role.py +0 -0
  215. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/b2b_employee.py +0 -0
  216. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/cms_block.py +0 -0
  217. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/cms_section.py +0 -0
  218. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/country.py +0 -0
  219. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/country_state.py +0 -0
  220. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/currency.py +0 -0
  221. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/custom_entity.py +0 -0
  222. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/custom_field.py +0 -0
  223. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/customer.py +0 -0
  224. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/customer_address.py +0 -0
  225. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/customer_group.py +0 -0
  226. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/customer_recovery.py +0 -0
  227. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/customer_wishlist.py +0 -0
  228. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/customer_wishlist_product.py +0 -0
  229. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/delivery_time.py +0 -0
  230. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/document.py +0 -0
  231. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/document_base_config_sales_channel.py +0 -0
  232. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/document_type.py +0 -0
  233. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/dynamic_access.py +0 -0
  234. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/integration.py +0 -0
  235. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/language.py +0 -0
  236. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/locale.py +0 -0
  237. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/main_category.py +0 -0
  238. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/media.py +0 -0
  239. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/media_default_folder.py +0 -0
  240. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/media_folder.py +0 -0
  241. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/media_folder_configuration.py +0 -0
  242. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/media_thumbnail.py +0 -0
  243. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/media_thumbnail_size.py +0 -0
  244. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_address.py +0 -0
  245. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_customer.py +0 -0
  246. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/order_line_item_download.py +0 -0
  247. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/payment_method.py +0 -0
  248. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_configurator_setting.py +0 -0
  249. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_cross_selling.py +0 -0
  250. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_cross_selling_assigned_products.py +0 -0
  251. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_download.py +0 -0
  252. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_export.py +0 -0
  253. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_manufacturer.py +0 -0
  254. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_media.py +0 -0
  255. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_review.py +0 -0
  256. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_stream.py +0 -0
  257. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_visibility.py +0 -0
  258. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/product_warehouse.py +0 -0
  259. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/promotion.py +0 -0
  260. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/promotion_discount.py +0 -0
  261. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/promotion_discount_prices.py +0 -0
  262. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/property_group.py +0 -0
  263. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/property_group_option.py +0 -0
  264. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/rule_condition.py +0 -0
  265. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/sales_channel_domain.py +0 -0
  266. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/salutation.py +0 -0
  267. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/seo_url.py +0 -0
  268. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/shipping_method.py +0 -0
  269. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/shipping_method_price.py +0 -0
  270. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/state_machine.py +0 -0
  271. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/state_machine_state.py +0 -0
  272. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/state_machine_transition.py +0 -0
  273. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/system_config.py +0 -0
  274. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/tag.py +0 -0
  275. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/tax.py +0 -0
  276. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/tax_rule.py +0 -0
  277. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/tax_rule_type.py +0 -0
  278. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/unit.py +0 -0
  279. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/user.py +0 -0
  280. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/warehouse.py +0 -0
  281. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/warehouse_group.py +0 -0
  282. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/models/warehouse_group_warehouse.py +0 -0
  283. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/py.typed +0 -0
  284. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/__init__.py +0 -0
  285. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/calculated_cheapest_price.py +0 -0
  286. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/calculated_tax.py +0 -0
  287. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/cash_rounding_config.py +0 -0
  288. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/delivery.py +0 -0
  289. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/delivery_date.py +0 -0
  290. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/delivery_information.py +0 -0
  291. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/delivery_position.py +0 -0
  292. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/delivery_time.py +0 -0
  293. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/language_info.py +0 -0
  294. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/list_price.py +0 -0
  295. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/measurement_units.py +0 -0
  296. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/percentage_price_definition.py +0 -0
  297. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/quantity_information.py +0 -0
  298. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/reference_price.py +0 -0
  299. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/regulation_price.py +0 -0
  300. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/sales_channel_context.py +0 -0
  301. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/shipping_location.py +0 -0
  302. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/tax_free_config.py +0 -0
  303. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/tax_rule.py +0 -0
  304. {shopware_api_client-1.1.1 → shopware_api_client-1.1.5}/src/shopware_api_client/structs/transaction.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: shopware-api-client
3
- Version: 1.1.1
3
+ Version: 1.1.5
4
4
  Summary: An api client for the Shopware API
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "shopware-api-client"
3
3
  description = " An api client for the Shopware API"
4
- version = "1.1.1"
4
+ version = "1.1.5"
5
5
  license = "MIT"
6
6
  authors = ["GWS Gesellschaft für Warenwirtschafts-Systeme mbH <ebusiness@gws.ms>"]
7
7
  readme = "README.md"
@@ -11,6 +11,7 @@ from typing import (
11
11
  AsyncGenerator,
12
12
  Callable,
13
13
  Generic,
14
+ Literal,
14
15
  Self,
15
16
  Type,
16
17
  TypeVar,
@@ -27,9 +28,9 @@ from pydantic import (
27
28
  BaseModel,
28
29
  ConfigDict,
29
30
  Field,
31
+ PydanticUserError,
30
32
  ValidationError,
31
33
  model_serializer,
32
- PydanticUserError,
33
34
  )
34
35
  from pydantic.alias_generators import to_camel
35
36
  from pydantic.main import IncEx
@@ -393,7 +394,16 @@ class EndpointMixin(Generic[EndpointClass]):
393
394
  return endpoint
394
395
 
395
396
 
396
- class ApiModelBase(BaseModel):
397
+ class ApiModelBaseFields(BaseModel):
398
+ id: "IdField | None" = None
399
+ version_id: IdField | None = None
400
+ translated: dict[str, Any] | list[Any] | None = None
401
+ created_at: AwareDatetime | None = Field(default_factory=lambda: datetime.now(UTC), exclude=True)
402
+ updated_at: AwareDatetime | None = Field(default=None, exclude=True)
403
+ extensions: dict[str, Any] | None = Field(default=None, exclude=True)
404
+
405
+
406
+ class ApiModelBase(ApiModelBaseFields):
397
407
  model_config = ConfigDict(
398
408
  alias_generator=AliasGenerator(
399
409
  validation_alias=lambda field_name: AliasChoices(field_name, to_camel(field_name)),
@@ -402,12 +412,6 @@ class ApiModelBase(BaseModel):
402
412
  validate_assignment=True,
403
413
  )
404
414
 
405
- id: "IdField | None" = None
406
- version_id: IdField | None = None
407
- translated: dict[str, Any] | list[Any] | None = None
408
- created_at: AwareDatetime | None = Field(default_factory=lambda: datetime.now(UTC), exclude=True)
409
- updated_at: AwareDatetime | None = Field(default=None, exclude=True)
410
-
411
415
  def __init__(self, client: ClientBase | None = None, **kwargs: dict[str, Any]) -> None:
412
416
  self._insert_translations(
413
417
  data=kwargs,
@@ -415,10 +419,10 @@ class ApiModelBase(BaseModel):
415
419
  )
416
420
 
417
421
  try:
418
- super().__init__(**kwargs)
422
+ BaseModel.__init__(self, **kwargs)
419
423
  except PydanticUserError:
420
424
  self.model_rebuild()
421
- super().__init__(**kwargs)
425
+ BaseModel.__init__(self, **kwargs)
422
426
 
423
427
  # Pydantic doesn't do a good job at calling the parents, so we have to help
424
428
  if isinstance(self, EndpointMixin):
@@ -601,7 +605,10 @@ class EndpointSearchMixin(Generic[ModelClass]):
601
605
  if name == getattr(self.model_class, "_identifier").get_default():
602
606
  return name
603
607
 
604
- field = self.model_class.model_fields[name]
608
+ if name in self.model_class.model_fields:
609
+ field = self.model_class.model_fields[name]
610
+ else:
611
+ return cast(str, to_camel(name))
605
612
 
606
613
  if get_origin(field.annotation) in [ForeignRelation, ManyRelation]:
607
614
  return cast(str, to_camel(name))
@@ -762,7 +769,19 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
762
769
 
763
770
  return result_list
764
771
 
765
- async def all(self) -> list[AdminModelClass] | list[dict[str, Any]]:
772
+ @overload
773
+ async def all(self, raw: Literal[False]) -> list[AdminModelClass]: ...
774
+
775
+ @overload
776
+ async def all(self, raw: Literal[True]) -> list[dict[str, Any]]: ...
777
+
778
+ @overload
779
+ async def all(self, raw: bool) -> list[AdminModelClass] | list[dict[str, Any]]: ...
780
+
781
+ @overload
782
+ async def all(self) -> list[AdminModelClass]: ...
783
+
784
+ async def all(self, raw: bool = False) -> list[AdminModelClass] | list[dict[str, Any]]:
766
785
  data = self._get_data_dict()
767
786
 
768
787
  if self._is_search_query():
@@ -774,22 +793,51 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
774
793
 
775
794
  self._reset_endpoint()
776
795
 
777
- if self.raw:
796
+ if self.raw or raw:
778
797
  return result_data
779
798
 
780
799
  return self._parse_response(result_data)
781
800
 
782
- async def get(self, pk: str) -> AdminModelClass | dict[str, Any]:
801
+ @overload
802
+ async def get(self, pk: str, raw: Literal[False]) -> AdminModelClass: ...
803
+
804
+ @overload
805
+ async def get(self, pk: str, raw: Literal[True]) -> dict[str, Any]: ...
806
+
807
+ @overload
808
+ async def get(self, pk: str) -> AdminModelClass: ...
809
+
810
+ async def get(self, pk: str, raw: bool = False) -> AdminModelClass | dict[str, Any]:
783
811
  result = await self.client.get(f"{self.path}/{pk}")
784
812
  result_data: dict[str, Any] = self._parse_data_single(result.json())
785
813
 
786
- if self.raw:
814
+ if self.raw or raw:
787
815
  return result_data
788
816
 
789
817
  return self._parse_response(result_data)
790
818
 
819
+ @overload
820
+ async def update(
821
+ self, pk: str, obj: AdminModelClass | dict[str, Any], update_fields: IncEx | None, raw: Literal[False]
822
+ ) -> AdminModelClass | None: ...
823
+
824
+ @overload
791
825
  async def update(
792
- self, pk: str, obj: AdminModelClass | dict[str, Any], update_fields: IncEx | None = None
826
+ self, pk: str, obj: AdminModelClass | dict[str, Any], update_fields: IncEx | None, raw: Literal[True]
827
+ ) -> dict[str, Any] | None: ...
828
+
829
+ @overload
830
+ async def update(
831
+ self, pk: str, obj: AdminModelClass | dict[str, Any], update_fields: IncEx | None
832
+ ) -> AdminModelClass | None: ...
833
+
834
+ @overload
835
+ async def update(
836
+ self, pk: str, obj: AdminModelClass | dict[str, Any]
837
+ ) -> AdminModelClass | None: ...
838
+
839
+ async def update(
840
+ self, pk: str, obj: AdminModelClass | dict[str, Any], update_fields: IncEx | None = None, raw: bool = False
793
841
  ) -> AdminModelClass | dict[str, Any] | None:
794
842
  if isinstance(obj, ApiModelBase):
795
843
  data = obj.model_dump_json(by_alias=True, include=update_fields)
@@ -803,14 +851,23 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
803
851
 
804
852
  result_data: dict[str, Any] = self._parse_data_single(result.json())
805
853
 
806
- if self.raw:
854
+ if self.raw or raw:
807
855
  return result_data
808
856
 
809
857
  return self._parse_response(result_data)
810
858
 
811
- async def first(self) -> AdminModelClass | dict[str, Any] | None:
859
+ @overload
860
+ async def first(self, raw: Literal[False]) -> AdminModelClass | None: ...
861
+
862
+ @overload
863
+ async def first(self, raw: Literal[True]) -> dict[str, Any] | None: ...
864
+
865
+ @overload
866
+ async def first(self) -> AdminModelClass | None: ...
867
+
868
+ async def first(self, raw: bool = False) -> AdminModelClass | dict[str, Any] | None:
812
869
  self._limit = 1
813
- result = await self.all()
870
+ result = await self.all(raw=raw)
814
871
 
815
872
  self._reset_endpoint()
816
873
 
@@ -820,7 +877,19 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
820
877
 
821
878
  return result[0]
822
879
 
823
- async def create(self, obj: AdminModelClass | dict[str, Any]) -> AdminModelClass | dict[str, Any] | None:
880
+ @overload
881
+ async def create(self, obj: AdminModelClass | dict[str, Any], raw: Literal[False]) -> AdminModelClass | None: ...
882
+
883
+ @overload
884
+ async def create(self, obj: AdminModelClass | dict[str, Any], raw: Literal[True]) -> dict[str, Any] | None: ...
885
+
886
+ @overload
887
+ async def create(self, obj: AdminModelClass | dict[str, Any], raw: bool) -> AdminModelClass | dict[str, Any] | None: ...
888
+
889
+ @overload
890
+ async def create(self, obj: AdminModelClass | dict[str, Any]) -> AdminModelClass | None: ...
891
+
892
+ async def create(self, obj: AdminModelClass | dict[str, Any], raw: bool = False) -> AdminModelClass | dict[str, Any] | None:
824
893
  if isinstance(obj, ApiModelBase):
825
894
  data = obj.model_dump_json(by_alias=True)
826
895
  else:
@@ -833,7 +902,7 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
833
902
 
834
903
  result_data: dict[str, Any] = self._parse_data_single(result.json())
835
904
 
836
- if self.raw:
905
+ if self.raw or raw:
837
906
  return result_data
838
907
 
839
908
  return self._parse_response(result_data)
@@ -846,12 +915,24 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
846
915
 
847
916
  return False
848
917
 
849
- async def get_related(self, parent: AdminModelClass, relation: str) -> list[AdminModelClass] | list[dict[str, Any]]:
918
+ @overload
919
+ async def get_related(self, parent: AdminModel[Any], relation: str, raw: Literal[False]) -> list[AdminModelClass]: ...
920
+
921
+ @overload
922
+ async def get_related(self, parent: AdminModel[Any], relation: str, raw: Literal[True]) -> list[dict[str, Any]]: ...
923
+
924
+ @overload
925
+ async def get_related(self, parent: AdminModel[Any], relation: str, raw: bool) -> list[AdminModelClass] | list[dict[str, Any]]: ...
926
+
927
+ @overload
928
+ async def get_related(self, parent: AdminModel[Any], relation: str) -> list[AdminModelClass]: ...
929
+
930
+ async def get_related(self, parent: AdminModel[Any], relation: str, raw: bool = False) -> list[AdminModelClass] | list[dict[str, Any]]:
850
931
  parent_endpoint = parent._get_endpoint()
851
932
  result = await self.client.get(f"{parent_endpoint.path}/{parent.id}/{relation}")
852
933
  result_data: list[dict[str, Any]] = self._parse_data(result.json())
853
934
 
854
- if self.raw:
935
+ if self.raw or raw:
855
936
  return result_data
856
937
 
857
938
  return self._parse_response(result_data)
@@ -866,7 +947,7 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
866
947
  ) -> dict[str, Any]:
867
948
  return await self.client.bulk_delete(name=self.name, objs=objs, fail_silently=fail_silently, **request_kwargs)
868
949
 
869
- async def iter(self, batch_size: int = 100) -> AsyncGenerator[AdminModelClass | dict[str, Any], None]:
950
+ async def iter(self, batch_size: int = 100, raw: bool = False) -> AsyncGenerator[AdminModelClass | dict[str, Any], None]:
870
951
  self._limit = batch_size
871
952
  data = self._get_data_dict()
872
953
  page = 1
@@ -887,7 +968,7 @@ class AdminEndpoint(EndpointBase, EndpointSearchMixin, Generic[AdminModelClass])
887
968
  result_data: list[dict[str, Any]] = self._parse_data(result_dict)
888
969
 
889
970
  for entry in result_data:
890
- if self.raw:
971
+ if self.raw or raw:
891
972
  yield entry
892
973
  else:
893
974
  yield self._parse_response(entry)
@@ -951,19 +1032,28 @@ class StoreEndpoint(EndpointBase):
951
1032
  class StoreSearchEndpoint(StoreEndpoint, EndpointSearchMixin, Generic[ModelClass]):
952
1033
  path: str
953
1034
 
954
- async def all(self) -> list[ModelClass] | list[dict[str, Any]]:
1035
+ @overload
1036
+ async def all(self, raw: Literal[False]) -> list[ModelClass]: ...
1037
+
1038
+ @overload
1039
+ async def all(self, raw: Literal[True]) -> list[dict[str, Any]]: ...
1040
+
1041
+ @overload
1042
+ async def all(self, raw: bool) -> list[ModelClass] | list[dict[str, Any]]: ...
1043
+
1044
+ async def all(self, raw: bool = False) -> list[ModelClass] | list[dict[str, Any]]:
955
1045
  data = self._get_data_dict()
956
1046
 
957
1047
  result = await self.client.post(self.path, json=data)
958
1048
 
959
1049
  result_data: list[dict[str, Any]] = result.json().get("elements", [])
960
1050
 
961
- if self.raw:
1051
+ if self.raw or raw:
962
1052
  return result_data
963
1053
 
964
1054
  return self._parse_response(result_data, cls=self.model_class)
965
1055
 
966
- async def iter(self, batch_size: int = 100) -> AsyncGenerator[ModelClass | dict[str, Any], None]:
1056
+ async def iter(self, batch_size: int = 100, raw: bool = False) -> AsyncGenerator[ModelClass | dict[str, Any], None]:
967
1057
  self._limit = batch_size
968
1058
  data = self._get_data_dict()
969
1059
  page = 1
@@ -976,7 +1066,7 @@ class StoreSearchEndpoint(StoreEndpoint, EndpointSearchMixin, Generic[ModelClass
976
1066
  result_data: list[dict[str, Any]] = self._parse_data(result_dict)
977
1067
 
978
1068
  for entry in result_data:
979
- if self.raw:
1069
+ if self.raw or raw:
980
1070
  yield entry
981
1071
  else:
982
1072
  yield self._parse_response(entry, cls=self.model_class)
@@ -986,9 +1076,18 @@ class StoreSearchEndpoint(StoreEndpoint, EndpointSearchMixin, Generic[ModelClass
986
1076
  else:
987
1077
  break
988
1078
 
989
- async def first(self) -> ModelClass | dict[str, Any] | None:
1079
+ @overload
1080
+ async def first(self, raw: Literal[False]) -> ModelClass | None: ...
1081
+
1082
+ @overload
1083
+ async def first(self, raw: Literal[True]) -> dict[str, Any] | None: ...
1084
+
1085
+ @overload
1086
+ async def first(self, raw: bool) -> ModelClass | dict[str, Any] | None: ...
1087
+
1088
+ async def first(self, raw: bool = False) -> ModelClass | dict[str, Any] | None:
990
1089
  self._limit = 1
991
- result = await self.all()
1090
+ result = await self.all(raw=raw)
992
1091
 
993
1092
  self._reset_endpoint()
994
1093
 
@@ -1,11 +1,13 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminEndpoint, AdminModel
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.b2b_components_role import B2bComponentsRoleBase
4
6
 
5
7
 
6
8
  class B2bComponentsRole(B2bComponentsRoleBase, AdminModel["B2bComponentsRoleEndpoint"]):
7
- employees: ManyRelation["B2bEmployee"]
8
- business_partner_customer: ForeignRelation["Customer"]
9
+ employees: ManyRelation["B2bEmployee"] = Field(default=...)
10
+ business_partner_customer: ForeignRelation["Customer"] = Field(default=...)
9
11
 
10
12
 
11
13
  class B2bComponentsRoleEndpoint(AdminEndpoint[B2bComponentsRole]):
@@ -1,13 +1,15 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminModel, AdminEndpoint
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.b2b_components_shopping_list import B2bComponentsShoppingListBase
4
6
 
5
7
 
6
8
  class B2bComponentsShoppingList(B2bComponentsShoppingListBase, AdminModel["B2bComponentsShoppingListEndpoint"]):
7
- sales_channel: ForeignRelation["SalesChannel"]
8
- line_items: ManyRelation["B2bComponentsShoppingListLineItem"]
9
- customer: ForeignRelation["Customer"]
10
- employee: ForeignRelation["B2bEmployee"]
9
+ sales_channel: ForeignRelation["SalesChannel"] = Field(default=...)
10
+ line_items: ManyRelation["B2bComponentsShoppingListLineItem"] = Field(default=...)
11
+ customer: ForeignRelation["Customer"] = Field(default=...)
12
+ employee: ForeignRelation["B2bEmployee"] = Field(default=...)
11
13
 
12
14
 
13
15
  class B2bComponentsShoppingListEndpoint(AdminEndpoint[B2bComponentsShoppingList]):
@@ -1,3 +1,5 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminModel, AdminEndpoint
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation
3
5
  from shopware_api_client.models.b2b_components_shopping_list_line_item import B2bComponentsShoppingListLineItemBase
@@ -6,8 +8,8 @@ from shopware_api_client.models.b2b_components_shopping_list_line_item import B2
6
8
  class B2bComponentsShoppingListLineItem(
7
9
  B2bComponentsShoppingListLineItemBase, AdminModel["B2bComponentsShoppingListLineItemEndpoint"]
8
10
  ):
9
- shopping_list: ForeignRelation["B2bComponentsShoppingList"]
10
- product: ForeignRelation["Product"]
11
+ shopping_list: ForeignRelation["B2bComponentsShoppingList"] = Field(default=...)
12
+ product: ForeignRelation["Product"] = Field(default=...)
11
13
 
12
14
 
13
15
  class B2bComponentsShoppingListLineItemEndpoint(AdminEndpoint[B2bComponentsShoppingListLineItem]):
@@ -1,12 +1,14 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminEndpoint, AdminModel
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation
3
5
  from shopware_api_client.models.b2b_employee import B2bEmployeeBase
4
6
 
5
7
 
6
8
  class B2bEmployee(B2bEmployeeBase, AdminModel["B2bEmployeeEndpoint"]):
7
- business_partner_customer: ForeignRelation["Customer"]
8
- role: ForeignRelation["B2bComponentsRole"]
9
- language: ForeignRelation["Language"]
9
+ business_partner_customer: ForeignRelation["Customer"] = Field(default=...)
10
+ role: ForeignRelation["B2bComponentsRole"] = Field(default=...)
11
+ language: ForeignRelation["Language"] = Field(default=...)
10
12
 
11
13
 
12
14
  class B2bEmployeeEndpoint(AdminEndpoint[B2bEmployee]):
@@ -1,11 +1,13 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminEndpoint, AdminModel
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation
3
5
  from shopware_api_client.models.dynamic_access import DynamicAccessBase
4
6
 
5
7
 
6
8
  class DynamicAccess(DynamicAccessBase, AdminModel["DynamicAccessEndpoint"]):
7
- product: ForeignRelation["Product"]
8
- rule: ForeignRelation["Rule"]
9
+ product: ForeignRelation["Product"] = Field(default=...)
10
+ rule: ForeignRelation["Rule"] = Field(default=...)
9
11
 
10
12
 
11
13
  class DynamicAccessEndpoint(AdminEndpoint[DynamicAccess]):
@@ -1,12 +1,14 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminEndpoint, AdminModel
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.acl_role import AclRoleBase
4
6
 
5
7
 
6
8
  class AclRole(AclRoleBase, AdminModel["AclRoleEndpoint"]):
7
- users: ManyRelation["User"]
8
- app: ForeignRelation["App"]
9
- integrations: ManyRelation["Integration"]
9
+ users: ManyRelation["User"] = Field(default=...)
10
+ app: ForeignRelation["App"] = Field(default=...)
11
+ integrations: ManyRelation["Integration"] = Field(default=...)
10
12
 
11
13
 
12
14
  class AclRoleEndpoint(AdminEndpoint[AclRole]):
@@ -0,0 +1,106 @@
1
+ from typing import Any, Literal, overload
2
+
3
+ from pydantic import BaseModel, Field
4
+ from pydantic.main import IncEx
5
+
6
+ from shopware_api_client.base import AdminEndpoint, AdminModel
7
+ from shopware_api_client.exceptions import SWAPIMethodNotAvailable
8
+
9
+
10
+ class Bundle(BaseModel):
11
+ css: list[str]
12
+ js: list[str]
13
+ baseUrl: str | None = None
14
+ type: str
15
+
16
+
17
+ class AppBundle(BaseModel):
18
+ active: bool
19
+ integrationId: str
20
+ type: str
21
+ baseUrl: str
22
+ permissions: dict[str, list[str]]
23
+ version: str
24
+ name: str
25
+
26
+
27
+ class ApiInfo(AdminModel["ApiInfoEndpoint"]):
28
+ _identifier = "api_info"
29
+
30
+ version: str
31
+ version_revision: str
32
+ admin_worker: dict[str, Any]
33
+ bundles: dict[str, Bundle | AppBundle]
34
+ settings: dict[str, Any]
35
+ license_toggles: dict[str, bool] | None = Field(default=None)
36
+
37
+
38
+ class ApiInfoEndpoint(AdminEndpoint[ApiInfo]):
39
+ name = "adminWorker"
40
+ path = "/_info/config"
41
+ model_class = ApiInfo
42
+
43
+ async def delete(self, pk: str) -> bool:
44
+ raise SWAPIMethodNotAvailable()
45
+
46
+ @overload
47
+ async def get(self, pk: str, raw: Literal[False]) -> ApiInfo: ...
48
+
49
+ @overload
50
+ async def get(self, pk: str, raw: Literal[True]) -> dict[str, Any]: ...
51
+
52
+ @overload
53
+ async def get(self, pk: str) -> ApiInfo: ...
54
+
55
+ async def get(self, pk: str, raw: bool = False) -> ApiInfo | dict[str, Any]:
56
+ raise SWAPIMethodNotAvailable()
57
+
58
+ @overload
59
+ async def create(self, obj: ApiInfo | dict[str, Any], raw: Literal[False]) -> ApiInfo | None: ...
60
+
61
+ @overload
62
+ async def create(self, obj: ApiInfo | dict[str, Any], raw: Literal[True]) -> dict[str, Any] | None: ...
63
+
64
+ @overload
65
+ async def create(self, obj: ApiInfo | dict[str, Any], raw: bool) -> ApiInfo | dict[str, Any] | None: ...
66
+
67
+ @overload
68
+ async def create(self, obj: ApiInfo | dict[str, Any]) -> ApiInfo | None: ...
69
+
70
+ async def create(self, obj: ApiInfo | dict[str, Any], raw: bool = False) -> ApiInfo | dict[str, Any] | None:
71
+ raise SWAPIMethodNotAvailable()
72
+
73
+ @overload
74
+ async def update(
75
+ self, pk: str, obj: ApiInfo | dict[str, Any], update_fields: IncEx | None, raw: Literal[False]
76
+ ) -> ApiInfo | None: ...
77
+
78
+ @overload
79
+ async def update(
80
+ self, pk: str, obj: ApiInfo | dict[str, Any], update_fields: IncEx | None, raw: Literal[True]
81
+ ) -> dict[str, Any] | None: ...
82
+
83
+ @overload
84
+ async def update(
85
+ self, pk: str, obj: ApiInfo | dict[str, Any], update_fields: IncEx | None
86
+ ) -> ApiInfo | None: ...
87
+
88
+ @overload
89
+ async def update(
90
+ self, pk: str, obj: ApiInfo | dict[str, Any]
91
+ ) -> ApiInfo | None: ...
92
+
93
+ async def update(
94
+ self, pk: str, obj: ApiInfo | dict[str, Any], update_fields: IncEx | None = None, raw: bool = False
95
+ ) -> ApiInfo | dict[str, Any] | None:
96
+ raise SWAPIMethodNotAvailable()
97
+
98
+ async def bulk_upsert(
99
+ self, objs: list[ApiInfo] | list[dict[str, Any]], fail_silently: bool = False, **request_kwargs: Any
100
+ ) -> dict[str, Any]:
101
+ raise SWAPIMethodNotAvailable()
102
+
103
+ async def bulk_delete(
104
+ self, objs: list[ApiInfo] | list[dict[str, Any]], fail_silently: bool = False, **request_kwargs: Any
105
+ ) -> dict[str, Any]:
106
+ raise SWAPIMethodNotAvailable()
@@ -1,12 +1,14 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminEndpoint, AdminModel
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.app import AppBase
4
6
 
5
7
 
6
8
  class App(AppBase, AdminModel["AppEndpoint"]):
7
- app: ForeignRelation["App"]
8
- acl_roles: ManyRelation["AclRole"]
9
- integrations: ManyRelation["Integration"]
9
+ app: ForeignRelation["App"] = Field(default=...)
10
+ acl_roles: ManyRelation["AclRole"] = Field(default=...)
11
+ integrations: ManyRelation["Integration"] = Field(default=...)
10
12
 
11
13
 
12
14
  class AppEndpoint(AdminEndpoint[App]):
@@ -1,11 +1,13 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminEndpoint, AdminModel
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.app_script_condition import AppScriptConditionBase
4
6
 
5
7
 
6
8
  class AppScriptCondition(AppScriptConditionBase, AdminModel["AppScriptConditionEndpoint"]):
7
- app: ForeignRelation["App"]
8
- rule_conditions: ManyRelation["RuleCondition"]
9
+ app: ForeignRelation["App"] = Field(default=...)
10
+ rule_conditions: ManyRelation["RuleCondition"] = Field(default=...)
9
11
 
10
12
 
11
13
  class AppScriptConditionEndpoint(AdminEndpoint[AppScriptCondition]):
@@ -0,0 +1,37 @@
1
+ from pydantic import Field
2
+
3
+ from shopware_api_client.base import AdminEndpoint, AdminModel
4
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
5
+ from shopware_api_client.models.category import CategoryBase
6
+
7
+
8
+ class Category(CategoryBase, AdminModel["CategoryEndpoint"]):
9
+ parent: ForeignRelation["Category"] = Field(default=...)
10
+ children: ManyRelation["Category"] = Field(default=...)
11
+ media: ForeignRelation["Media"] = Field(default=...)
12
+ products: ManyRelation["Product"] = Field(default=...)
13
+ nested_products: ManyRelation["Product"] = Field(default=...)
14
+ tags: ManyRelation["Tag"] = Field(default=...)
15
+ cms_page: ForeignRelation["CmsPage"] = Field(default=...)
16
+ product_stream: ForeignRelation["ProductStream"] = Field(default=...)
17
+ navigation_sales_channels: ManyRelation["SalesChannel"] = Field(default=...)
18
+ footer_sales_channels: ManyRelation["SalesChannel"] = Field(default=...)
19
+ service_sales_channels: ManyRelation["SalesChannel"] = Field(default=...)
20
+ main_categories: ManyRelation["MainCategory"] = Field(default=...)
21
+ seo_urls: ManyRelation["SeoUrl"] = Field(default=...)
22
+
23
+
24
+ class CategoryEndpoint(AdminEndpoint[Category]):
25
+ name = "category"
26
+ path = "/category"
27
+ model_class = Category
28
+
29
+
30
+ from .cms_page import CmsPage # noqa: E402
31
+ from .main_category import MainCategory # noqa: E402
32
+ from .media import Media # noqa: E402
33
+ from .product import Product # noqa: E402
34
+ from .product_stream import ProductStream # noqa: E402
35
+ from .sales_channel import SalesChannel # noqa: E402
36
+ from .seo_url import SeoUrl # noqa: E402
37
+ from .tag import Tag # noqa: E402
@@ -1,12 +1,14 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminModel, AdminEndpoint
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.cms_block import CmsBlockBase
4
6
 
5
7
 
6
8
  class CmsBlock(CmsBlockBase, AdminModel["CmsBlockEndpoint"]):
7
- section: ForeignRelation["CmsSection"]
8
- background_media: ForeignRelation["Media"]
9
- slots: ManyRelation["CmsSlot"]
9
+ section: ForeignRelation["CmsSection"] = Field(default=...)
10
+ background_media: ForeignRelation["Media"] = Field(default=...)
11
+ slots: ManyRelation["CmsSlot"] = Field(default=...)
10
12
 
11
13
 
12
14
  class CmsBlockEndpoint(AdminEndpoint[CmsBlock]):
@@ -1,15 +1,17 @@
1
+ from pydantic import Field
2
+
1
3
  from shopware_api_client.base import AdminModel, AdminEndpoint
2
4
  from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
5
  from shopware_api_client.models.cms_page import CmsPageBase
4
6
 
5
7
 
6
8
  class CmsPage(CmsPageBase, AdminModel["CmsPageEndpoint"]):
7
- sections: ManyRelation["CmsSection"]
8
- preview_media: ForeignRelation["Media"]
9
- categories: ManyRelation["Category"]
10
- landing_pages: ManyRelation["LandingPage"]
11
- home_sales_channels: ManyRelation["SalesChannel"]
12
- products: ManyRelation["Product"]
9
+ sections: ManyRelation["CmsSection"] = Field(default=...)
10
+ preview_media: ForeignRelation["Media"] = Field(default=...)
11
+ categories: ManyRelation["Category"] = Field(default=...)
12
+ landing_pages: ManyRelation["LandingPage"] = Field(default=...)
13
+ home_sales_channels: ManyRelation["SalesChannel"] = Field(default=...)
14
+ products: ManyRelation["Product"] = Field(default=...)
13
15
 
14
16
 
15
17
  class CmsPageEndpoint(AdminEndpoint[CmsPage]):