Skip to content

Commit 597c39d

Browse files
committed
Update SDK; format
1 parent e6ff357 commit 597c39d

10 files changed

+13
-12
lines changed

Diff for: 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.5.1"
18+
__version__ = "1.5.2"
1919

2020
# import ApiClient
2121
from patch_api.api_client import ApiClient

Diff for: patch_api/api/estimates_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class EstimatesApi(object):
3030

3131
ALLOWED_QUERY_PARAMS = [
3232
"mass_g",
33-
"price_cents_usd",
33+
"total_price_cents_usd",
3434
"project_id",
3535
"page",
3636
"distance_m",

Diff for: patch_api/api/orders_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class OrdersApi(object):
3030

3131
ALLOWED_QUERY_PARAMS = [
3232
"mass_g",
33-
"price_cents_usd",
33+
"total_price_cents_usd",
3434
"project_id",
3535
"page",
3636
"distance_m",

Diff for: patch_api/api/preferences_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PreferencesApi(object):
3030

3131
ALLOWED_QUERY_PARAMS = [
3232
"mass_g",
33-
"price_cents_usd",
33+
"total_price_cents_usd",
3434
"project_id",
3535
"page",
3636
"distance_m",

Diff for: patch_api/api/projects_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ProjectsApi(object):
3030

3131
ALLOWED_QUERY_PARAMS = [
3232
"mass_g",
33-
"price_cents_usd",
33+
"total_price_cents_usd",
3434
"project_id",
3535
"page",
3636
"distance_m",

Diff for: 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 = "OpenAPI-Generator/1.5.1/python"
94+
self.user_agent = "OpenAPI-Generator/1.5.2/python"
9595

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

Diff for: 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.5.1".format(env=sys.platform, pyversion=sys.version)
344+
"SDK Package Version: 1.5.2".format(env=sys.platform, pyversion=sys.version)
345345
)
346346

347347
def get_host_settings(self):

Diff for: patch_api/models/order.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,10 +160,10 @@ def mass_g(self, mass_g):
160160
if (
161161
self.local_vars_configuration.client_side_validation
162162
and mass_g is not None
163-
and mass_g < 1
163+
and mass_g < 0
164164
): # noqa: E501
165165
raise ValueError(
166-
"Invalid value for `mass_g`, must be a value greater than or equal to `1`"
166+
"Invalid value for `mass_g`, must be a value greater than or equal to `0`"
167167
) # noqa: E501
168168

169169
self._mass_g = mass_g

Diff for: patch_api/models/project.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def description(self, description):
230230
def type(self):
231231
"""Gets the type of this Project. # noqa: E501
232232
233-
The type of carbon removal project, currently available project types are Biomass, Dac, Forestry, Mineralization, Ocean, Soil. # noqa: E501
233+
The type of carbon removal project, currently available project types are Biomass, Dac, Forestry, Mineralization, Ocean, Renewables, Soil. # noqa: E501
234234
235235
:return: The type of this Project. # noqa: E501
236236
:rtype: str
@@ -241,7 +241,7 @@ def type(self):
241241
def type(self, type):
242242
"""Sets the type of this Project.
243243
244-
The type of carbon removal project, currently available project types are Biomass, Dac, Forestry, Mineralization, Ocean, Soil. # noqa: E501
244+
The type of carbon removal project, currently available project types are Biomass, Dac, Forestry, Mineralization, Ocean, Renewables, Soil. # noqa: E501
245245
246246
:param type: The type of this Project. # noqa: E501
247247
:type: str
@@ -252,6 +252,7 @@ def type(self, type):
252252
"forestry",
253253
"mineralization",
254254
"ocean",
255+
"renewables",
255256
"soil",
256257
] # noqa: E501
257258
if (

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from setuptools import setup, find_packages # noqa: H301
1313

1414
NAME = "patch-api"
15-
VERSION = "1.5.1"
15+
VERSION = "1.5.2"
1616
# To install the library, run the following
1717
#
1818
# python setup.py install

0 commit comments

Comments
 (0)