Skip to content

Remove unused api endpoints #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/health_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
name: Run tests
strategy:
matrix:
python: ['3.6']
python: ['3.12']
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

Expand Down
24 changes: 12 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: name-tests-test
- repo: https://github.com/pycqa/flake8
rev: '4.0.1'
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- id: name-tests-test
- repo: https://github.com/pycqa/flake8
rev: "4.0.1"
hooks:
- id: flake8
args: ['--config=.flake8']
- repo: https://github.com/psf/black
rev: 22.6.0
- id: flake8
args: ["--config=.flake8"]
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- id: black
2 changes: 1 addition & 1 deletion patch_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

from __future__ import absolute_import

__version__ = "2.1.1"
__version__ = "2.3.0"

# import ApiClient
from patch_api.api_client import ApiClient
Expand Down
594 changes: 0 additions & 594 deletions patch_api/api/estimates_api.py

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions patch_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = "patch-python/2.1.1"
self.user_agent = "patch-python/2.3.0"
# Set default Patch-Version
self.patch_version = 2

Expand Down Expand Up @@ -142,9 +142,6 @@ def patch_version(self):
def patch_version(self, value):
self.default_headers["Patch-Version"] = value

def set_default_header(self, header_name, header_value):
self.default_headers[header_name] = header_value

def __call_api(
self,
resource_path,
Expand All @@ -163,6 +160,7 @@ def __call_api(
_request_timeout=None,
_host=None,
):

config = self.configuration

# header parameters
Expand Down
2 changes: 1 addition & 1 deletion patch_api/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def to_debug_report(self):
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 2\n"
"SDK Package Version: 2.1.1".format(env=sys.platform, pyversion=sys.version)
"SDK Package Version: 2.3.0".format(env=sys.platform, pyversion=sys.version)
)

def get_host_settings(self):
Expand Down
9 changes: 0 additions & 9 deletions patch_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
from patch_api.models.create_ecommerce_estimate_request import (
CreateEcommerceEstimateRequest,
)
from patch_api.models.create_ethereum_estimate_request import (
CreateEthereumEstimateRequest,
)
from patch_api.models.create_flight_estimate_request import CreateFlightEstimateRequest
from patch_api.models.create_hotel_estimate_request import CreateHotelEstimateRequest
from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest
Expand All @@ -41,13 +38,7 @@
from patch_api.models.create_sea_shipping_estimate_request import (
CreateSeaShippingEstimateRequest,
)
from patch_api.models.create_shipping_estimate_request import (
CreateShippingEstimateRequest,
)
from patch_api.models.create_success_response import CreateSuccessResponse
from patch_api.models.create_vehicle_estimate_request import (
CreateVehicleEstimateRequest,
)
from patch_api.models.delete_order_response import DeleteOrderResponse
from patch_api.models.disclaimer import Disclaimer
from patch_api.models.error_response import ErrorResponse
Expand Down
258 changes: 0 additions & 258 deletions patch_api/models/create_ethereum_estimate_request.py

This file was deleted.

Loading
Loading