Skip to content

Commit

Permalink
Add patch.estimates methods for GLEC-certified shipping estimates (#63)
Browse files Browse the repository at this point in the history
* Add patch.estimates methods for GLEC-certified shipping estimates

* Fix lint

* Update changelog for python syntax

* Lowercase constant values, update air param variable names

* Remove distance_m

* Not sure why freight_mass_g wasn't included
  • Loading branch information
holtbp authored Jul 28, 2022
1 parent c5ae775 commit 6e8aa80
Show file tree
Hide file tree
Showing 19 changed files with 2,818 additions and 41 deletions.
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

0 comments on commit 6e8aa80

Please sign in to comment.