shopware-api-client 1.0.107__tar.gz → 1.0.108__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.107 → shopware_api_client-1.0.108}/PKG-INFO +1 -1
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/pyproject.toml +1 -1
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/base.py +1 -1
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/exceptions.py +7 -1
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/LICENSE +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/README.md +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/client.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/config.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/commercial/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/commercial/b2b_components_role.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/commercial/b2b_employee.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/commercial/dynamic_access.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/acl_role.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/api_info.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/app.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/app_script_condition.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/category.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/cms_block.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/cms_page.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/cms_section.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/cms_slot.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/country.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/country_state.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/currency.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/currency_country_rounding.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/custom_entity.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/custom_field.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/customer.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/customer_address.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/customer_group.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/customer_recovery.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/customer_wishlist.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/customer_wishlist_product.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/delivery_time.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/document.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/document_base_config.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/document_base_config_sales_channel.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/document_type.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/integration.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/landing_page.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/language.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/locale.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/main_category.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/media.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/media_default_folder.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/media_folder.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/media_folder_configuration.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/media_thumbnail.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/media_thumbnail_size.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_address.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_customer.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_delivery.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_delivery_position.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_line_item.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_line_item_download.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_transaction.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture_refund.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/order_transaction_capture_refund_position.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/payment_method.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_configurator_setting.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_cross_selling.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_cross_selling_assigned_products.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_download.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_export.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_feature_set.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_manufacturer.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_media.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_price.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_review.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_search_keyword.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_stream.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_visibility.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/product_warehouse.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/promotion.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/promotion_discount.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/promotion_discount_prices.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/property_group.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/property_group_option.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/rule.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/rule_condition.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/sales_channel.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/sales_channel_domain.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/salutation.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/seo_url.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/shipping_method.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/state_machine.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/state_machine_history.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/state_machine_state.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/state_machine_transition.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/system_config.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/tag.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/tax.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/tax_rule.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/tax_rule_type.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/unit.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/user.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/warehouse.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/warehouse_group.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/admin/core/warehouse_group_warehouse.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/base_fields.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/relations.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/store/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/store/core/__init__.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/store/core/address.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/endpoints/store/core/cart.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/logging.py +0 -0
- {shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/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.108"
|
|
5
5
|
license = "MIT"
|
|
6
6
|
authors = ["GWS Gesellschaft für Warenwirtschafts-Systeme mbH <ebusiness@gws.ms>"]
|
|
7
7
|
readme = "README.md"
|
|
@@ -159,7 +159,7 @@ class ClientBase:
|
|
|
159
159
|
raise ValueError("`errors` attribute in json not a list/tuple!")
|
|
160
160
|
|
|
161
161
|
error: SWAPIError | SWAPIErrorList = SWAPIError.from_errors(errors) # type: ignore
|
|
162
|
-
except
|
|
162
|
+
except ValueError:
|
|
163
163
|
error: SWAPIError | SWAPIErrorList = SWAPIError.from_response(response) # type: ignore
|
|
164
164
|
|
|
165
165
|
if isinstance(error, SWAPIErrorList) and len(error.errors) == 1:
|
{shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/exceptions.py
RENAMED
|
@@ -95,7 +95,13 @@ class SWAPIError(SWAPIException):
|
|
|
95
95
|
@classmethod
|
|
96
96
|
def from_response(cls, response: Response) -> "SWAPIError":
|
|
97
97
|
exception_class = cls.get_exception_class(response.status_code)
|
|
98
|
-
|
|
98
|
+
|
|
99
|
+
try:
|
|
100
|
+
response.headers["requested-url"] = str(response.request.url)
|
|
101
|
+
except RuntimeError:
|
|
102
|
+
# If the request URL is not available, we can ignore it.
|
|
103
|
+
pass
|
|
104
|
+
|
|
99
105
|
return exception_class(
|
|
100
106
|
status=response.status_code,
|
|
101
107
|
title=response.reason_phrase,
|
|
File without changes
|
|
File without changes
|
{shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/__init__.py
RENAMED
|
File without changes
|
{shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/client.py
RENAMED
|
File without changes
|
{shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/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
|
|
File without changes
|
{shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/logging.py
RENAMED
|
File without changes
|
{shopware_api_client-1.0.107 → shopware_api_client-1.0.108}/src/shopware_api_client/py.typed
RENAMED
|
File without changes
|