Skip to content
Closed
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
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.24.0"
__version__ = "1.24.1"

# import ApiClient
from patch_api.api_client import ApiClient
Expand Down
92 changes: 37 additions & 55 deletions patch_api/api/estimates_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,47 +29,41 @@ class EstimatesApi(object):
"""

ALLOWED_QUERY_PARAMS = [
"aircraft_code",
"amount",
"mass_g",
"total_price_cents_usd",
"project_id",
"page",
"distance_m",
"transportation_method",
"package_mass_g",
"create_order",
"model",
"make",
"year",
"transaction_value_btc_sats",
"transaction_value_eth_gwei",
"gas_used",
"average_daily_balance_btc_sats",
"average_daily_balance_eth_gwei",
"timestamp",
"origin_aiport",
"destination_aiport",
"aircraft_code",
"cabin_class",
"city",
"country_code",
"create_order",
"currency",
"destination_airport",
"destination_country_code",
"destination_locode",
"destination_postal_code",
"distance_m",
"freight_mass_g",
"gas_used",
"issued_to" "make",
"mass_g",
"model",
"number_of_nights",
"number_of_rooms",
"origin_airport",
"origin_country_code",
"origin_locode",
"origin_postal_code",
"package_mass_g",
"page",
"passenger_count",
"project_id",
"state",
"country_code",
"city",
"region",
"star_rating",
"state",
"timestamp",
"number_of_nights",
"number_of_rooms",
"vintage_year",
"total_price",
"total_price_cents_usd",
"transaction_value_btc_sats",
"transaction_value_eth_gwei",
"transportation_method",
"currency",
"amount",
"unit",
"vintage_year",
"year",
"issued_to",
]

def __init__(self, api_client=None):
Expand Down Expand Up @@ -142,6 +136,7 @@ def create_air_shipping_estimate_with_http_info(
all_params.append("total_price_cents_usd")
all_params.append("project_id")
all_params.append("metadata")
all_params.append("distance_m")
all_params.append("transportation_method")
all_params.append("package_mass_g")
all_params.append("create_order")
Expand All @@ -157,7 +152,6 @@ def create_air_shipping_estimate_with_http_info(
all_params.append("timestamp")
all_params.append("origin_airport")
all_params.append("destination_airport")
all_params.append("freight_mass_g")
all_params.append("aircraft_code")
all_params.append("cabin_class")
all_params.append("passenger_count")
Expand Down Expand Up @@ -1192,6 +1186,7 @@ def create_rail_shipping_estimate_with_http_info(
all_params.append("total_price_cents_usd")
all_params.append("project_id")
all_params.append("metadata")
all_params.append("distance_m")
all_params.append("transportation_method")
all_params.append("package_mass_g")
all_params.append("create_order")
Expand All @@ -1205,13 +1200,8 @@ def create_rail_shipping_estimate_with_http_info(
all_params.append("average_daily_balance_btc_sats")
all_params.append("average_daily_balance_eth_gwei")
all_params.append("timestamp")
all_params.append("destination_country_code")
all_params.append("destination_locode")
all_params.append("destination_postal_code")
all_params.append("freight_mass_g")
all_params.append("origin_country_code")
all_params.append("origin_locode")
all_params.append("origin_postal_code")
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")
Expand Down Expand Up @@ -1371,6 +1361,7 @@ def create_road_shipping_estimate_with_http_info(
all_params.append("total_price_cents_usd")
all_params.append("project_id")
all_params.append("metadata")
all_params.append("distance_m")
all_params.append("transportation_method")
all_params.append("package_mass_g")
all_params.append("create_order")
Expand All @@ -1384,13 +1375,8 @@ def create_road_shipping_estimate_with_http_info(
all_params.append("average_daily_balance_btc_sats")
all_params.append("average_daily_balance_eth_gwei")
all_params.append("timestamp")
all_params.append("destination_country_code")
all_params.append("destination_locode")
all_params.append("destination_postal_code")
all_params.append("freight_mass_g")
all_params.append("origin_country_code")
all_params.append("origin_locode")
all_params.append("origin_postal_code")
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")
Expand Down Expand Up @@ -1550,6 +1536,7 @@ def create_sea_shipping_estimate_with_http_info(
all_params.append("total_price_cents_usd")
all_params.append("project_id")
all_params.append("metadata")
all_params.append("distance_m")
all_params.append("transportation_method")
all_params.append("package_mass_g")
all_params.append("create_order")
Expand All @@ -1563,13 +1550,8 @@ def create_sea_shipping_estimate_with_http_info(
all_params.append("average_daily_balance_btc_sats")
all_params.append("average_daily_balance_eth_gwei")
all_params.append("timestamp")
all_params.append("destination_country_code")
all_params.append("destination_locode")
all_params.append("destination_postal_code")
all_params.append("freight_mass_g")
all_params.append("origin_country_code")
all_params.append("origin_locode")
all_params.append("origin_postal_code")
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")
Expand Down
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_airport",
"destination_airport",
"origin_aiport",
"destination_aiport",
"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_airport",
"destination_airport",
"origin_aiport",
"destination_aiport",
"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_airport",
"destination_airport",
"origin_aiport",
"destination_aiport",
"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.24.0"
self.user_agent = "patch-python/1.24.1"

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.24.0".format(
"SDK Package Version: 1.24.1".format(
env=sys.platform, pyversion=sys.version
)
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "patch-api"
VERSION = "1.24.0"
VERSION = "1.24.1"
# To install the library, run the following
#
# python setup.py install
Expand Down