Skip to content

Add patch.estimates methods for GLEC-certified shipping estimates #63

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 6 commits into from
Jul 28, 2022
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ 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.24.0] - 2022-07-22

### Added

- Adds `patch.estimates.create_air_shipping_estimate` method
- Adds `patch.estimates.create_rail_shipping_estimate` method
- Adds `patch.estimates.create_road_shipping_estimate` method
- Adds `patch.estimates.create_sea_shipping_estimate` method

## [1.23.0] - 2022-06-03

### Added
Expand Down
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__ = "1.23.0"
__version__ = "1.24.0"

# import ApiClient
from patch_api.api_client import ApiClient
Expand Down
772 changes: 745 additions & 27 deletions patch_api/api/estimates_api.py

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions patch_api/api/orders_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class OrdersApi(object):
"average_daily_balance_btc_sats",
"average_daily_balance_eth_gwei",
"timestamp",
"origin_aiport",
"destination_aiport",
"origin_airport",
"destination_airport",
"aircraft_code",
"cabin_class",
"passenger_count",
Expand Down
4 changes: 2 additions & 2 deletions patch_api/api/projects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class ProjectsApi(object):
"average_daily_balance_btc_sats",
"average_daily_balance_eth_gwei",
"timestamp",
"origin_aiport",
"destination_aiport",
"origin_airport",
"destination_airport",
"aircraft_code",
"cabin_class",
"passenger_count",
Expand Down
4 changes: 2 additions & 2 deletions patch_api/api/technology_types_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ class TechnologyTypesApi(object):
"average_daily_balance_btc_sats",
"average_daily_balance_eth_gwei",
"timestamp",
"origin_aiport",
"destination_aiport",
"origin_airport",
"destination_airport",
"aircraft_code",
"cabin_class",
"passenger_count",
Expand Down
2 changes: 1 addition & 1 deletion patch_api/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,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.23.0"
self.user_agent = "patch-python/1.24.0"

def __del__(self):
if self._pool:
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: v1\n"
"SDK Package Version: 1.23.0".format(
"SDK Package Version: 1.24.0".format(
env=sys.platform, pyversion=sys.version
)
)
Expand Down
12 changes: 12 additions & 0 deletions patch_api/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@

# import models into model package
from patch_api.models.allocation import Allocation
from patch_api.models.create_air_shipping_estimate_request import (
CreateAirShippingEstimateRequest,
)
from patch_api.models.create_bitcoin_estimate_request import (
CreateBitcoinEstimateRequest,
)
Expand All @@ -26,6 +29,15 @@
from patch_api.models.create_hotel_estimate_request import CreateHotelEstimateRequest
from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest
from patch_api.models.create_order_request import CreateOrderRequest
from patch_api.models.create_rail_shipping_estimate_request import (
CreateRailShippingEstimateRequest,
)
from patch_api.models.create_road_shipping_estimate_request import (
CreateRoadShippingEstimateRequest,
)
from patch_api.models.create_sea_shipping_estimate_request import (
CreateSeaShippingEstimateRequest,
)
from patch_api.models.create_shipping_estimate_request import (
CreateShippingEstimateRequest,
)
Expand Down
Loading