Skip to content

Commit

Permalink
Removing kyc from update request
Browse files Browse the repository at this point in the history
  • Loading branch information
chiqeen03 committed Jun 24, 2022
1 parent 9b35427 commit 552bf26
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 15 deletions.
7 changes: 0 additions & 7 deletions cuenca/resources/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
AddressUpdateRequest,
Beneficiary,
KYCFile,
KYCFileUpdateRequest,
PhoneNumber,
TOSAgreement,
TOSUpdateRequest,
Expand Down Expand Up @@ -134,9 +133,6 @@ def update(
profession: Optional[str] = None,
address: Optional[AddressUpdateRequest] = None,
beneficiaries: Optional[List[Beneficiary]] = None,
govt_id: Optional[KYCFileUpdateRequest] = None,
proof_of_address: Optional[KYCFileUpdateRequest] = None,
proof_of_life: Optional[KYCFileUpdateRequest] = None,
terms_of_service: Optional[TOSUpdateRequest] = None,
verification_id: Optional[str] = None,
*,
Expand All @@ -148,9 +144,6 @@ def update(
profession=profession,
address=address,
beneficiaries=beneficiaries,
govt_id=govt_id,
proof_of_address=proof_of_address,
proof_of_life=proof_of_life,
terms_of_service=terms_of_service,
verification_id=verification_id,
)
Expand Down
2 changes: 1 addition & 1 deletion cuenca/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = '0.13.2'
__version__ = '0.13.5.dev0'
CLIENT_VERSION = __version__
API_VERSION = '2020-03-19'
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
requests==2.27.1
cuenca-validations==0.10.15
cuenca-validations==0.10.18.dev0
dataclasses>=0.7;python_version<"3.7"
6 changes: 0 additions & 6 deletions tests/resources/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ def test_user_update():
changes = dict(
profession='programmer',
phone_number='+525555555555',
govt_id=dict(
type='ine',
uri_front='cuenca.com',
uri_back='cuenca.com',
is_mx=True,
),
)
user = User.update(user_id, **changes)
assert all(item in user.to_dict().keys() for item in changes.keys())
Expand Down

0 comments on commit 552bf26

Please sign in to comment.