Skip to content

Commit d985f46

Browse files
committed
Remove distance_m
1 parent c7b16b8 commit d985f46

9 files changed

+884
-1204
lines changed

patch_api/api/estimates_api.py

+877-974
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/models/create_air_shipping_estimate_request.py

-42
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class CreateAirShippingEstimateRequest(object):
3939
"aircraft_code": "str",
4040
"aircraft_type": "str",
4141
"freight_mass_g": "int",
42-
"distance_m": "int",
4342
"emissions_scope": "str",
4443
"project_id": "str",
4544
"create_order": "bool",
@@ -51,7 +50,6 @@ class CreateAirShippingEstimateRequest(object):
5150
"aircraft_code": "aircraft_code",
5251
"aircraft_type": "aircraft_type",
5352
"freight_mass_g": "freight_mass_g",
54-
"distance_m": "distance_m",
5553
"emissions_scope": "emissions_scope",
5654
"project_id": "project_id",
5755
"create_order": "create_order",
@@ -64,7 +62,6 @@ def __init__(
6462
aircraft_code=None,
6563
aircraft_type="unknown",
6664
freight_mass_g=None,
67-
distance_m=None,
6865
emissions_scope="wtw",
6966
project_id=None,
7067
create_order=False,
@@ -80,7 +77,6 @@ def __init__(
8077
self._aircraft_code = None
8178
self._aircraft_type = None
8279
self._freight_mass_g = None
83-
self._distance_m = None
8480
self._emissions_scope = None
8581
self._project_id = None
8682
self._create_order = None
@@ -92,7 +88,6 @@ def __init__(
9288
self.aircraft_type = aircraft_type
9389
if freight_mass_g is not None:
9490
self.freight_mass_g = freight_mass_g
95-
self.distance_m = distance_m
9691
self.emissions_scope = emissions_scope
9792
self.project_id = project_id
9893
self.create_order = create_order
@@ -228,43 +223,6 @@ def freight_mass_g(self, freight_mass_g):
228223

229224
self._freight_mass_g = freight_mass_g
230225

231-
@property
232-
def distance_m(self):
233-
"""Gets the distance_m of this CreateAirShippingEstimateRequest. # noqa: E501
234-
235-
236-
:return: The distance_m of this CreateAirShippingEstimateRequest. # noqa: E501
237-
:rtype: int
238-
"""
239-
return self._distance_m
240-
241-
@distance_m.setter
242-
def distance_m(self, distance_m):
243-
"""Sets the distance_m of this CreateAirShippingEstimateRequest.
244-
245-
246-
:param distance_m: The distance_m of this CreateAirShippingEstimateRequest. # noqa: E501
247-
:type: int
248-
"""
249-
if (
250-
self.local_vars_configuration.client_side_validation
251-
and distance_m is not None
252-
and distance_m > 400000000
253-
): # noqa: E501
254-
raise ValueError(
255-
"Invalid value for `distance_m`, must be a value less than or equal to `400000000`"
256-
) # noqa: E501
257-
if (
258-
self.local_vars_configuration.client_side_validation
259-
and distance_m is not None
260-
and distance_m < 0
261-
): # noqa: E501
262-
raise ValueError(
263-
"Invalid value for `distance_m`, must be a value greater than or equal to `0`"
264-
) # noqa: E501
265-
266-
self._distance_m = distance_m
267-
268226
@property
269227
def emissions_scope(self):
270228
"""Gets the emissions_scope of this CreateAirShippingEstimateRequest. # noqa: E501

patch_api/models/create_rail_shipping_estimate_request.py

+1-43
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class CreateRailShippingEstimateRequest(object):
4242
"origin_postal_code": "str",
4343
"fuel_type": "str",
4444
"freight_mass_g": "int",
45-
"distance_m": "int",
4645
"emissions_scope": "str",
4746
"project_id": "str",
4847
"create_order": "bool",
@@ -57,7 +56,6 @@ class CreateRailShippingEstimateRequest(object):
5756
"origin_postal_code": "origin_postal_code",
5857
"fuel_type": "fuel_type",
5958
"freight_mass_g": "freight_mass_g",
60-
"distance_m": "distance_m",
6159
"emissions_scope": "emissions_scope",
6260
"project_id": "project_id",
6361
"create_order": "create_order",
@@ -71,9 +69,8 @@ def __init__(
7169
origin_country_code=None,
7270
origin_locode=None,
7371
origin_postal_code=None,
74-
fuel_type="DEFAULT",
72+
fuel_type="default",
7573
freight_mass_g=None,
76-
distance_m=None,
7774
emissions_scope="wtw",
7875
project_id=None,
7976
create_order=False,
@@ -92,7 +89,6 @@ def __init__(
9289
self._origin_postal_code = None
9390
self._fuel_type = None
9491
self._freight_mass_g = None
95-
self._distance_m = None
9692
self._emissions_scope = None
9793
self._project_id = None
9894
self._create_order = None
@@ -107,7 +103,6 @@ def __init__(
107103
self.fuel_type = fuel_type
108104
if freight_mass_g is not None:
109105
self.freight_mass_g = freight_mass_g
110-
self.distance_m = distance_m
111106
self.emissions_scope = emissions_scope
112107
self.project_id = project_id
113108
self.create_order = create_order
@@ -306,43 +301,6 @@ def freight_mass_g(self, freight_mass_g):
306301

307302
self._freight_mass_g = freight_mass_g
308303

309-
@property
310-
def distance_m(self):
311-
"""Gets the distance_m of this CreateRailShippingEstimateRequest. # noqa: E501
312-
313-
314-
:return: The distance_m of this CreateRailShippingEstimateRequest. # noqa: E501
315-
:rtype: int
316-
"""
317-
return self._distance_m
318-
319-
@distance_m.setter
320-
def distance_m(self, distance_m):
321-
"""Sets the distance_m of this CreateRailShippingEstimateRequest.
322-
323-
324-
:param distance_m: The distance_m of this CreateRailShippingEstimateRequest. # noqa: E501
325-
:type: int
326-
"""
327-
if (
328-
self.local_vars_configuration.client_side_validation
329-
and distance_m is not None
330-
and distance_m > 400000000
331-
): # noqa: E501
332-
raise ValueError(
333-
"Invalid value for `distance_m`, must be a value less than or equal to `400000000`"
334-
) # noqa: E501
335-
if (
336-
self.local_vars_configuration.client_side_validation
337-
and distance_m is not None
338-
and distance_m < 0
339-
): # noqa: E501
340-
raise ValueError(
341-
"Invalid value for `distance_m`, must be a value greater than or equal to `0`"
342-
) # noqa: E501
343-
344-
self._distance_m = distance_m
345-
346304
@property
347305
def emissions_scope(self):
348306
"""Gets the emissions_scope of this CreateRailShippingEstimateRequest. # noqa: E501

patch_api/models/create_road_shipping_estimate_request.py

-42
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class CreateRoadShippingEstimateRequest(object):
4242
"origin_postal_code": "str",
4343
"cargo_type": "str",
4444
"container_size_code": "str",
45-
"distance_m": "int",
4645
"emissions_scope": "str",
4746
"freight_mass_g": "int",
4847
"fuel_type": "str",
@@ -61,7 +60,6 @@ class CreateRoadShippingEstimateRequest(object):
6160
"origin_postal_code": "origin_postal_code",
6261
"cargo_type": "cargo_type",
6362
"container_size_code": "container_size_code",
64-
"distance_m": "distance_m",
6563
"emissions_scope": "emissions_scope",
6664
"freight_mass_g": "freight_mass_g",
6765
"fuel_type": "fuel_type",
@@ -81,7 +79,6 @@ def __init__(
8179
origin_postal_code=None,
8280
cargo_type="average_mixed",
8381
container_size_code=None,
84-
distance_m=None,
8582
emissions_scope="wtw",
8683
freight_mass_g=None,
8784
fuel_type="diesel",
@@ -104,7 +101,6 @@ def __init__(
104101
self._origin_postal_code = None
105102
self._cargo_type = None
106103
self._container_size_code = None
107-
self._distance_m = None
108104
self._emissions_scope = None
109105
self._freight_mass_g = None
110106
self._fuel_type = None
@@ -124,7 +120,6 @@ def __init__(
124120
self.cargo_type = cargo_type
125121
if container_size_code is not None:
126122
self.container_size_code = container_size_code
127-
self.distance_m = distance_m
128123
self.emissions_scope = emissions_scope
129124
if freight_mass_g is not None:
130125
self.freight_mass_g = freight_mass_g
@@ -322,43 +317,6 @@ def container_size_code(self, container_size_code):
322317

323318
self._container_size_code = container_size_code
324319

325-
@property
326-
def distance_m(self):
327-
"""Gets the distance_m of this CreateRoadShippingEstimateRequest. # noqa: E501
328-
329-
330-
:return: The distance_m of this CreateRoadShippingEstimateRequest. # noqa: E501
331-
:rtype: int
332-
"""
333-
return self._distance_m
334-
335-
@distance_m.setter
336-
def distance_m(self, distance_m):
337-
"""Sets the distance_m of this CreateRoadShippingEstimateRequest.
338-
339-
340-
:param distance_m: The distance_m of this CreateRoadShippingEstimateRequest. # noqa: E501
341-
:type: int
342-
"""
343-
if (
344-
self.local_vars_configuration.client_side_validation
345-
and distance_m is not None
346-
and distance_m > 400000000
347-
): # noqa: E501
348-
raise ValueError(
349-
"Invalid value for `distance_m`, must be a value less than or equal to `400000000`"
350-
) # noqa: E501
351-
if (
352-
self.local_vars_configuration.client_side_validation
353-
and distance_m is not None
354-
and distance_m < 0
355-
): # noqa: E501
356-
raise ValueError(
357-
"Invalid value for `distance_m`, must be a value greater than or equal to `0`"
358-
) # noqa: E501
359-
360-
self._distance_m = distance_m
361-
362320
@property
363321
def emissions_scope(self):
364322
"""Gets the emissions_scope of this CreateRoadShippingEstimateRequest. # noqa: E501

patch_api/models/create_sea_shipping_estimate_request.py

-42
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class CreateSeaShippingEstimateRequest(object):
4141
"origin_locode": "str",
4242
"origin_postal_code": "str",
4343
"container_size_code": "str",
44-
"distance_m": "int",
4544
"emissions_scope": "str",
4645
"freight_mass_g": "int",
4746
"freight_volume_cubic_m": "int",
@@ -59,7 +58,6 @@ class CreateSeaShippingEstimateRequest(object):
5958
"origin_locode": "origin_locode",
6059
"origin_postal_code": "origin_postal_code",
6160
"container_size_code": "container_size_code",
62-
"distance_m": "distance_m",
6361
"emissions_scope": "emissions_scope",
6462
"freight_mass_g": "freight_mass_g",
6563
"freight_volume_cubic_m": "freight_volume_cubic_m",
@@ -78,7 +76,6 @@ def __init__(
7876
origin_locode=None,
7977
origin_postal_code=None,
8078
container_size_code=None,
81-
distance_m=None,
8279
emissions_scope="wtw",
8380
freight_mass_g=None,
8481
freight_volume_cubic_m=None,
@@ -100,7 +97,6 @@ def __init__(
10097
self._origin_locode = None
10198
self._origin_postal_code = None
10299
self._container_size_code = None
103-
self._distance_m = None
104100
self._emissions_scope = None
105101
self._freight_mass_g = None
106102
self._freight_volume_cubic_m = None
@@ -118,7 +114,6 @@ def __init__(
118114
self.origin_postal_code = origin_postal_code
119115
if container_size_code is not None:
120116
self.container_size_code = container_size_code
121-
self.distance_m = distance_m
122117
self.emissions_scope = emissions_scope
123118
if freight_mass_g is not None:
124119
self.freight_mass_g = freight_mass_g
@@ -285,43 +280,6 @@ def container_size_code(self, container_size_code):
285280

286281
self._container_size_code = container_size_code
287282

288-
@property
289-
def distance_m(self):
290-
"""Gets the distance_m of this CreateSeaShippingEstimateRequest. # noqa: E501
291-
292-
293-
:return: The distance_m of this CreateSeaShippingEstimateRequest. # noqa: E501
294-
:rtype: int
295-
"""
296-
return self._distance_m
297-
298-
@distance_m.setter
299-
def distance_m(self, distance_m):
300-
"""Sets the distance_m of this CreateSeaShippingEstimateRequest.
301-
302-
303-
:param distance_m: The distance_m of this CreateSeaShippingEstimateRequest. # noqa: E501
304-
:type: int
305-
"""
306-
if (
307-
self.local_vars_configuration.client_side_validation
308-
and distance_m is not None
309-
and distance_m > 400000000
310-
): # noqa: E501
311-
raise ValueError(
312-
"Invalid value for `distance_m`, must be a value less than or equal to `400000000`"
313-
) # noqa: E501
314-
if (
315-
self.local_vars_configuration.client_side_validation
316-
and distance_m is not None
317-
and distance_m < 0
318-
): # noqa: E501
319-
raise ValueError(
320-
"Invalid value for `distance_m`, must be a value greater than or equal to `0`"
321-
) # noqa: E501
322-
323-
self._distance_m = distance_m
324-
325283
@property
326284
def emissions_scope(self):
327285
"""Gets the emissions_scope of this CreateSeaShippingEstimateRequest. # noqa: E501

0 commit comments

Comments
 (0)