Skip to content

Commit 7a717d0

Browse files
committed
Add PostalCodes resource to exports
1 parent 1a2563d commit 7a717d0

File tree

5 files changed

+27
-2
lines changed

5 files changed

+27
-2
lines changed

cuenca/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
'JwtToken',
4545
'TermsOfService',
4646
'UserTOSAgreement',
47+
'PostalCodes',
4748
]
4849

4950
from . import http
@@ -73,6 +74,7 @@
7374
LoginToken,
7475
Otp,
7576
Platform,
77+
PostalCodes,
7678
Questionnaires,
7779
Saving,
7880
ServiceProvider,

cuenca/resources/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'JwtToken',
4141
'TermsOfService',
4242
'UserTOSAgreement',
43+
'PostalCodes',
4344
]
4445

4546
from .accounts import Account
@@ -67,6 +68,7 @@
6768
from .login_tokens import LoginToken
6869
from .otps import Otp
6970
from .platforms import Platform
71+
from .postal_codes import PostalCodes
7072
from .questionnaires import Questionnaires
7173
from .resources import RESOURCES
7274
from .savings import Saving

cuenca/resources/postal_codes.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import datetime as dt
2+
from typing import ClassVar
3+
4+
from cuenca_validations.types import Country, PostalCodeQuery, State
5+
6+
from .base import Queryable, Retrievable
7+
8+
9+
class PostalCodes(Retrievable, Queryable):
10+
_resource: ClassVar = 'postal_codes'
11+
_query_params: ClassVar = PostalCodeQuery
12+
13+
id: str
14+
created_at: dt.datetime
15+
postal_code: str
16+
colonia: str
17+
city: str
18+
state: State
19+
state_name: str
20+
country: Country
21+
country_name: str

cuenca/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = '2.1.4'
1+
__version__ = '2.1.5'
22
CLIENT_VERSION = __version__
33
API_VERSION = '2020-03-19'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
requests==2.32.3
2-
cuenca-validations==2.1.5
2+
cuenca-validations==2.1.8.dev2
33
pydantic-extra-types==2.10.2

0 commit comments

Comments
 (0)