Skip to content

Commit 6e8aa80

Browse files
authored
Add patch.estimates methods for GLEC-certified shipping estimates (#63)
* 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
1 parent c5ae775 commit 6e8aa80

19 files changed

+2818
-41
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.24.0] - 2022-07-22
9+
10+
### Added
11+
12+
- Adds `patch.estimates.create_air_shipping_estimate` method
13+
- Adds `patch.estimates.create_rail_shipping_estimate` method
14+
- Adds `patch.estimates.create_road_shipping_estimate` method
15+
- Adds `patch.estimates.create_sea_shipping_estimate` method
16+
817
## [1.23.0] - 2022-06-03
918

1019
### Added

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__ = "1.23.0"
18+
__version__ = "1.24.0"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

patch_api/api/estimates_api.py

+745-27
Large diffs are not rendered by default.

patch_api/api/orders_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class OrdersApi(object):
4646
"average_daily_balance_btc_sats",
4747
"average_daily_balance_eth_gwei",
4848
"timestamp",
49-
"origin_aiport",
50-
"destination_aiport",
49+
"origin_airport",
50+
"destination_airport",
5151
"aircraft_code",
5252
"cabin_class",
5353
"passenger_count",

patch_api/api/projects_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class ProjectsApi(object):
4646
"average_daily_balance_btc_sats",
4747
"average_daily_balance_eth_gwei",
4848
"timestamp",
49-
"origin_aiport",
50-
"destination_aiport",
49+
"origin_airport",
50+
"destination_airport",
5151
"aircraft_code",
5252
"cabin_class",
5353
"passenger_count",

patch_api/api/technology_types_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ class TechnologyTypesApi(object):
4646
"average_daily_balance_btc_sats",
4747
"average_daily_balance_eth_gwei",
4848
"timestamp",
49-
"origin_aiport",
50-
"destination_aiport",
49+
"origin_airport",
50+
"destination_airport",
5151
"aircraft_code",
5252
"cabin_class",
5353
"passenger_count",

patch_api/api_client.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def __init__(
9191
self.default_headers[header_name] = header_value
9292
self.cookie = cookie
9393
# Set default User-Agent.
94-
self.user_agent = "patch-python/1.23.0"
94+
self.user_agent = "patch-python/1.24.0"
9595

9696
def __del__(self):
9797
if self._pool:

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: v1\n"
344-
"SDK Package Version: 1.23.0".format(
344+
"SDK Package Version: 1.24.0".format(
345345
env=sys.platform, pyversion=sys.version
346346
)
347347
)

patch_api/models/__init__.py

+12
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
# import models into model package
1818
from patch_api.models.allocation import Allocation
19+
from patch_api.models.create_air_shipping_estimate_request import (
20+
CreateAirShippingEstimateRequest,
21+
)
1922
from patch_api.models.create_bitcoin_estimate_request import (
2023
CreateBitcoinEstimateRequest,
2124
)
@@ -26,6 +29,15 @@
2629
from patch_api.models.create_hotel_estimate_request import CreateHotelEstimateRequest
2730
from patch_api.models.create_mass_estimate_request import CreateMassEstimateRequest
2831
from patch_api.models.create_order_request import CreateOrderRequest
32+
from patch_api.models.create_rail_shipping_estimate_request import (
33+
CreateRailShippingEstimateRequest,
34+
)
35+
from patch_api.models.create_road_shipping_estimate_request import (
36+
CreateRoadShippingEstimateRequest,
37+
)
38+
from patch_api.models.create_sea_shipping_estimate_request import (
39+
CreateSeaShippingEstimateRequest,
40+
)
2941
from patch_api.models.create_shipping_estimate_request import (
3042
CreateShippingEstimateRequest,
3143
)

0 commit comments

Comments
 (0)