Skip to content

Commit f874f16

Browse files
committed
API version 2.1.0 See https://docs.patch.io/#/changelog for changes
1 parent 171cb92 commit f874f16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+614
-72
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Python
2424
uses: actions/setup-python@v2
2525
with:
26-
python-version: '3.6'
26+
python-version: '3.10'
2727
- name: Run tests
2828
env:
2929
SANDBOX_API_KEY: ${{ secrets.SANDBOX_API_KEY }}

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ 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+
## [2.1.0] - 2023-03-30
9+
10+
### Added
11+
12+
- Adds optional `vintage_start_year` and `vintage_end_year` field to `order` creation
13+
- Adds optional `vintage_start_year` and `vintage_end_year` field to `order_line_item` create and update
14+
- Adds optional `vintage_start_year` and `vintage_end_year` field to `inventory` creation
15+
- Adds `vintage_start_year` and `vintage_end_year` field to `order` response
16+
- Adds `vintage_start_year` and `vintage_end_year` field to `order_line_item` response
17+
- Adds optional `carrier_scac` field to `patch.estimates.create_road_shipping_estimate`
18+
819
## [1.24.2] - 2022-08-10
920

1021
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ pip install patch-api
3232

3333
### Requirements
3434

35-
- Python 3.6.1
35+
- Python 3.10
3636

3737
## Usage
3838

