Skip to content

Commit 5201b0a

Browse files
authored
Remove unused api endpoints (#77)
* Remove unused api endpoints * Lint
1 parent e4c9472 commit 5201b0a

16 files changed

+42
-1569
lines changed

.pre-commit-config.yaml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
repos:
2-
- repo: https://github.com/pre-commit/pre-commit-hooks
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
33
rev: v4.0.1
44
hooks:
5-
- id: check-yaml
6-
- id: end-of-file-fixer
7-
- id: trailing-whitespace
8-
- id: name-tests-test
9-
- repo: https://github.com/pycqa/flake8
10-
rev: '4.0.1'
5+
- id: check-yaml
6+
- id: end-of-file-fixer
7+
- id: trailing-whitespace
8+
- id: name-tests-test
9+
- repo: https://github.com/pycqa/flake8
10+
rev: "4.0.1"
1111
hooks:
12-
- id: flake8
13-
args: ['--config=.flake8']
14-
- repo: https://github.com/psf/black
15-
rev: 22.6.0
12+
- id: flake8
13+
args: ["--config=.flake8"]
14+
- repo: https://github.com/psf/black
15+
rev: 24.10.0
1616
hooks:
17-
- id: black
17+
- id: black

patch_api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "2.1.1"
18+
__version__ = "2.3.0"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

patch_api/api/estimates_api.py

-594
Large diffs are not rendered by default.

patch_api/api_client.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def __init__(
9292
self.default_headers[header_name] = header_value
9393
self.cookie = cookie
9494
# Set default User-Agent.
95-
self.user_agent = "patch-python/2.1.1"
95+
self.user_agent = "patch-python/2.3.0"
9696
# Set default Patch-Version
9797
self.patch_version = 2
9898

@@ -142,9 +142,6 @@ def patch_version(self):
142142
def patch_version(self, value):
143143
self.default_headers["Patch-Version"] = value
144144

145-
def set_default_header(self, header_name, header_value):
146-
self.default_headers[header_name] = header_value
147-
148145
def __call_api(
149146
self,
150147
resource_path,
@@ -163,6 +160,7 @@ def __call_api(
163160
_request_timeout=None,
164161
_host=None,
165162
):
163+
166164
config = self.configuration
167165

168166
# header parameters

patch_api/configuration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def to_debug_report(self):
341341
"OS: {env}\n"
342342
"Python Version: {pyversion}\n"
343343
"Version of the API: 2\n"
344-
"SDK Package Version: 2.1.1".format(env=sys.platform, pyversion=sys.version)
344+
"SDK Package Version: 2.3.0".format(env=sys.platform, pyversion=sys.version)
345345
)
346346

347347
def get_host_settings(self):

patch_api/models/__init__.py

-9
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@
2424
from patch_api.models.create_ecommerce_estimate_request import (
2525
CreateEcommerceEstimateRequest,
2626
)
27-
from patch_api.models.create_ethereum_estimate_request import (
28-
CreateEthereumEstimateRequest,
29-
)
3027
from patch_api.models.create_flight_estimate_request import CreateFlightEstimateRequest
3128
from patch_api.models.create_hotel_estimate_request import CreateHotelEstimateRequest
3229
from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest
@@ -41,13 +38,7 @@
4138
from patch_api.models.create_sea_shipping_estimate_request import (
4239
CreateSeaShippingEstimateRequest,
4340
)
44-
from patch_api.models.create_shipping_estimate_request import (
45-
CreateShippingEstimateRequest,
46-
)
4741
from patch_api.models.create_success_response import CreateSuccessResponse
48-
from patch_api.models.create_vehicle_estimate_request import (
49-
CreateVehicleEstimateRequest,
50-
)
5142
from patch_api.models.delete_order_response import DeleteOrderResponse
5243
from patch_api.models.disclaimer import Disclaimer
5344
from patch_api.models.error_response import ErrorResponse

patch_api/models/create_ethereum_estimate_request.py

-258
This file was deleted.

0 commit comments

Comments
 (0)