Skip to content

Commit 285f4f6

Browse files
author
github-actions-bot
committed
fix(countries): remove duplicate countries
1 parent 5a702c9 commit 285f4f6

File tree

4 files changed

+9
-12
lines changed

4 files changed

+9
-12
lines changed

docs/AddressNoNonNullRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
**street_address** | **str, none_type** | |
88
**locality** | **str, none_type** | |
99
**administrative_area** | **str, none_type** | The administrative area of the address. If US or CA, the two-letter state or province abbreviation. Else, the province / administrative area; such as, `Dublin 2` or `County Cork` |
10-
**country** | **str** | The ISO-3166-2 two-letter abbreviation of the country. Reference https://en.wikipedia.org/wiki/ISO_3166-2 for more details |
10+
**country** | **str, none_type** | The ISO-3166-2 two-letter abbreviation of the country. Reference https://en.wikipedia.org/wiki/ISO_3166-2 for more details |
1111
**post_code** | **str, none_type** | |
1212

1313
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

openapi_client/model/address_no_non_null_request.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class AddressNoNonNullRequest(ModelNormal):
5454

5555
allowed_values = {
5656
('country',): {
57+
'None': None,
5758
'CA': "CA",
5859
'US': "US",
5960
'MX': "MX",
@@ -75,26 +76,24 @@ class AddressNoNonNullRequest(ModelNormal):
7576
'IT': "IT",
7677
'LI': "LI",
7778
'LT': "LT",
78-
'LT': "LT",
79-
'LV': "LV",
8079
'LU': "LU",
80+
'LV': "LV",
8181
'NL': "NL",
8282
'NO': "NO",
8383
'PH': "PH",
8484
'PL': "PL",
8585
'RO': "RO",
8686
'SE': "SE",
87-
'SG': "SG",
8887
'SK': "SK",
8988
'CN': "CN",
89+
'HK': "HK",
9090
'ID': "ID",
9191
'IN': "IN",
9292
'JP': "JP",
9393
'KR': "KR",
9494
'MO': "MO",
9595
'MY': "MY",
9696
'SG': "SG",
97-
'HK': "HK",
9897
'TW': "TW",
9998
},
10099
}
@@ -120,7 +119,7 @@ def openapi_types():
120119
'street_address': (str, none_type,), # noqa: E501
121120
'locality': (str, none_type,), # noqa: E501
122121
'administrative_area': (str, none_type,), # noqa: E501
123-
'country': (str,), # noqa: E501
122+
'country': (str, none_type,), # noqa: E501
124123
'post_code': (str, none_type,), # noqa: E501
125124
}
126125

@@ -156,7 +155,7 @@ def __init__(self, street_address, locality, administrative_area, country, post_
156155
street_address (str, none_type):
157156
locality (str, none_type):
158157
administrative_area (str, none_type): The administrative area of the address. If US or CA, the two-letter state or province abbreviation. Else, the province / administrative area; such as, `Dublin 2` or `County Cork`
159-
country (str): The ISO-3166-2 two-letter abbreviation of the country. Reference https://en.wikipedia.org/wiki/ISO_3166-2 for more details
158+
country (str, none_type): The ISO-3166-2 two-letter abbreviation of the country. Reference https://en.wikipedia.org/wiki/ISO_3166-2 for more details
160159
post_code (str, none_type):
161160
162161
Keyword Args:

openapi_client/model/address_response.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,24 @@ class AddressResponse(ModelNormal):
7777
'IT': "IT",
7878
'LI': "LI",
7979
'LT': "LT",
80-
'LT': "LT",
81-
'LV': "LV",
8280
'LU': "LU",
81+
'LV': "LV",
8382
'NL': "NL",
8483
'NO': "NO",
8584
'PH': "PH",
8685
'PL': "PL",
8786
'RO': "RO",
8887
'SE': "SE",
89-
'SG': "SG",
9088
'SK': "SK",
9189
'CN': "CN",
90+
'HK': "HK",
9291
'ID': "ID",
9392
'IN': "IN",
9493
'JP': "JP",
9594
'KR': "KR",
9695
'MO': "MO",
9796
'MY': "MY",
9897
'SG': "SG",
99-
'HK': "HK",
10098
'TW': "TW",
10199
},
102100
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from setuptools import setup, find_packages # noqa: H301
99

1010
NAME = "affixapi"
11-
VERSION = "1.1.57"
11+
VERSION = "1.1.58"
1212

1313
# To install the library, run the following
1414
#

0 commit comments

Comments
 (0)