Skip to content
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: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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.11.0] - 2021-09-07

### Added

- Adds support for airports, aircracts, cabin class and passenger count in flight estimates

## [1.10.0] - 2021-08-27

### 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.10.2"
__version__ = "1.11.0"

# import ApiClient
from patch_api.api_client import ApiClient
Expand Down
45 changes: 45 additions & 0 deletions patch_api/api/estimates_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class EstimatesApi(object):
"transaction_value_btc_sats",
"timestamp",
"gas_used",
"origin_aiport",
"destination_aiport",
"aircraft_code",
"cabin_class",
"passenger_count",
]

def __init__(self, api_client=None):
Expand Down Expand Up @@ -125,6 +130,11 @@ def create_bitcoin_estimate_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -278,6 +288,11 @@ def create_ethereum_estimate_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -431,6 +446,11 @@ def create_flight_estimate_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -584,6 +604,11 @@ def create_mass_estimate_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -737,6 +762,11 @@ def create_shipping_estimate_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -890,6 +920,11 @@ def create_vehicle_estimate_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -1037,6 +1072,11 @@ def retrieve_estimate_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -1174,6 +1214,11 @@ def retrieve_estimates_with_http_info(self, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down
30 changes: 30 additions & 0 deletions patch_api/api/orders_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class OrdersApi(object):
"transaction_value_btc_sats",
"timestamp",
"gas_used",
"origin_aiport",
"destination_aiport",
"aircraft_code",
"cabin_class",
"passenger_count",
]

def __init__(self, api_client=None):
Expand Down Expand Up @@ -119,6 +124,11 @@ def cancel_order_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -258,6 +268,11 @@ def create_order_with_http_info(self, create_order_request, **kwargs): # noqa:
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -405,6 +420,11 @@ def place_order_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -542,6 +562,11 @@ def retrieve_order_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -690,6 +715,11 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down
25 changes: 25 additions & 0 deletions patch_api/api/preferences_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class PreferencesApi(object):
"transaction_value_btc_sats",
"timestamp",
"gas_used",
"origin_aiport",
"destination_aiport",
"aircraft_code",
"cabin_class",
"passenger_count",
]

def __init__(self, api_client=None):
Expand Down Expand Up @@ -123,6 +128,11 @@ def create_preference_with_http_info(
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -270,6 +280,11 @@ def delete_preference_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -407,6 +422,11 @@ def retrieve_preference_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -544,6 +564,11 @@ def retrieve_preferences_with_http_info(self, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down
15 changes: 15 additions & 0 deletions patch_api/api/projects_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ class ProjectsApi(object):
"transaction_value_btc_sats",
"timestamp",
"gas_used",
"origin_aiport",
"destination_aiport",
"aircraft_code",
"cabin_class",
"passenger_count",
]

def __init__(self, api_client=None):
Expand Down Expand Up @@ -119,6 +124,11 @@ def retrieve_project_with_http_info(self, id, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
Expand Down Expand Up @@ -262,6 +272,11 @@ def retrieve_projects_with_http_info(self, **kwargs): # noqa: E501
all_params.append("transaction_value_btc_sats")
all_params.append("timestamp")
all_params.append("gas_used")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")

for key, val in six.iteritems(local_var_params["kwargs"]):
if key not in all_params:
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.10.2"
self.user_agent = "patch-python/1.11.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.10.2".format(
"SDK Package Version: 1.11.0".format(
env=sys.platform, pyversion=sys.version
)
)
Expand Down
Loading