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.
Files changed (290) hide show
  1. shopware_api_client/base.py +338 -176
  2. shopware_api_client/cache.py +5 -10
  3. shopware_api_client/endpoints/admin/__init__.py +11 -4
  4. shopware_api_client/endpoints/admin/commercial/b2b_components_role.py +5 -20
  5. shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list.py +5 -25
  6. shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list_line_item.py +7 -24
  7. shopware_api_client/endpoints/admin/commercial/b2b_employee.py +5 -27
  8. shopware_api_client/endpoints/admin/commercial/dynamic_access.py +9 -19
  9. shopware_api_client/endpoints/admin/core/acl_role.py +5 -19
  10. shopware_api_client/endpoints/admin/core/api_info.py +11 -12
  11. shopware_api_client/endpoints/admin/core/app.py +5 -42
  12. shopware_api_client/endpoints/admin/core/app_script_condition.py +5 -24
  13. shopware_api_client/endpoints/admin/core/category.py +5 -56
  14. shopware_api_client/endpoints/admin/core/cms_block.py +5 -34
  15. shopware_api_client/endpoints/admin/core/cms_page.py +5 -26
  16. shopware_api_client/endpoints/admin/core/cms_section.py +5 -35
  17. shopware_api_client/endpoints/admin/core/cms_slot.py +5 -31
  18. shopware_api_client/endpoints/admin/core/country.py +5 -37
  19. shopware_api_client/endpoints/admin/core/country_state.py +5 -23
  20. shopware_api_client/endpoints/admin/core/currency.py +5 -33
  21. shopware_api_client/endpoints/admin/core/currency_country_rounding.py +5 -20
  22. shopware_api_client/endpoints/admin/core/custom_entity.py +4 -26
  23. shopware_api_client/endpoints/admin/core/custom_field.py +4 -14
  24. shopware_api_client/endpoints/admin/core/customer.py +5 -57
  25. shopware_api_client/endpoints/admin/core/customer_address.py +6 -33
  26. shopware_api_client/endpoints/admin/core/customer_group.py +5 -24
  27. shopware_api_client/endpoints/admin/core/customer_recovery.py +5 -16
  28. shopware_api_client/endpoints/admin/core/customer_wishlist.py +5 -19
  29. shopware_api_client/endpoints/admin/core/customer_wishlist_product.py +5 -19
  30. shopware_api_client/endpoints/admin/core/delivery_time.py +5 -21
  31. shopware_api_client/endpoints/admin/core/document.py +5 -28
  32. shopware_api_client/endpoints/admin/core/document_base_config.py +5 -27
  33. shopware_api_client/endpoints/admin/core/document_base_config_sales_channel.py +7 -20
  34. shopware_api_client/endpoints/admin/core/document_type.py +5 -19
  35. shopware_api_client/endpoints/admin/core/integration.py +5 -25
  36. shopware_api_client/endpoints/admin/core/landing_page.py +5 -28
  37. shopware_api_client/endpoints/admin/core/language.py +5 -21
  38. shopware_api_client/endpoints/admin/core/locale.py +5 -20
  39. shopware_api_client/endpoints/admin/core/main_category.py +5 -19
  40. shopware_api_client/endpoints/admin/core/media.py +25 -37
  41. shopware_api_client/endpoints/admin/core/media_default_folder.py +4 -17
  42. shopware_api_client/endpoints/admin/core/media_folder.py +5 -26
  43. shopware_api_client/endpoints/admin/core/media_folder_configuration.py +5 -21
  44. shopware_api_client/endpoints/admin/core/media_thumbnail.py +5 -26
  45. shopware_api_client/endpoints/admin/core/media_thumbnail_size.py +7 -18
  46. shopware_api_client/endpoints/admin/core/order.py +12 -48
  47. shopware_api_client/endpoints/admin/core/order_address.py +6 -34
  48. shopware_api_client/endpoints/admin/core/order_customer.py +6 -29
  49. shopware_api_client/endpoints/admin/core/order_delivery.py +5 -30
  50. shopware_api_client/endpoints/admin/core/order_delivery_position.py +5 -26
  51. shopware_api_client/endpoints/admin/core/order_line_item.py +7 -44
  52. shopware_api_client/endpoints/admin/core/order_line_item_download.py +5 -23
  53. shopware_api_client/endpoints/admin/core/order_transaction.py +5 -25
  54. shopware_api_client/endpoints/admin/core/order_transaction_capture.py +5 -27
  55. shopware_api_client/endpoints/admin/core/order_transaction_capture_refund.py +7 -28
  56. shopware_api_client/endpoints/admin/core/order_transaction_capture_refund_position.py +8 -29
  57. shopware_api_client/endpoints/admin/core/payment_method.py +5 -52
  58. shopware_api_client/endpoints/admin/core/product.py +24 -90
  59. shopware_api_client/endpoints/admin/core/product_configurator_setting.py +5 -26
  60. shopware_api_client/endpoints/admin/core/product_cross_selling.py +5 -27
  61. shopware_api_client/endpoints/admin/core/product_cross_selling_assigned_products.py +7 -21
  62. shopware_api_client/endpoints/admin/core/product_download.py +5 -22
  63. shopware_api_client/endpoints/admin/core/product_export.py +5 -34
  64. shopware_api_client/endpoints/admin/core/product_feature_set.py +5 -19
  65. shopware_api_client/endpoints/admin/core/product_manufacturer.py +5 -23
  66. shopware_api_client/endpoints/admin/core/product_media.py +5 -22
  67. shopware_api_client/endpoints/admin/core/product_price.py +5 -24
  68. shopware_api_client/endpoints/admin/core/product_review.py +5 -29
  69. shopware_api_client/endpoints/admin/core/product_search_keyword.py +5 -20
  70. shopware_api_client/endpoints/admin/core/product_stream.py +5 -23
  71. shopware_api_client/endpoints/admin/core/product_visibility.py +5 -18
  72. shopware_api_client/endpoints/admin/core/product_warehouse.py +5 -17
  73. shopware_api_client/endpoints/admin/core/promotion.py +5 -38
  74. shopware_api_client/endpoints/admin/core/promotion_discount.py +5 -24
  75. shopware_api_client/endpoints/admin/core/promotion_discount_prices.py +5 -19
  76. shopware_api_client/endpoints/admin/core/property_group.py +5 -24
  77. shopware_api_client/endpoints/admin/core/property_group_option.py +5 -23
  78. shopware_api_client/endpoints/admin/core/rule.py +5 -24
  79. shopware_api_client/endpoints/admin/core/rule_condition.py +5 -23
  80. shopware_api_client/endpoints/admin/core/sales_channel.py +6 -53
  81. shopware_api_client/endpoints/admin/core/sales_channel_domain.py +5 -23
  82. shopware_api_client/endpoints/admin/core/salutation.py +5 -20
  83. shopware_api_client/endpoints/admin/core/seo_url.py +5 -30
  84. shopware_api_client/endpoints/admin/core/shipping_method.py +8 -30
  85. shopware_api_client/endpoints/admin/core/shipping_method_price.py +20 -0
  86. shopware_api_client/endpoints/admin/core/state_machine.py +5 -21
  87. shopware_api_client/endpoints/admin/core/state_machine_history.py +5 -25
  88. shopware_api_client/endpoints/admin/core/state_machine_state.py +6 -20
  89. shopware_api_client/endpoints/admin/core/state_machine_transition.py +5 -23
  90. shopware_api_client/endpoints/admin/core/system_config.py +5 -19
  91. shopware_api_client/endpoints/admin/core/tag.py +5 -14
  92. shopware_api_client/endpoints/admin/core/tax.py +5 -21
  93. shopware_api_client/endpoints/admin/core/tax_rule.py +5 -22
  94. shopware_api_client/endpoints/admin/core/tax_rule_type.py +5 -21
  95. shopware_api_client/endpoints/admin/core/unit.py +5 -19
  96. shopware_api_client/endpoints/admin/core/user.py +5 -31
  97. shopware_api_client/endpoints/admin/core/warehouse.py +5 -15
  98. shopware_api_client/endpoints/admin/core/warehouse_group.py +6 -18
  99. shopware_api_client/endpoints/admin/core/warehouse_group_warehouse.py +6 -18
  100. shopware_api_client/endpoints/base_fields.py +13 -22
  101. shopware_api_client/endpoints/relations.py +36 -24
  102. shopware_api_client/endpoints/store/__init__.py +37 -4
  103. shopware_api_client/endpoints/store/core/address.py +51 -68
  104. shopware_api_client/endpoints/store/core/cart.py +39 -85
  105. shopware_api_client/endpoints/store/core/category.py +16 -0
  106. shopware_api_client/endpoints/store/core/cms_block.py +10 -0
  107. shopware_api_client/endpoints/store/core/cms_page.py +12 -0
  108. shopware_api_client/endpoints/store/core/cms_section.py +12 -0
  109. shopware_api_client/endpoints/store/core/cms_slot.py +8 -0
  110. shopware_api_client/endpoints/store/core/context.py +58 -0
  111. shopware_api_client/endpoints/store/core/country.py +15 -0
  112. shopware_api_client/endpoints/store/core/country_state.py +19 -0
  113. shopware_api_client/endpoints/store/core/currency.py +12 -0
  114. shopware_api_client/endpoints/store/core/customer.py +34 -0
  115. shopware_api_client/endpoints/store/core/customer_group.py +5 -0
  116. shopware_api_client/endpoints/store/core/delivery_time.py +5 -0
  117. shopware_api_client/endpoints/store/core/document.py +15 -0
  118. shopware_api_client/endpoints/store/core/document_type.py +5 -0
  119. shopware_api_client/endpoints/store/core/landing_page.py +10 -0
  120. shopware_api_client/endpoints/store/core/language.py +18 -0
  121. shopware_api_client/endpoints/store/core/locale.py +5 -0
  122. shopware_api_client/endpoints/store/core/main_category.py +5 -0
  123. shopware_api_client/endpoints/store/core/media.py +8 -0
  124. shopware_api_client/endpoints/store/core/media_thumbnail.py +5 -0
  125. shopware_api_client/endpoints/store/core/order.py +67 -0
  126. shopware_api_client/endpoints/store/core/order_address.py +12 -0
  127. shopware_api_client/endpoints/store/core/order_customer.py +8 -0
  128. shopware_api_client/endpoints/store/core/order_delivery.py +14 -0
  129. shopware_api_client/endpoints/store/core/order_delivery_position.py +5 -0
  130. shopware_api_client/endpoints/store/core/order_line_item.py +14 -0
  131. shopware_api_client/endpoints/store/core/order_transaction.py +12 -0
  132. shopware_api_client/endpoints/store/core/order_transaction_capture.py +12 -0
  133. shopware_api_client/endpoints/store/core/order_transaction_capture_refund.py +12 -0
  134. shopware_api_client/endpoints/store/core/order_transaction_capture_refund_position.py +11 -0
  135. shopware_api_client/endpoints/store/core/payment_method.py +8 -0
  136. shopware_api_client/endpoints/store/core/product.py +60 -0
  137. shopware_api_client/endpoints/store/core/product_configurator_setting.py +10 -0
  138. shopware_api_client/endpoints/store/core/product_cross_selling.py +5 -0
  139. shopware_api_client/endpoints/store/core/product_download.py +10 -0
  140. shopware_api_client/endpoints/store/core/product_manufacturer.py +8 -0
  141. shopware_api_client/endpoints/store/core/product_media.py +10 -0
  142. shopware_api_client/endpoints/store/core/product_review.py +5 -0
  143. shopware_api_client/endpoints/store/core/product_stream.py +5 -0
  144. shopware_api_client/endpoints/store/core/property_group.py +8 -0
  145. shopware_api_client/endpoints/store/core/property_group_option.py +10 -0
  146. shopware_api_client/endpoints/store/core/rule.py +5 -0
  147. shopware_api_client/endpoints/store/core/sales_channel.py +23 -0
  148. shopware_api_client/endpoints/store/core/sales_channel_domain.py +12 -0
  149. shopware_api_client/endpoints/store/core/salutation.py +12 -0
  150. shopware_api_client/endpoints/store/core/seo_url.py +5 -0
  151. shopware_api_client/endpoints/store/core/shipping_method.py +18 -0
  152. shopware_api_client/endpoints/store/core/shipping_method_price.py +5 -0
  153. shopware_api_client/endpoints/store/core/state_machine_state.py +5 -0
  154. shopware_api_client/endpoints/store/core/tag.py +5 -0
  155. shopware_api_client/endpoints/store/core/tax.py +5 -0
  156. shopware_api_client/endpoints/store/core/unit.py +5 -0
  157. shopware_api_client/exceptions.py +4 -0
  158. shopware_api_client/fieldsets.py +12 -0
  159. shopware_api_client/models/__init__.py +0 -0
  160. shopware_api_client/models/acl_role.py +11 -0
  161. shopware_api_client/models/app.py +33 -0
  162. shopware_api_client/models/app_script_condition.py +16 -0
  163. shopware_api_client/models/b2b_components_role.py +12 -0
  164. shopware_api_client/models/b2b_components_shopping_list.py +13 -0
  165. shopware_api_client/models/b2b_components_shopping_list_line_item.py +14 -0
  166. shopware_api_client/models/b2b_employee.py +17 -0
  167. shopware_api_client/models/category.py +44 -0
  168. shopware_api_client/models/cms_block.py +23 -0
  169. shopware_api_client/models/cms_page.py +15 -0
  170. shopware_api_client/models/cms_section.py +20 -0
  171. shopware_api_client/models/cms_slot.py +17 -0
  172. shopware_api_client/models/country.py +27 -0
  173. shopware_api_client/models/country_state.py +12 -0
  174. shopware_api_client/models/currency.py +20 -0
  175. shopware_api_client/models/currency_country_rounding.py +11 -0
  176. shopware_api_client/models/custom_entity.py +19 -0
  177. shopware_api_client/models/custom_field.py +8 -0
  178. shopware_api_client/models/customer.py +47 -0
  179. shopware_api_client/models/customer_address.py +22 -0
  180. shopware_api_client/models/customer_group.py +13 -0
  181. shopware_api_client/models/customer_recovery.py +9 -0
  182. shopware_api_client/models/customer_wishlist.py +9 -0
  183. shopware_api_client/models/customer_wishlist_product.py +10 -0
  184. shopware_api_client/models/delivery_time.py +12 -0
  185. shopware_api_client/models/document.py +20 -0
  186. shopware_api_client/models/document_base_config.py +19 -0
  187. shopware_api_client/models/document_base_config_sales_channel.py +10 -0
  188. shopware_api_client/models/document_type.py +8 -0
  189. shopware_api_client/models/dynamic_access.py +9 -0
  190. shopware_api_client/models/integration.py +15 -0
  191. shopware_api_client/models/landing_page.py +15 -0
  192. shopware_api_client/models/language.py +11 -0
  193. shopware_api_client/models/locale.py +9 -0
  194. shopware_api_client/models/main_category.py +12 -0
  195. shopware_api_client/models/media.py +26 -0
  196. shopware_api_client/models/media_default_folder.py +7 -0
  197. shopware_api_client/models/media_folder.py +16 -0
  198. shopware_api_client/models/media_folder_configuration.py +11 -0
  199. shopware_api_client/models/media_thumbnail.py +15 -0
  200. shopware_api_client/models/media_thumbnail_size.py +8 -0
  201. shopware_api_client/models/order.py +36 -0
  202. shopware_api_client/models/order_address.py +23 -0
  203. shopware_api_client/models/order_customer.py +18 -0
  204. shopware_api_client/models/order_delivery.py +19 -0
  205. shopware_api_client/models/order_delivery_position.py +15 -0
  206. shopware_api_client/models/order_line_item.py +34 -0
  207. shopware_api_client/models/order_line_item_download.py +12 -0
  208. shopware_api_client/models/order_transaction.py +15 -0
  209. shopware_api_client/models/order_transaction_capture.py +15 -0
  210. shopware_api_client/models/order_transaction_capture_refund.py +16 -0
  211. shopware_api_client/models/order_transaction_capture_refund_position.py +15 -0
  212. shopware_api_client/models/payment_method.py +29 -0
  213. shopware_api_client/models/product.py +72 -0
  214. shopware_api_client/models/product_configurator_setting.py +14 -0
  215. shopware_api_client/models/product_cross_selling.py +17 -0
  216. shopware_api_client/models/product_cross_selling_assigned_products.py +11 -0
  217. shopware_api_client/models/product_download.py +11 -0
  218. shopware_api_client/models/product_export.py +27 -0
  219. shopware_api_client/models/product_feature_set.py +11 -0
  220. shopware_api_client/models/product_manufacturer.py +11 -0
  221. shopware_api_client/models/product_media.py +11 -0
  222. shopware_api_client/models/product_price.py +15 -0
  223. shopware_api_client/models/product_review.py +19 -0
  224. shopware_api_client/models/product_search_keyword.py +13 -0
  225. shopware_api_client/models/product_stream.py +14 -0
  226. shopware_api_client/models/product_visibility.py +11 -0
  227. shopware_api_client/models/product_warehouse.py +10 -0
  228. shopware_api_client/models/promotion.py +29 -0
  229. shopware_api_client/models/promotion_discount.py +17 -0
  230. shopware_api_client/models/promotion_discount_prices.py +10 -0
  231. shopware_api_client/models/property_group.py +13 -0
  232. shopware_api_client/models/property_group_option.py +12 -0
  233. shopware_api_client/models/rule.py +16 -0
  234. shopware_api_client/models/rule_condition.py +15 -0
  235. shopware_api_client/models/sales_channel.py +44 -0
  236. shopware_api_client/models/sales_channel_domain.py +13 -0
  237. shopware_api_client/models/salutation.py +9 -0
  238. shopware_api_client/models/seo_url.py +19 -0
  239. shopware_api_client/models/shipping_method.py +18 -0
  240. shopware_api_client/models/shipping_method_price.py +15 -0
  241. shopware_api_client/models/state_machine.py +10 -0
  242. shopware_api_client/models/state_machine_history.py +18 -0
  243. shopware_api_client/models/state_machine_state.py +8 -0
  244. shopware_api_client/models/state_machine_transition.py +11 -0
  245. shopware_api_client/models/system_config.py +12 -0
  246. shopware_api_client/models/tag.py +7 -0
  247. shopware_api_client/models/tax.py +9 -0
  248. shopware_api_client/models/tax_rule.py +15 -0
  249. shopware_api_client/models/tax_rule_type.py +11 -0
  250. shopware_api_client/models/unit.py +8 -0
  251. shopware_api_client/models/user.py +21 -0
  252. shopware_api_client/models/warehouse.py +8 -0
  253. shopware_api_client/models/warehouse_group.py +11 -0
  254. shopware_api_client/models/warehouse_group_warehouse.py +11 -0
  255. shopware_api_client/structs/__init__.py +0 -0
  256. shopware_api_client/structs/absolute_price_definition.py +6 -0
  257. shopware_api_client/structs/calculated_cheapest_price.py +6 -0
  258. shopware_api_client/structs/calculated_price.py +17 -0
  259. shopware_api_client/structs/calculated_tax.py +8 -0
  260. shopware_api_client/structs/cart.py +21 -0
  261. shopware_api_client/structs/cart_price.py +15 -0
  262. shopware_api_client/structs/cash_rounding_config.py +7 -0
  263. shopware_api_client/structs/context.py +15 -0
  264. shopware_api_client/structs/delivery.py +16 -0
  265. shopware_api_client/structs/delivery_date.py +8 -0
  266. shopware_api_client/structs/delivery_information.py +13 -0
  267. shopware_api_client/structs/delivery_position.py +12 -0
  268. shopware_api_client/structs/delivery_time.py +8 -0
  269. shopware_api_client/structs/language_info.py +6 -0
  270. shopware_api_client/structs/line_item.py +39 -0
  271. shopware_api_client/structs/list_price.py +7 -0
  272. shopware_api_client/structs/measurement_units.py +8 -0
  273. shopware_api_client/structs/percentage_price_definition.py +6 -0
  274. shopware_api_client/structs/price.py +14 -0
  275. shopware_api_client/structs/quantity_information.py +7 -0
  276. shopware_api_client/structs/quantity_price_definition.py +14 -0
  277. shopware_api_client/structs/reference_price.py +5 -0
  278. shopware_api_client/structs/reference_price_definition.py +7 -0
  279. shopware_api_client/structs/regulation_price.py +5 -0
  280. shopware_api_client/structs/sales_channel_context.py +33 -0
  281. shopware_api_client/structs/shipping_location.py +12 -0
  282. shopware_api_client/structs/tax_free_config.py +8 -0
  283. shopware_api_client/structs/tax_rule.py +6 -0
  284. shopware_api_client/structs/transaction.py +8 -0
  285. shopware_api_client/structs/variant_listing_config.py +8 -0
  286. {shopware_api_client-1.0.118.dist-info → shopware_api_client-1.1.1.dist-info}/METADATA +45 -273
  287. shopware_api_client-1.1.1.dist-info/RECORD +298 -0
  288. shopware_api_client-1.0.118.dist-info/RECORD +0 -117
  289. {shopware_api_client-1.0.118.dist-info → shopware_api_client-1.1.1.dist-info}/WHEEL +0 -0
  290. {shopware_api_client-1.0.118.dist-info → shopware_api_client-1.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -0,0 +1,15 @@
1
+ from pydantic import Field
2
+
3
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
4
+ from shopware_api_client.endpoints.base_fields import IdField
5
+
6
+
7
+ class MediaThumbnailBase(ApiModelBase, CustomFieldsMixin):
8
+ _identifier = "media_thumbnail"
9
+
10
+ media_id: IdField
11
+ media_thumbnail_size_id: IdField | None = None # Will get required with 6.8.0
12
+ width: int = Field(default=0, exclude=True)
13
+ height: int = Field(default=0, exclude=True)
14
+ url: str | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
15
+ path: str | None = None
@@ -0,0 +1,8 @@
1
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
2
+
3
+
4
+ class MediaThumbnailSizeBase(ApiModelBase, CustomFieldsMixin):
5
+ _identifier = "media_thumbnail_size"
6
+
7
+ width: int
8
+ height: int
@@ -0,0 +1,36 @@
1
+ from datetime import date
2
+
3
+ from pydantic import AwareDatetime, Field
4
+
5
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
6
+ from shopware_api_client.endpoints.base_fields import Amount, Price, IdField
7
+
8
+
9
+ class OrderBase(ApiModelBase, CustomFieldsMixin):
10
+ _identifier: str = "order"
11
+
12
+ auto_increment: int | None = Field(default=None, exclude=True)
13
+ order_number: str | None = None
14
+ billing_address_id: IdField
15
+ billing_address_version_id: IdField | None = None
16
+ currency_id: IdField
17
+ language_id: IdField
18
+ sales_channel_id: IdField
19
+ order_date_time: AwareDatetime
20
+ order_date: date | None = Field(default=None, exclude=True)
21
+ price: Price | None = None
22
+ amount_total: float | None = Field(default=None, exclude=True)
23
+ amount_net: float | None = Field(default=None, exclude=True)
24
+ position_price: float | None = Field(default=None, exclude=True)
25
+ tax_status: str | None = Field(default=None, exclude=True)
26
+ shipping_costs: Amount | None = None
27
+ shipping_total: float | None = Field(default=None, exclude=True)
28
+ currency_factor: float
29
+ deep_link_code: str | None = None
30
+ affiliate_code: str | None = None
31
+ campaign_code: str | None = None
32
+ customer_comment: str | None = None
33
+ source: str | None = None
34
+ rule_ids: list[str] | None = None
35
+ created_by_id: IdField | None = None
36
+ updated_by_id: IdField | None = None
@@ -0,0 +1,23 @@
1
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class OrderAddressBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "order_address"
7
+
8
+ country_id: IdField
9
+ country_state_id: IdField | None = None
10
+ order_version_id: IdField | None = None
11
+ salutation_id: IdField | None = None
12
+ first_name: str
13
+ last_name: str
14
+ street: str
15
+ zipcode: str | None = None
16
+ city: str
17
+ company: str | None = None
18
+ department: str | None = None
19
+ title: str | None = None
20
+ vat_id: str | None = None
21
+ phone_number: str | None = None
22
+ additional_address_line1: str | None = None
23
+ additional_address_line2: str | None = None
@@ -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 OrderCustomerBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "order_customer"
7
+
8
+ customer_id: IdField | None = None
9
+ order_version_id: IdField | None = None
10
+ email: str
11
+ salutation_id: IdField | None = None
12
+ first_name: str
13
+ last_name: str
14
+ company: str | None = None
15
+ title: str | None = None
16
+ vat_ids: list[str] | None = None
17
+ customer_number: str | None = None
18
+ remote_address: str | None = None
@@ -0,0 +1,19 @@
1
+ from pydantic import AwareDatetime, Field
2
+
3
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
4
+ from shopware_api_client.endpoints.base_fields import Amount, IdField
5
+
6
+
7
+ class OrderDeliveryBase(ApiModelBase, CustomFieldsMixin):
8
+ _identifier: str = "order_delivery"
9
+
10
+ order_id: IdField
11
+ order_version_id: IdField | None = None
12
+ shipping_order_address_id: IdField
13
+ shipping_order_address_version_id: IdField | None = None
14
+ shipping_method_id: IdField
15
+ state_id: IdField = Field(..., exclude=True)
16
+ tracking_codes: list[str]
17
+ shipping_date_earliest: AwareDatetime
18
+ shipping_date_latest: AwareDatetime
19
+ shipping_costs: Amount | None = None
@@ -0,0 +1,15 @@
1
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
2
+ from shopware_api_client.endpoints.base_fields import IdField, Price
3
+
4
+
5
+ class OrderDeliveryPositionBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "order_delivery_position"
7
+
8
+ order_delivery_id: IdField
9
+ order_delivery_version_id: IdField | None = None
10
+ order_line_item_id: IdField
11
+ order_line_item_version_id: IdField | None = None
12
+ price: Price | None = None
13
+ unit_price: float | None = None
14
+ total_price: float | None = None
15
+ quantity: int | None = None
@@ -0,0 +1,34 @@
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 OrderLineItemBase(ApiModelBase, CustomFieldsMixin):
10
+ _identifier: str = "order_line_item"
11
+
12
+ order_id: IdField
13
+ order_version_id: IdField | None = None
14
+ product_id: IdField | None = None
15
+ product_version_id: IdField | None = None
16
+ promotion_id: IdField | None = Field(default=None, exclude=True)
17
+ parent_id: IdField | None = None
18
+ parent_version_id: IdField | None = None
19
+ cover_id: IdField | None = None
20
+ identifier: str
21
+ referenced_id: str | None = None
22
+ quantity: int
23
+ label: str
24
+ payload: dict[str, Any] | list | None = None
25
+ good: bool | None = None
26
+ removable: bool | None = None
27
+ stackable: bool | None = None
28
+ position: int
29
+ states: list[str]
30
+ price_definition: dict[str, Any] | None = None
31
+ unit_price: float | None = None
32
+ total_price: float | None = None
33
+ description: str | None = None
34
+ type: str | None = None
@@ -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 OrderLineItemDownloadBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "order_line_item_download"
7
+
8
+ order_line_item_id: IdField
9
+ order_line_item_version_id: IdField | None = None
10
+ media_id: IdField
11
+ position: int
12
+ access_granted: bool
@@ -0,0 +1,15 @@
1
+ from pydantic import Field
2
+
3
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
4
+ from shopware_api_client.endpoints.base_fields import Amount, IdField
5
+
6
+
7
+ class OrderTransactionBase(ApiModelBase, CustomFieldsMixin):
8
+ _identifier: str = "order_transaction"
9
+
10
+ version_id: IdField | None = None
11
+ order_id: IdField
12
+ order_version_id: IdField | None = None
13
+ payment_method_id: IdField
14
+ amount: Amount
15
+ state_id: IdField = Field(..., exclude=True)
@@ -0,0 +1,15 @@
1
+ from pydantic import Field
2
+
3
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
4
+ from shopware_api_client.endpoints.base_fields import Amount, IdField
5
+
6
+
7
+ class OrderTransactionCaptureBase(ApiModelBase, CustomFieldsMixin):
8
+ _identifier: str = "order_transaction_capture"
9
+
10
+ version_id: IdField | None = None
11
+ order_transaction_id: IdField
12
+ order_transaction_version_id: IdField | None = None
13
+ state_id: IdField = Field(..., exclude=True)
14
+ external_reference: str | None = None
15
+ amount: Amount
@@ -0,0 +1,16 @@
1
+ from pydantic import Field
2
+
3
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
4
+ from shopware_api_client.endpoints.base_fields import Amount, IdField
5
+
6
+
7
+ class OrderTransactionCaptureRefundBase(ApiModelBase, CustomFieldsMixin):
8
+ _identifier: str = "order_transaction_capture_refund"
9
+
10
+ version_id: IdField | None = None
11
+ capture_id: IdField
12
+ capture_version_id: IdField | None = None
13
+ state_id: IdField = Field(..., exclude=True)
14
+ external_reference: str | None = None
15
+ reason: str | None = None
16
+ amount: Amount
@@ -0,0 +1,15 @@
1
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
2
+ from shopware_api_client.endpoints.base_fields import Amount, IdField
3
+
4
+
5
+ class OrderTransactionCaptureRefundPositionBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "order_transaction_capture_refund_position"
7
+
8
+ refund_id: IdField
9
+ refund_version_id: IdField | None = None
10
+ order_line_item_id: IdField
11
+ order_line_item_version_id: IdField | None = None
12
+ external_reference: str | None = None
13
+ reason: str | None = None
14
+ quantity: int | None = None
15
+ amount: Amount
@@ -0,0 +1,29 @@
1
+ from pydantic import Field
2
+
3
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
4
+ from shopware_api_client.endpoints.base_fields import IdField
5
+
6
+ _FILED_DESCRIPTION = "Runtime field, cannot be used as part of the criteria."
7
+
8
+
9
+ class PaymentMethodBase(ApiModelBase, CustomFieldsMixin):
10
+ _identifier: str = "payment_method"
11
+
12
+ plugin_id: IdField | None = None
13
+ handler_identifier: str | None = None
14
+ name: str
15
+ distinguishable_name: str | None = Field(default=None, exclude=True)
16
+ description: str | None = None
17
+ position: int | None = None
18
+ active: bool | None = None
19
+ after_order_enabled: bool | None = None
20
+ availability_rule_id: IdField | None = None
21
+ media_id: IdField | None = None
22
+ formatted_handler_identifier: str | None = Field(None, description=_FILED_DESCRIPTION, exclude=True)
23
+ synchronous: bool | None = Field(None, description=_FILED_DESCRIPTION, exclude=True)
24
+ asynchronous: bool | None = Field(None, description=_FILED_DESCRIPTION, exclude=True)
25
+ prepared: bool | None = Field(None, description=_FILED_DESCRIPTION, exclude=True)
26
+ refundable: bool | None = Field(None, description=_FILED_DESCRIPTION, exclude=True)
27
+ recurring: bool | None = Field(None, description=_FILED_DESCRIPTION, exclude=True)
28
+ short_name: str | None = Field(None, description=_FILED_DESCRIPTION)
29
+ technical_name: str | None = Field(default=None, exclude=True)
@@ -0,0 +1,72 @@
1
+ from typing import Any
2
+ from pydantic import AwareDatetime, Field
3
+
4
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
5
+ from shopware_api_client.endpoints.base_fields import IdField
6
+ from shopware_api_client.structs.variant_listing_config import VariantListingConfig
7
+
8
+
9
+ class ProductBase(ApiModelBase, CustomFieldsMixin):
10
+ _identifier: str = "product"
11
+
12
+ parent_id: IdField | None = None
13
+ parent_version_id: IdField | None = None
14
+ manufacturer_id: IdField | None = None
15
+ product_manufacturer_version_id: IdField | None = None
16
+ unit_id: IdField | None = None
17
+ tax_id: IdField | None = None
18
+ cover_id: IdField | None = None
19
+ product_media_version_id: IdField | None = None
20
+ delivery_time_id: IdField | None = None
21
+ feature_set_id: IdField | None = None
22
+ canonical_product_id: IdField | None = None
23
+ cms_page_id: IdField | None = None
24
+ cms_page_version_id: IdField | None = None
25
+ price: list[dict[str, Any]] | None = None
26
+ product_number: str
27
+ restock_time: int | None = None
28
+ auto_increment: int | None = Field(default=None, exclude=True)
29
+ active: bool | None = None
30
+ available: bool | None = Field(default=None, exclude=True)
31
+ is_closeout: bool | None = None
32
+ variation: list[str] | None = None
33
+ display_group: str | None = Field(default=None, exclude=True)
34
+ variant_listing_config: VariantListingConfig | None = None
35
+ variant_restrictions: dict[str, Any] | None = None
36
+ manufacturer_number: str | None = None
37
+ ean: str | None = None
38
+ purchase_steps: int | None = None
39
+ max_purchase: int | None = None
40
+ min_purchase: int | None = None
41
+ purchase_unit: float | None = None
42
+ reference_unit: float | None = None
43
+ shipping_free: bool | None = None
44
+ purchase_prices: list[dict[str, Any]] | None = None
45
+ mark_as_topseller: bool | None = None
46
+ weight: float | None = None
47
+ width: float | None = None
48
+ height: float | None = None
49
+ length: float | None = None
50
+ release_date: AwareDatetime | None = None
51
+ rating_average: float | None = Field(default=None, exclude=True)
52
+ category_tree: list[IdField] | None = Field(default=None, exclude=True)
53
+ property_ids: list[IdField] | None = Field(default=None, exclude=True)
54
+ option_ids: list[IdField] | None = Field(default=None, exclude=True)
55
+ stream_ids: list[IdField] | None = Field(default=None, exclude=True)
56
+ tag_ids: list[IdField] | None = Field(default=None, exclude=True)
57
+ category_ids: list[IdField] | None = Field(default=None, exclude=True)
58
+ child_count: int | None = Field(default=None, exclude=True)
59
+ custom_field_set_selection_active: bool | None = None
60
+ sales: int | None = Field(default=None, exclude=True)
61
+ states: list[str] | None = Field(default=None, exclude=True)
62
+ meta_description: str | None = None
63
+ name: str | None = None
64
+ keywords: str | None = None
65
+ description: str | None = None
66
+ meta_title: str | None = None
67
+ pack_unit: str | None = None
68
+ pack_unit_plural: str | None = None
69
+ slot_config: dict[str, Any] | list | None = None
70
+ custom_search_keywords: list[str] | None = None
71
+ available_stock: int | None = Field(default=None, exclude=True)
72
+ stock: int | None = None
@@ -0,0 +1,14 @@
1
+ from typing import Any
2
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
3
+ from shopware_api_client.endpoints.base_fields import IdField
4
+
5
+
6
+ class ProductConfiguratorSettingBase(ApiModelBase, CustomFieldsMixin):
7
+ _identifier: str = "product_configurator_setting"
8
+
9
+ product_id: IdField
10
+ product_version_id: IdField | None = None
11
+ media_id: IdField | None = None
12
+ option_id: IdField
13
+ price: dict[str, Any] | None = None
14
+ position: int | None = None
@@ -0,0 +1,17 @@
1
+ from shopware_api_client.base import ApiModelBase
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class ProductCrossSellingBase(ApiModelBase):
6
+ _identifier: str = "product_cross_selling"
7
+
8
+ name: str
9
+ position: int
10
+ sort_by: str | None = None
11
+ sort_direction: str | None = None
12
+ type: str
13
+ active: bool | None = None
14
+ limit: int | None = None
15
+ product_id: IdField
16
+ product_version_id: IdField | None = None
17
+ product_stream_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 ProductCrossSellingAssignedProductsBase(ApiModelBase):
6
+ _identifier: str = "product_cross_selling_assigned_products"
7
+
8
+ cross_selling_id: IdField
9
+ product_id: IdField
10
+ product_version_id: IdField | None = None
11
+ position: int | 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 ProductDownloadBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "product_download"
7
+
8
+ product_id: IdField
9
+ product_version_id: IdField | None = None
10
+ media_id: IdField
11
+ position: int | None = None
@@ -0,0 +1,27 @@
1
+ from pydantic import AwareDatetime
2
+
3
+ from shopware_api_client.base import ApiModelBase
4
+ from shopware_api_client.endpoints.base_fields import IdField
5
+
6
+
7
+ class ProductExportBase(ApiModelBase):
8
+ _identifier: str = "product_export"
9
+
10
+ product_stream_id: IdField
11
+ storefront_sales_channel_id: IdField
12
+ sales_channel_id: IdField
13
+ sales_channel_domain_id: IdField
14
+ currency_id: IdField
15
+ file_name: str
16
+ access_key: str
17
+ encoding: str
18
+ file_format: str
19
+ include_variants: bool | None = None
20
+ generate_by_cronjob: bool
21
+ generated_at: AwareDatetime | None = None
22
+ interval: int
23
+ header_template: str | None = None
24
+ body_template: str | None = None
25
+ footer_template: str | None = None
26
+ paused_schedule: bool | None = None
27
+ is_running: bool | None = None
@@ -0,0 +1,11 @@
1
+ from typing import Any
2
+
3
+ from shopware_api_client.base import ApiModelBase
4
+
5
+
6
+ class ProductFeatureSetBase(ApiModelBase):
7
+ _identifier: str = "product_feature_set"
8
+
9
+ name: str
10
+ description: str | None = None
11
+ features: dict[str, Any] | 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 ProductManufacturerBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "product_manufacturer"
7
+
8
+ media_id: IdField | None = None
9
+ link: str | None = None
10
+ name: str
11
+ description: str | 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 ProductMediaBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "product_media"
7
+
8
+ product_id: IdField
9
+ product_version_id: IdField | None = None
10
+ media_id: IdField
11
+ position: int | 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 ProductPriceBase(ApiModelBase, CustomFieldsMixin):
8
+ _identifier: str = "product_price"
9
+
10
+ product_id: IdField
11
+ product_version_id: IdField | None = None
12
+ rule_id: IdField
13
+ price: dict[str, Any]
14
+ quantity_start: int
15
+ quantity_end: int | None = None
@@ -0,0 +1,19 @@
1
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class ProductReviewBase(ApiModelBase, CustomFieldsMixin):
6
+ _identifier: str = "product_review"
7
+
8
+ product_id: IdField
9
+ product_version_id: IdField | None = None
10
+ customer_id: IdField | None = None
11
+ sales_channel_id: IdField
12
+ language_id: IdField
13
+ external_user: str | None = None
14
+ external_email: str | None = None
15
+ title: str
16
+ content: str
17
+ points: float | None = None
18
+ status: bool | None = None
19
+ comment: str | None = None
@@ -0,0 +1,13 @@
1
+ from shopware_api_client.base import ApiModelBase
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class ProductSearchKeywordBase(ApiModelBase):
6
+ _identifier: str = "product_search_keyword"
7
+
8
+ version_id: IdField | None = None
9
+ language_id: IdField
10
+ product_id: IdField
11
+ product_version_id: IdField | None = None
12
+ keyword: str
13
+ ranking: float
@@ -0,0 +1,14 @@
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 ProductStreamBase(ApiModelBase, CustomFieldsMixin):
9
+ _identifier: str = "product_stream"
10
+
11
+ api_filter: dict[str, Any] | None = Field(default=None, exclude=True)
12
+ invalid: bool | None = Field(default=None, exclude=True)
13
+ name: str
14
+ description: str | 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 ProductVisibilityBase(ApiModelBase):
6
+ _identifier: str = "product_visibility"
7
+
8
+ product_id: IdField
9
+ product_version_id: IdField | None = None
10
+ sales_channel_id: IdField
11
+ visibility: int
@@ -0,0 +1,10 @@
1
+ from shopware_api_client.base import ApiModelBase
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class ProductWarehouseBase(ApiModelBase):
6
+ _identifier = "product_warehouse"
7
+
8
+ stock: int
9
+ product_id: IdField
10
+ warehouse_id: IdField
@@ -0,0 +1,29 @@
1
+ from typing import Any
2
+
3
+ from pydantic import AwareDatetime, 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 PromotionBase(ApiModelBase, CustomFieldsMixin):
10
+ _identifier: str = "promotion"
11
+
12
+ name: str
13
+ active: bool
14
+ valid_from: AwareDatetime | None = None
15
+ valid_until: AwareDatetime | None = None
16
+ max_redemptions_global: int | None = None
17
+ max_redemptions_per_customer: int | None = None
18
+ priority: int
19
+ exclusive: bool
20
+ code: str | None = None
21
+ use_codes: bool
22
+ use_individual_codes: bool
23
+ individual_code_pattern: str | None = None
24
+ use_set_groups: bool
25
+ customer_restriction: bool | None = None
26
+ prevent_combination: bool
27
+ order_count: int | None = Field(default=None, exclude=True)
28
+ orders_per_customer_count: dict[str, Any] | None = Field(default=None, exclude=True)
29
+ exclusion_ids: list[IdField] | None = None
@@ -0,0 +1,17 @@
1
+ from shopware_api_client.base import ApiModelBase
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class PromotionDiscountBase(ApiModelBase):
6
+ _identifier: str = "promotion_discount"
7
+
8
+ promotion_id: IdField
9
+ scope: str
10
+ type: str
11
+ value: float
12
+ consider_advanced_rules: bool
13
+ max_value: float | None = None
14
+ sorter_key: str | None = None
15
+ applier_key: str | None = None
16
+ usage_key: str | None = None
17
+ picker_key: str | None = None
@@ -0,0 +1,10 @@
1
+ from shopware_api_client.base import ApiModelBase
2
+ from shopware_api_client.endpoints.base_fields import IdField
3
+
4
+
5
+ class PromotionDiscountPricesBase(ApiModelBase):
6
+ _identifier: str = "promotion_discount_prices"
7
+
8
+ discount_id: IdField
9
+ currency_id: IdField
10
+ price: float
@@ -0,0 +1,13 @@
1
+ from shopware_api_client.base import ApiModelBase, CustomFieldsMixin
2
+
3
+
4
+ class PropertyGroupBase(ApiModelBase, CustomFieldsMixin):
5
+ _identifier: str = "property_group"
6
+
7
+ name: str
8
+ description: str | None = None
9
+ display_type: str
10
+ sorting_type: str
11
+ filterable: bool | None = None
12
+ visible_on_product_detail_page: bool | None = None
13
+ position: int | None = None