From 177ad7ce9b3532513679403d1c0c576f8bb018be Mon Sep 17 00:00:00 2001 From: Nick Lloyd Date: Thu, 9 May 2024 18:58:48 +0200 Subject: [PATCH 1/2] Automated update by SDK Generator (#68) --- docs/apis/AccountingApi.md | 1 + docs/apis/EcommerceApi.md | 1 + docs/models/EcommerceOrdersFilter.md | 1 + docs/models/InvoicesFilter.md | 1 + src/apideck/model/ecommerce_orders_filter.py | 4 ++++ src/apideck/model/invoices_filter.py | 4 ++++ 6 files changed, 12 insertions(+) diff --git a/docs/apis/AccountingApi.md b/docs/apis/AccountingApi.md index 99f2a35c6..d7705f527 100644 --- a/docs/apis/AccountingApi.md +++ b/docs/apis/AccountingApi.md @@ -4610,6 +4610,7 @@ with apideck.ApiClient(configuration) as api_client: limit = 20 # int | Number of results to return. Minimum 1, Maximum 200, Default 20 (optional) if omitted the server will use the default value of 20 filter = InvoicesFilter( updated_since=dateutil_parser('2020-09-30T07:43:32Z'), + created_since=dateutil_parser('2020-09-30T07:43:32Z'), ) # InvoicesFilter | Apply filters (optional) sort = InvoicesSort( by="updated_at", diff --git a/docs/apis/EcommerceApi.md b/docs/apis/EcommerceApi.md index 7d0dea243..933cf1a24 100644 --- a/docs/apis/EcommerceApi.md +++ b/docs/apis/EcommerceApi.md @@ -291,6 +291,7 @@ with apideck.ApiClient(configuration) as api_client: email="elon@musk.com", customer_id="123", updated_since="2020-09-30T07:43:32.000Z", + created_since="2020-09-30T07:43:32.000Z", ) # EcommerceOrdersFilter | Apply filters (optional) sort = OrdersSort( by="created_at", diff --git a/docs/models/EcommerceOrdersFilter.md b/docs/models/EcommerceOrdersFilter.md index 2340c6e81..fcd232842 100644 --- a/docs/models/EcommerceOrdersFilter.md +++ b/docs/models/EcommerceOrdersFilter.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **email** | **str** | Customer email address to filter on | [optional] **customer_id** | **str** | Customer id to filter on | [optional] **updated_since** | **str** | Minimum date the order was last modified | [optional] +**created_since** | **str** | Minimum date the order was created | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/docs/models/InvoicesFilter.md b/docs/models/InvoicesFilter.md index 46a2cbc03..779aad8c5 100644 --- a/docs/models/InvoicesFilter.md +++ b/docs/models/InvoicesFilter.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **updated_since** | **datetime** | | [optional] +**created_since** | **datetime** | | [optional] [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/src/apideck/model/ecommerce_orders_filter.py b/src/apideck/model/ecommerce_orders_filter.py index 85f62a299..0f5cfd79a 100644 --- a/src/apideck/model/ecommerce_orders_filter.py +++ b/src/apideck/model/ecommerce_orders_filter.py @@ -78,6 +78,7 @@ def openapi_types(): 'email': (str,), # noqa: E501 'customer_id': (str,), # noqa: E501 'updated_since': (str,), # noqa: E501 + 'created_since': (str,), # noqa: E501 } @cached_property @@ -89,6 +90,7 @@ def discriminator(): 'email': 'email', # noqa: E501 'customer_id': 'customer_id', # noqa: E501 'updated_since': 'updated_since', # noqa: E501 + 'created_since': 'created_since', # noqa: E501 } read_only_vars = { @@ -135,6 +137,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 email (str): Customer email address to filter on. [optional] # noqa: E501 customer_id (str): Customer id to filter on. [optional] # noqa: E501 updated_since (str): Minimum date the order was last modified. [optional] # noqa: E501 + created_since (str): Minimum date the order was created. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -219,6 +222,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 email (str): Customer email address to filter on. [optional] # noqa: E501 customer_id (str): Customer id to filter on. [optional] # noqa: E501 updated_since (str): Minimum date the order was last modified. [optional] # noqa: E501 + created_since (str): Minimum date the order was created. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/apideck/model/invoices_filter.py b/src/apideck/model/invoices_filter.py index 08d716dc9..ee5c9f250 100644 --- a/src/apideck/model/invoices_filter.py +++ b/src/apideck/model/invoices_filter.py @@ -76,6 +76,7 @@ def openapi_types(): """ return { 'updated_since': (datetime,), # noqa: E501 + 'created_since': (datetime,), # noqa: E501 } @cached_property @@ -85,6 +86,7 @@ def discriminator(): attribute_map = { 'updated_since': 'updated_since', # noqa: E501 + 'created_since': 'created_since', # noqa: E501 } read_only_vars = { @@ -129,6 +131,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) updated_since (datetime): [optional] # noqa: E501 + created_since (datetime): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -211,6 +214,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) updated_since (datetime): [optional] # noqa: E501 + created_since (datetime): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) From 6234f3dc94f1b454c0c40338a07fc1e46a41a0e8 Mon Sep 17 00:00:00 2001 From: Geiser Menoia Date: Thu, 9 May 2024 14:39:41 -0300 Subject: [PATCH 2/2] chore: manually bump to 1.2.2 (#69) --- .github/workflows/release.yml | 2 +- package.json | 2 +- pyproject.toml | 2 +- src/apideck/__init__.py | 2 +- src/apideck/api_client.py | 2 +- src/apideck/configuration.py | 2 +- src/setup.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28597f87b..13a05af1b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,5 +20,5 @@ jobs: uses: ncipollo/release-action@v1 with: commit: main - tag: 1.2.1 + tag: 1.2.2 diff --git a/package.json b/package.json index 10d27fdea..672d3d5f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apideck/python", - "version": "1.2.1", + "version": "1.2.2", "description": "Apideck Python SDK", "keywords": [ "apideck", diff --git a/pyproject.toml b/pyproject.toml index 54a01f5e7..0d8d3fb2c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "apideck" -version = "1.2.1" +version = "1.2.2" authors = [ { name="Apideck", email="support@apideck.com" }, ] diff --git a/src/apideck/__init__.py b/src/apideck/__init__.py index cab1504e4..fffd9870a 100644 --- a/src/apideck/__init__.py +++ b/src/apideck/__init__.py @@ -10,7 +10,7 @@ """ -__version__ = "1.2.1" +__version__ = "1.2.2" # import ApiClient from apideck.api_client import ApiClient diff --git a/src/apideck/api_client.py b/src/apideck/api_client.py index c4fd4c7fc..9528355d9 100644 --- a/src/apideck/api_client.py +++ b/src/apideck/api_client.py @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.2.1/python' + self.user_agent = 'OpenAPI-Generator/1.2.2/python' def __enter__(self): return self diff --git a/src/apideck/configuration.py b/src/apideck/configuration.py index af29e36bf..073b3d4b7 100644 --- a/src/apideck/configuration.py +++ b/src/apideck/configuration.py @@ -427,7 +427,7 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 10.4.1\n"\ - "SDK Package Version: 1.2.1".\ + "SDK Package Version: 1.2.2".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/src/setup.py b/src/setup.py index 0d8b50c62..c4c00a17f 100644 --- a/src/setup.py +++ b/src/setup.py @@ -11,7 +11,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "apideck" -VERSION = "1.2.1" +VERSION = "1.2.2" # To install the library, run the following # # python setup.py install