shopware-api-client 1.0.98__tar.gz → 1.0.100__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.
Potentially problematic release.
This version of shopware-api-client might be problematic. Click here for more details.
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/PKG-INFO +1 -1
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/pyproject.toml +1 -1
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/base.py +7 -2
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/customer.py +1 -1
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/LICENSE +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/README.md +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/client.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/config.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/commercial/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/commercial/b2b_components_role.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/commercial/b2b_employee.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/commercial/dynamic_access.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/acl_role.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/api_info.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/app.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/app_script_condition.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/category.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/cms_block.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/cms_page.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/cms_section.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/cms_slot.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/country.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/country_state.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/currency.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/currency_country_rounding.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/custom_entity.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/custom_field.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/customer_address.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/customer_group.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/customer_recovery.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/customer_wishlist.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/customer_wishlist_product.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/delivery_time.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/document.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/document_base_config.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/document_base_config_sales_channel.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/document_type.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/integration.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/landing_page.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/language.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/locale.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/main_category.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/media.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/media_default_folder.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/media_folder.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/media_folder_configuration.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/media_thumbnail.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/media_thumbnail_size.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_address.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_customer.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_delivery.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_delivery_position.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_line_item.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_line_item_download.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_transaction.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture_refund.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture_refund_position.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/payment_method.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_configurator_setting.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_cross_selling.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_cross_selling_assigned_products.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_download.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_export.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_feature_set.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_manufacturer.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_media.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_price.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_review.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_search_keyword.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_stream.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_visibility.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/product_warehouse.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/promotion.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/promotion_discount.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/promotion_discount_prices.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/property_group.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/property_group_option.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/rule.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/rule_condition.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/sales_channel.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/sales_channel_domain.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/salutation.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/seo_url.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/shipping_method.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/state_machine.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/state_machine_history.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/state_machine_state.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/state_machine_transition.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/system_config.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/tag.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/tax.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/tax_rule.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/tax_rule_type.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/unit.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/user.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/warehouse.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/warehouse_group.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/admin/core/warehouse_group_warehouse.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/base_fields.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/relations.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/store/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/store/core/__init__.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/store/core/address.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/endpoints/store/core/cart.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/exceptions.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/logging.py +0 -0
- {shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/py.typed +0 -0
|
@@ -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.0.
|
|
4
|
+
version = "1.0.100"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
authors = ["GWS Gesellschaft für Warenwirtschafts-Systeme mbH <ebusiness@gws.ms>"]
|
|
7
7
|
readme = "README.md"
|
|
@@ -134,8 +134,13 @@ class ClientBase:
|
|
|
134
134
|
|
|
135
135
|
if response.status_code >= 400:
|
|
136
136
|
try:
|
|
137
|
-
|
|
138
|
-
|
|
137
|
+
errors: list = response.json().get("errors")
|
|
138
|
+
# ensure `errors` attribute is a list/tuple, fallback to from_response if not
|
|
139
|
+
if not isinstance(errors, (list, tuple)):
|
|
140
|
+
raise ValueError("`errors` attribute in json not a list/tuple!")
|
|
141
|
+
|
|
142
|
+
error: SWAPIError | SWAPIErrorList = SWAPIError.from_errors(errors)
|
|
143
|
+
except (json.JSONDecodeError, ValueError):
|
|
139
144
|
error: SWAPIError | SWAPIErrorList = SWAPIError.from_response(response) # type: ignore
|
|
140
145
|
|
|
141
146
|
if isinstance(error, SWAPIErrorList) and len(error.errors) == 1:
|
|
@@ -11,7 +11,7 @@ class CustomerBase(ApiModelBase[EndpointClass]):
|
|
|
11
11
|
_identifier: str = "customer"
|
|
12
12
|
|
|
13
13
|
group_id: IdField
|
|
14
|
-
default_payment_method_id: IdField
|
|
14
|
+
default_payment_method_id: IdField | None = None
|
|
15
15
|
sales_channel_id: IdField
|
|
16
16
|
language_id: IdField
|
|
17
17
|
last_payment_method_id: IdField | None = None
|
|
File without changes
|
|
File without changes
|
{shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/__init__.py
RENAMED
|
File without changes
|
{shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/client.py
RENAMED
|
File without changes
|
{shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/config.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/exceptions.py
RENAMED
|
File without changes
|
{shopware_api_client-1.0.98 → shopware_api_client-1.0.100}/src/shopware_api_client/logging.py
RENAMED
|
File without changes
|
|
File without changes
|