Skip to content

Commit

Permalink
Remove the preferences endpoints (#48)
Browse files Browse the repository at this point in the history
* Remove preferences

* Update changelog

* Update changelog

* Update changelog

* Remove model

* Update readme
  • Loading branch information
pcothenet authored Dec 8, 2021
1 parent fd7d94e commit 2961b98
Show file tree
Hide file tree
Showing 45 changed files with 68 additions and 730 deletions.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
# W504 is the "line break before binary operator" error and is disabled since we use
# the black code formatter.
# W503 is disabled by default, but must be disabled explicitly when using `ignore`.
ignore = E501, W503, W504
# F401 is "unused import", which is hard to fix without modifying the templates
ignore = E501, W503, W504, F401
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.16.0] - 2021-12-07

### Removed

- Removes the `preferences` endpoints (deprecated)

## [1.15.2] - 2021-11-08

### Added
Expand Down
4 changes: 2 additions & 2 deletions patch_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

__version__ = "1.15.2"
__version__ = "1.16.0"

# import ApiClient
from patch_api.api_client import ApiClient
Expand Down
1 change: 0 additions & 1 deletion patch_api/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
# import apis into api package
from patch_api.api.estimates_api import EstimatesApi
from patch_api.api.orders_api import OrdersApi
from patch_api.api.preferences_api import PreferencesApi
from patch_api.api.projects_api import ProjectsApi
from patch_api.api.technology_types_api import TechnologyTypesApi
2 changes: 1 addition & 1 deletion patch_api/api/estimates_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/api/orders_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/api/projects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/api/technology_types_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
6 changes: 2 additions & 4 deletions patch_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand All @@ -27,7 +27,6 @@
import patch_api.models
from patch_api.api.estimates_api import EstimatesApi
from patch_api.api.orders_api import OrdersApi
from patch_api.api.preferences_api import PreferencesApi
from patch_api.api.projects_api import ProjectsApi
from patch_api.api.technology_types_api import TechnologyTypesApi

Expand Down Expand Up @@ -92,7 +91,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "patch-python/1.15.2"
self.user_agent = "patch-python/1.16.0"

def __del__(self):
if self._pool:
Expand All @@ -104,7 +103,6 @@ def __getattr__(self, method):
resource = {
"projects": ProjectsApi,
"orders": OrdersApi,
"preferences": PreferencesApi,
"estimates": EstimatesApi,
"technology_types": TechnologyTypesApi,
}[method]
Expand Down
10 changes: 5 additions & 5 deletions patch_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -341,7 +341,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: v1\n"
"SDK Package Version: 1.15.2".format(
"SDK Package Version: 1.16.0".format(
env=sys.platform, pyversion=sys.version
)
)
Expand All @@ -353,12 +353,12 @@ def get_host_settings(self):
"""
return [
{
"url": "https://{defaultHost}",
"url": "{defaultUrl}",
"description": "No description provided",
"variables": {
"defaultHost": {
"defaultUrl": {
"description": "No description provided",
"default_value": "api.patch.io",
"default_value": "https://api.patch.io",
}
},
}
Expand Down
2 changes: 1 addition & 1 deletion patch_api/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
6 changes: 1 addition & 5 deletions patch_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand All @@ -25,7 +25,6 @@
from patch_api.models.create_flight_estimate_request import CreateFlightEstimateRequest
from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest
from patch_api.models.create_order_request import CreateOrderRequest
from patch_api.models.create_preference_request import CreatePreferenceRequest
from patch_api.models.create_shipping_estimate_request import (
CreateShippingEstimateRequest,
)
Expand All @@ -44,9 +43,6 @@
from patch_api.models.order_response import OrderResponse
from patch_api.models.parent_technology_type import ParentTechnologyType
from patch_api.models.photo import Photo
from patch_api.models.preference import Preference
from patch_api.models.preference_list_response import PreferenceListResponse
from patch_api.models.preference_response import PreferenceResponse
from patch_api.models.project import Project
from patch_api.models.project_list_response import ProjectListResponse
from patch_api.models.project_response import ProjectResponse
Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/allocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/create_bitcoin_estimate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/create_ethereum_estimate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/create_flight_estimate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
6 changes: 3 additions & 3 deletions patch_api/models/create_mass_estimate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -90,10 +90,10 @@ def mass_g(self, mass_g):
if (
self.local_vars_configuration.client_side_validation
and mass_g is not None
and mass_g > 2000000000
and mass_g > 100000000000
): # noqa: E501
raise ValueError(
"Invalid value for `mass_g`, must be a value less than or equal to `2000000000`"
"Invalid value for `mass_g`, must be a value less than or equal to `100000000000`"
) # noqa: E501
if (
self.local_vars_configuration.client_side_validation
Expand Down
6 changes: 3 additions & 3 deletions patch_api/models/create_order_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -96,10 +96,10 @@ def mass_g(self, mass_g):
if (
self.local_vars_configuration.client_side_validation
and mass_g is not None
and mass_g > 2000000000
and mass_g > 100000000000
): # noqa: E501
raise ValueError(
"Invalid value for `mass_g`, must be a value less than or equal to `2000000000`"
"Invalid value for `mass_g`, must be a value less than or equal to `100000000000`"
) # noqa: E501
if (
self.local_vars_configuration.client_side_validation
Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/create_shipping_estimate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/create_success_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/create_vehicle_estimate_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/error_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/estimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/estimate_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/estimate_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/highlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/meta_index_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
6 changes: 3 additions & 3 deletions patch_api/models/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -187,10 +187,10 @@ def mass_g(self, mass_g):
if (
self.local_vars_configuration.client_side_validation
and mass_g is not None
and mass_g > 2000000000
and mass_g > 100000000000
): # noqa: E501
raise ValueError(
"Invalid value for `mass_g`, must be a value less than or equal to `2000000000`"
"Invalid value for `mass_g`, must be a value less than or equal to `100000000000`"
) # noqa: E501
if (
self.local_vars_configuration.client_side_validation
Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/order_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/order_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion patch_api/models/parent_technology_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
The core API used to integrate with Patch's service # noqa: E501
The version of the OpenAPI document: v1
Contact: developers@usepatch.com
Contact: engineering@usepatch.com
Generated by: https://openapi-generator.tech
"""

Expand Down
Loading

0 comments on commit 2961b98

Please sign in to comment.