From 0f2b8f4d217b825198395e06201399607f7a1479 Mon Sep 17 00:00:00 2001 From: Michel Perez Date: Wed, 31 Jan 2024 17:18:14 -0500 Subject: [PATCH 1/2] feat(us_verification): adding transient id field to us verification and bulk verification --- docs/MultipleComponents.md | 1 + docs/UsVerification.md | 2 ++ docs/UsVerificationOrError.md | 1 + docs/UsVerifications.md | 0 docs/UsVerificationsWritable.md | 3 ++- lob_python/model/multiple_components.py | 4 ++++ lob_python/model/us_verification.py | 4 ++++ lob_python/model/us_verification_or_error.py | 4 ++++ lob_python/model/us_verifications_writable.py | 8 ++++++-- 9 files changed, 24 insertions(+), 3 deletions(-) mode change 100644 => 100755 docs/MultipleComponents.md mode change 100644 => 100755 docs/UsVerification.md mode change 100644 => 100755 docs/UsVerificationOrError.md mode change 100644 => 100755 docs/UsVerifications.md mode change 100644 => 100755 docs/UsVerificationsWritable.md diff --git a/docs/MultipleComponents.md b/docs/MultipleComponents.md old mode 100644 new mode 100755 index 90d9c2e..7a2f565 --- a/docs/MultipleComponents.md +++ b/docs/MultipleComponents.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **city** | [**City**](City.md) | | [optional] **state** | **str** | The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed. | [optional] **zip_code** | [**ZipCode**](ZipCode.md) | | [optional] +**transient_id** | **str** | ID that is returned in the response body for the verification | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/UsVerification.md b/docs/UsVerification.md old mode 100644 new mode 100755 index 073ba7c..58b2860 --- a/docs/UsVerification.md +++ b/docs/UsVerification.md @@ -11,10 +11,12 @@ Name | Type | Description | Notes **urbanization** | [**Urbanization**](Urbanization.md) | | [optional] **last_line** | **str** | Combination of the following applicable `components`: * City (`city`) * State (`state`) * ZIP code (`zip_code`) * ZIP+4 (`zip_code_plus_4`) | [optional] **deliverability** | **str** | Summarizes the deliverability of the `us_verification` object. For full details, see the `deliverability_analysis` field. Possible values are: * `deliverable` – The address is deliverable by the USPS. * `deliverable_unnecessary_unit` – The address is deliverable, but the secondary unit information is unnecessary. * `deliverable_incorrect_unit` – The address is deliverable to the building's default address but the secondary unit provided may not exist. There is a chance the mail will not reach the intended recipient. * `deliverable_missing_unit` – The address is deliverable to the building's default address but is missing secondary unit information. There is a chance the mail will not reach the intended recipient. * `undeliverable` – The address is not deliverable according to the USPS. | [optional] +**valid_address** | **bool** | This field indicates whether an address was found in a more comprehensive address dataset that includes sources from the USPS, open source mapping data, and our proprietary mail delivery data. This field can be interpreted as a representation of whether an address is a real location or not. Additionally a valid address may contradict the deliverability field since an address can be a real valid location but the USPS may not deliver to that address. | [optional] **components** | [**UsComponents**](UsComponents.md) | | [optional] **deliverability_analysis** | [**DeliverabilityAnalysis**](DeliverabilityAnalysis.md) | | [optional] **lob_confidence_score** | [**LobConfidenceScore**](LobConfidenceScore.md) | | [optional] **object** | **str** | | [optional] if omitted the server will use the default value of "us_verification" +**transient_id** | **str** | ID that is returned in the response body for the verification | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/UsVerificationOrError.md b/docs/UsVerificationOrError.md old mode 100644 new mode 100755 index ba5b0b7..e0bab3e --- a/docs/UsVerificationOrError.md +++ b/docs/UsVerificationOrError.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **deliverability_analysis** | [**DeliverabilityAnalysis**](DeliverabilityAnalysis.md) | | [optional] **lob_confidence_score** | [**LobConfidenceScore**](LobConfidenceScore.md) | | [optional] **object** | **str** | | [optional] if omitted the server will use the default value of "us_verification" +**transient_id** | **str** | ID that is returned in the response body for the verification | [optional] **error** | [**BulkError**](BulkError.md) | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/docs/UsVerifications.md b/docs/UsVerifications.md old mode 100644 new mode 100755 diff --git a/docs/UsVerificationsWritable.md b/docs/UsVerificationsWritable.md old mode 100644 new mode 100755 index 09aae9f..06e7584 --- a/docs/UsVerificationsWritable.md +++ b/docs/UsVerificationsWritable.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address** | **str** | The entire address in one string (e.g., \"210 King Street 94107\"). _Does not support a recipient and will error when other payload parameters are provided._ | [optional] +**address** | **str** | The entire address in one string (e.g., \"2261 Market Street 94114\"). _Does not support a recipient and will error when other payload parameters are provided._ | [optional] **recipient** | [**Recipient**](Recipient.md) | | [optional] **primary_line** | [**PrimaryLineUs**](PrimaryLineUs.md) | | [optional] **secondary_line** | [**SecondaryLine**](SecondaryLine.md) | | [optional] @@ -12,6 +12,7 @@ Name | Type | Description | Notes **city** | [**City**](City.md) | | [optional] **state** | **str** | The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed. | [optional] **zip_code** | [**ZipCode**](ZipCode.md) | | [optional] +**transient_id** | **str** | ID that is returned in the response body for the verification | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [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/lob_python/model/multiple_components.py b/lob_python/model/multiple_components.py index bcdadeb..bffee3c 100755 --- a/lob_python/model/multiple_components.py +++ b/lob_python/model/multiple_components.py @@ -104,6 +104,7 @@ def openapi_types(): 'city': (str, type(None)), # noqa: E501 'state': (str, type(None)), # noqa: E501 'zip_code': (str, type(None)), # noqa: E501 + 'transient_id': (str, type(None)), # noqa: E501 } @cached_property @@ -119,6 +120,7 @@ def discriminator(): 'city': 'city', # noqa: E501 'state': 'state', # noqa: E501 'zip_code': 'zip_code', # noqa: E501 + 'transient_id': 'transient_id', # noqa: E501 } read_only_vars = { @@ -171,6 +173,7 @@ def _from_openapi_data(cls, primary_line, *args, **kwargs): # noqa: E501 city (str, type(None)): [optional] # noqa: E501 state (str, type(None)): The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed.. [optional] # noqa: E501 zip_code (str, type(None)): [optional] # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -262,6 +265,7 @@ def __init__(self, primary_line, *args, **kwargs): # noqa: E501 city (str, type(None)): [optional] # noqa: E501 state (str, type(None)): The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed.. [optional] # noqa: E501 zip_code (str, type(None)): [optional] # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/lob_python/model/us_verification.py b/lob_python/model/us_verification.py index a83d1ec..7185584 100755 --- a/lob_python/model/us_verification.py +++ b/lob_python/model/us_verification.py @@ -120,6 +120,7 @@ def openapi_types(): 'deliverability_analysis': (DeliverabilityAnalysis, type(None)), # noqa: E501 'lob_confidence_score': (LobConfidenceScore, type(None)), # noqa: E501 'object': (str, type(None)), # noqa: E501 + 'transient_id': (str, type(None)), # noqa: E501 } @cached_property @@ -140,6 +141,7 @@ def discriminator(): 'deliverability_analysis': 'deliverability_analysis', # noqa: E501 'lob_confidence_score': 'lob_confidence_score', # noqa: E501 'object': 'object', # noqa: E501 + 'transient_id': 'transient_id', # noqa: E501 } read_only_vars = { @@ -195,6 +197,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deliverability_analysis (DeliverabilityAnalysis, type(None)): [optional] # noqa: E501 lob_confidence_score (LobConfidenceScore, type(None)): [optional] # noqa: E501 object (str, type(None)): [optional] if omitted the server will use the default value of "us_verification" # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -288,6 +291,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deliverability_analysis (DeliverabilityAnalysis, type(None)): [optional] # noqa: E501 lob_confidence_score (LobConfidenceScore, type(None)): [optional] # noqa: E501 object (str, type(None)): [optional] if omitted the server will use the default value of "us_verification" # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/lob_python/model/us_verification_or_error.py b/lob_python/model/us_verification_or_error.py index 709ae14..552b415 100755 --- a/lob_python/model/us_verification_or_error.py +++ b/lob_python/model/us_verification_or_error.py @@ -121,6 +121,7 @@ def openapi_types(): 'deliverability_analysis': (DeliverabilityAnalysis, type(None)), # noqa: E501 'lob_confidence_score': (LobConfidenceScore, type(None)), # noqa: E501 'object': (str, type(None)), # noqa: E501 + 'transient_id': (str, type(None)), # noqa: E501 'error': (BulkError, type(None)), # noqa: E501 } @@ -141,6 +142,7 @@ def discriminator(): 'deliverability_analysis': 'deliverability_analysis', # noqa: E501 'lob_confidence_score': 'lob_confidence_score', # noqa: E501 'object': 'object', # noqa: E501 + 'transient_id': 'transient_id', # noqa: E501 'error': 'error', # noqa: E501 } @@ -196,6 +198,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 deliverability_analysis (DeliverabilityAnalysis, type(None)): [optional] # noqa: E501 lob_confidence_score (LobConfidenceScore, type(None)): [optional] # noqa: E501 object (str, type(None)): [optional] if omitted the server will use the default value of "us_verification" # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 error (BulkError, type(None)): [optional] # noqa: E501 """ @@ -289,6 +292,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 deliverability_analysis (DeliverabilityAnalysis, type(None)): [optional] # noqa: E501 lob_confidence_score (LobConfidenceScore, type(None)): [optional] # noqa: E501 object (str, type(None)): [optional] if omitted the server will use the default value of "us_verification" # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 error (BulkError, type(None)): [optional] # noqa: E501 """ diff --git a/lob_python/model/us_verifications_writable.py b/lob_python/model/us_verifications_writable.py index ac580ab..bd92113 100755 --- a/lob_python/model/us_verifications_writable.py +++ b/lob_python/model/us_verifications_writable.py @@ -108,6 +108,7 @@ def openapi_types(): 'city': (str, type(None)), # noqa: E501 'state': (str, type(None)), # noqa: E501 'zip_code': (str, type(None)), # noqa: E501 + 'transient_id': (str, type(None)), # noqa: E501 } @cached_property @@ -124,6 +125,7 @@ def discriminator(): 'city': 'city', # noqa: E501 'state': 'state', # noqa: E501 'zip_code': 'zip_code', # noqa: E501 + 'transient_id': 'transient_id', # noqa: E501 } read_only_vars = { @@ -167,7 +169,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - address (str, type(None)): The entire address in one string (e.g., \"210 King Street 94107\"). _Does not support a recipient and will error when other payload parameters are provided._ . [optional] # noqa: E501 + address (str, type(None)): The entire address in one string (e.g., \"2261 Market Street 94114\"). _Does not support a recipient and will error when other payload parameters are provided._ . [optional] # noqa: E501 recipient (str, type(None)): [optional] # noqa: E501 primary_line (str, type(None)): [optional] # noqa: E501 secondary_line (str, type(None)): [optional] # noqa: E501 @@ -175,6 +177,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 city (str, type(None)): [optional] # noqa: E501 state (str, type(None)): The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed.. [optional] # noqa: E501 zip_code (str, type(None)): [optional] # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -256,7 +259,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - address (str, type(None)): The entire address in one string (e.g., \"210 King Street 94107\"). _Does not support a recipient and will error when other payload parameters are provided._ . [optional] # noqa: E501 + address (str, type(None)): The entire address in one string (e.g., \"2261 Market Street 94114\"). _Does not support a recipient and will error when other payload parameters are provided._ . [optional] # noqa: E501 recipient (str, type(None)): [optional] # noqa: E501 primary_line (str, type(None)): [optional] # noqa: E501 secondary_line (str, type(None)): [optional] # noqa: E501 @@ -264,6 +267,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 city (str, type(None)): [optional] # noqa: E501 state (str, type(None)): The [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2:US) two letter code or subdivision name for the state. `city` and `state` are required if no `zip_code` is passed.. [optional] # noqa: E501 zip_code (str, type(None)): [optional] # noqa: E501 + transient_id (str, type(None)): ID that is returned in the response body for the verification . [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) From 6e04551a7b803566e0595d695e731a658041434f Mon Sep 17 00:00:00 2001 From: Michel Perez Date: Mon, 19 Feb 2024 13:16:01 -0500 Subject: [PATCH 2/2] updating version --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index c09c510..6dca4ff 100644 --- a/setup.py +++ b/setup.py @@ -8,11 +8,10 @@ Generated by: https://openapi-generator.tech """ - from setuptools import setup, find_packages # noqa: H301 NAME = "lob-python" -VERSION = "5.1.1" +VERSION = "5.1.2" # To install the library, run the following # # python setup.py install