patch_api/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
The core API used to integrate with Patch's service # noqa: E501
99
10-
The version of the OpenAPI document: 2
10+
The version of the OpenAPI document: 2.1.0
1111
1212
Generated by: https://openapi-generator.tech
1313
"""
1414

1515

1616
from __future__ import absolute_import
1717

18-
__version__ = "2.0.0"
18+
__version__ = "2.1.0"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

patch_api/api/estimates_api.py

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The core API used to integrate with Patch's service # noqa: E501
77
8-
The version of the OpenAPI document: 2
8+
The version of the OpenAPI document: 2.1.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -79,6 +79,8 @@ class EstimatesApi(object):
7979
"origin_postal_code",
8080
"truck_weight_t",
8181
"vessel_imo",
82+
"vintage_start_year",
83+
"vintage_end_year",
8284
]
8385

8486
def __init__(self, api_client=None):
@@ -203,6 +205,8 @@ def create_air_shipping_estimate_with_http_info(
203205
all_params.append("origin_postal_code")
204206
all_params.append("truck_weight_t")
205207
all_params.append("vessel_imo")
208+
all_params.append("vintage_start_year")
209+
all_params.append("vintage_end_year")
206210

207211
for key, val in six.iteritems(local_var_params["kwargs"]):
208212
if key not in all_params:
@@ -399,6 +403,8 @@ def create_bitcoin_estimate_with_http_info(
399403
all_params.append("origin_postal_code")
400404
all_params.append("truck_weight_t")
401405
all_params.append("vessel_imo")
406+
all_params.append("vintage_start_year")
407+
all_params.append("vintage_end_year")
402408

403409
for key, val in six.iteritems(local_var_params["kwargs"]):
404410
if key not in all_params:
@@ -598,6 +604,8 @@ def create_ecommerce_estimate_with_http_info(
598604
all_params.append("origin_postal_code")
599605
all_params.append("truck_weight_t")
600606
all_params.append("vessel_imo")
607+
all_params.append("vintage_start_year")
608+
all_params.append("vintage_end_year")
601609

602610
for key, val in six.iteritems(local_var_params["kwargs"]):
603611
if key not in all_params:
@@ -794,6 +802,8 @@ def create_ethereum_estimate_with_http_info(
794802
all_params.append("origin_postal_code")
795803
all_params.append("truck_weight_t")
796804
all_params.append("vessel_imo")
805+
all_params.append("vintage_start_year")
806+
all_params.append("vintage_end_year")
797807

798808
for key, val in six.iteritems(local_var_params["kwargs"]):
799809
if key not in all_params:
@@ -990,6 +1000,8 @@ def create_flight_estimate_with_http_info(
9901000
all_params.append("origin_postal_code")
9911001
all_params.append("truck_weight_t")
9921002
all_params.append("vessel_imo")
1003+
all_params.append("vintage_start_year")
1004+
all_params.append("vintage_end_year")
9931005

9941006
for key, val in six.iteritems(local_var_params["kwargs"]):
9951007
if key not in all_params:
@@ -1186,6 +1198,8 @@ def create_hotel_estimate_with_http_info(
11861198
all_params.append("origin_postal_code")
11871199
all_params.append("truck_weight_t")
11881200
all_params.append("vessel_imo")
1201+
all_params.append("vintage_start_year")
1202+
all_params.append("vintage_end_year")
11891203

11901204
for key, val in six.iteritems(local_var_params["kwargs"]):
11911205
if key not in all_params:
@@ -1382,6 +1396,8 @@ def create_mass_estimate_with_http_info(
13821396
all_params.append("origin_postal_code")
13831397
all_params.append("truck_weight_t")
13841398
all_params.append("vessel_imo")
1399+
all_params.append("vintage_start_year")
1400+
all_params.append("vintage_end_year")
13851401

13861402
for key, val in six.iteritems(local_var_params["kwargs"]):
13871403
if key not in all_params:
@@ -1581,6 +1597,8 @@ def create_rail_shipping_estimate_with_http_info(
15811597
all_params.append("origin_postal_code")
15821598
all_params.append("truck_weight_t")
15831599
all_params.append("vessel_imo")
1600+
all_params.append("vintage_start_year")
1601+
all_params.append("vintage_end_year")
15841602

15851603
for key, val in six.iteritems(local_var_params["kwargs"]):
15861604
if key not in all_params:
@@ -1780,6 +1798,8 @@ def create_road_shipping_estimate_with_http_info(
17801798
all_params.append("origin_postal_code")
17811799
all_params.append("truck_weight_t")
17821800
all_params.append("vessel_imo")
1801+
all_params.append("vintage_start_year")
1802+
all_params.append("vintage_end_year")
17831803

17841804
for key, val in six.iteritems(local_var_params["kwargs"]):
17851805
if key not in all_params:
@@ -1979,6 +1999,8 @@ def create_sea_shipping_estimate_with_http_info(
19791999
all_params.append("origin_postal_code")
19802000
all_params.append("truck_weight_t")
19812001
all_params.append("vessel_imo")
2002+
all_params.append("vintage_start_year")
2003+
all_params.append("vintage_end_year")
19822004

19832005
for key, val in six.iteritems(local_var_params["kwargs"]):
19842006
if key not in all_params:
@@ -2175,6 +2197,8 @@ def create_shipping_estimate_with_http_info(
21752197
all_params.append("origin_postal_code")
21762198
all_params.append("truck_weight_t")
21772199
all_params.append("vessel_imo")
2200+
all_params.append("vintage_start_year")
2201+
all_params.append("vintage_end_year")
21782202

21792203
for key, val in six.iteritems(local_var_params["kwargs"]):
21802204
if key not in all_params:
@@ -2371,6 +2395,8 @@ def create_vehicle_estimate_with_http_info(
23712395
all_params.append("origin_postal_code")
23722396
all_params.append("truck_weight_t")
23732397
all_params.append("vessel_imo")
2398+
all_params.append("vintage_start_year")
2399+
all_params.append("vintage_end_year")
23742400

23752401
for key, val in six.iteritems(local_var_params["kwargs"]):
23762402
if key not in all_params:
@@ -2561,6 +2587,8 @@ def retrieve_estimate_with_http_info(self, id, **kwargs): # noqa: E501
25612587
all_params.append("origin_postal_code")
25622588
all_params.append("truck_weight_t")
25632589
all_params.append("vessel_imo")
2590+
all_params.append("vintage_start_year")
2591+
all_params.append("vintage_end_year")
25642592

25652593
for key, val in six.iteritems(local_var_params["kwargs"]):
25662594
if key not in all_params:
@@ -2741,6 +2769,8 @@ def retrieve_estimates_with_http_info(self, **kwargs): # noqa: E501
27412769
all_params.append("origin_postal_code")
27422770
all_params.append("truck_weight_t")
27432771
all_params.append("vessel_imo")
2772+
all_params.append("vintage_start_year")
2773+
all_params.append("vintage_end_year")
27442774

27452775
for key, val in six.iteritems(local_var_params["kwargs"]):
27462776
if key not in all_params:

patch_api/api/order_line_items_api.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The core API used to integrate with Patch's service # noqa: E501
77
8-
The version of the OpenAPI document: 2
8+
The version of the OpenAPI document: 2.1.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -79,6 +79,8 @@ class OrderLineItemsApi(object):
7979
"origin_postal_code",
8080
"truck_weight_t",
8181
"vessel_imo",
82+
"vintage_start_year",
83+
"vintage_end_year",
8284
]
8385

8486
def __init__(self, api_client=None):
@@ -206,6 +208,8 @@ def create_order_line_item_with_http_info(
206208
all_params.append("origin_postal_code")
207209
all_params.append("truck_weight_t")
208210
all_params.append("vessel_imo")
211+
all_params.append("vintage_start_year")
212+
all_params.append("vintage_end_year")
209213

210214
for key, val in six.iteritems(local_var_params["kwargs"]):
211215
if key not in all_params:
@@ -411,6 +415,8 @@ def delete_order_line_item_with_http_info(
411415
all_params.append("origin_postal_code")
412416
all_params.append("truck_weight_t")
413417
all_params.append("vessel_imo")
418+
all_params.append("vintage_start_year")
419+
all_params.append("vintage_end_year")
414420

415421
for key, val in six.iteritems(local_var_params["kwargs"]):
416422
if key not in all_params:
@@ -618,6 +624,8 @@ def update_order_line_item_with_http_info(
618624
all_params.append("origin_postal_code")
619625
all_params.append("truck_weight_t")
620626
all_params.append("vessel_imo")
627+
all_params.append("vintage_start_year")
628+
all_params.append("vintage_end_year")
621629

622630
for key, val in six.iteritems(local_var_params["kwargs"]):
623631
if key not in all_params:

patch_api/api/orders_api.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The core API used to integrate with Patch's service # noqa: E501
77
8-
The version of the OpenAPI document: 2
8+
The version of the OpenAPI document: 2.1.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -79,6 +79,8 @@ class OrdersApi(object):
7979
"origin_postal_code",
8080
"truck_weight_t",
8181
"vessel_imo",
82+
"vintage_start_year",
83+
"vintage_end_year",
8284
]
8385

8486
def __init__(self, api_client=None):
@@ -194,6 +196,8 @@ def cancel_order_with_http_info(self, id, **kwargs): # noqa: E501
194196
all_params.append("origin_postal_code")
195197
all_params.append("truck_weight_t")
196198
all_params.append("vessel_imo")
199+
all_params.append("vintage_start_year")
200+
all_params.append("vintage_end_year")
197201

198202
for key, val in six.iteritems(local_var_params["kwargs"]):
199203
if key not in all_params:
@@ -376,6 +380,8 @@ def create_order_with_http_info(self, create_order_request, **kwargs): # noqa:
376380
all_params.append("origin_postal_code")
377381
all_params.append("truck_weight_t")
378382
all_params.append("vessel_imo")
383+
all_params.append("vintage_start_year")
384+
all_params.append("vintage_end_year")
379385

380386
for key, val in six.iteritems(local_var_params["kwargs"]):
381387
if key not in all_params:
@@ -566,6 +572,8 @@ def delete_order_with_http_info(self, uid, **kwargs): # noqa: E501
566572
all_params.append("origin_postal_code")
567573
all_params.append("truck_weight_t")
568574
all_params.append("vessel_imo")
575+
all_params.append("vintage_start_year")
576+
all_params.append("vintage_end_year")
569577

570578
for key, val in six.iteritems(local_var_params["kwargs"]):
571579
if key not in all_params:
@@ -748,6 +756,8 @@ def place_order_with_http_info(self, id, **kwargs): # noqa: E501
748756
all_params.append("origin_postal_code")
749757
all_params.append("truck_weight_t")
750758
all_params.append("vessel_imo")
759+
all_params.append("vintage_start_year")
760+
all_params.append("vintage_end_year")
751761

752762
for key, val in six.iteritems(local_var_params["kwargs"]):
753763
if key not in all_params:
@@ -937,6 +947,8 @@ def retrieve_order_with_http_info(self, id, **kwargs): # noqa: E501
937947
all_params.append("origin_postal_code")
938948
all_params.append("truck_weight_t")
939949
all_params.append("vessel_imo")
950+
all_params.append("vintage_start_year")
951+
all_params.append("vintage_end_year")
940952

941953
for key, val in six.iteritems(local_var_params["kwargs"]):
942954
if key not in all_params:
@@ -1129,6 +1141,8 @@ def retrieve_orders_with_http_info(self, **kwargs): # noqa: E501
11291141
all_params.append("origin_postal_code")
11301142
all_params.append("truck_weight_t")
11311143
all_params.append("vessel_imo")
1144+
all_params.append("vintage_start_year")
1145+
all_params.append("vintage_end_year")
11321146

11331147
for key, val in six.iteritems(local_var_params["kwargs"]):
11341148
if key not in all_params:

patch_api/api/projects_api.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The core API used to integrate with Patch's service # noqa: E501
77
8-
The version of the OpenAPI document: 2
8+
The version of the OpenAPI document: 2.1.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -79,6 +79,8 @@ class ProjectsApi(object):
7979
"origin_postal_code",
8080
"truck_weight_t",
8181
"vessel_imo",
82+
"vintage_start_year",
83+
"vintage_end_year",
8284
]
8385

8486
def __init__(self, api_client=None):
@@ -196,6 +198,8 @@ def retrieve_project_with_http_info(self, id, **kwargs): # noqa: E501
196198
all_params.append("origin_postal_code")
197199
all_params.append("truck_weight_t")
198200
all_params.append("vessel_imo")
201+
all_params.append("vintage_start_year")
202+
all_params.append("vintage_end_year")
199203

200204
for key, val in six.iteritems(local_var_params["kwargs"]):
201205
if key not in all_params:
@@ -395,6 +399,8 @@ def retrieve_projects_with_http_info(self, **kwargs): # noqa: E501
395399
all_params.append("origin_postal_code")
396400
all_params.append("truck_weight_t")
397401
all_params.append("vessel_imo")
402+
all_params.append("vintage_start_year")
403+
all_params.append("vintage_end_year")
398404

399405
for key, val in six.iteritems(local_var_params["kwargs"]):
400406
if key not in all_params:

patch_api/api/technology_types_api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The core API used to integrate with Patch's service # noqa: E501
77
8-
The version of the OpenAPI document: 2
8+
The version of the OpenAPI document: 2.1.0
99
1010
Generated by: https://openapi-generator.tech
1111
"""
@@ -79,6 +79,8 @@ class TechnologyTypesApi(object):
7979
"origin_postal_code",
8080
"truck_weight_t",
8181
"vessel_imo",
82+
"vintage_start_year",
83+
"vintage_end_year",
8284
]
8385

8486
def __init__(self, api_client=None):
@@ -192,6 +194,8 @@ def retrieve_technology_types_with_http_info(self, **kwargs): # noqa: E501
192194
all_params.append("origin_postal_code")
193195
all_params.append("truck_weight_t")
194196
all_params.append("vessel_imo")
197+
all_params.append("vintage_start_year")
198+
all_params.append("vintage_end_year")
195199

196200
for key, val in six.iteritems(local_var_params["kwargs"]):
197201
if key not in all_params:

0 commit comments

Comments
 (0)