This repository has been archived by the owner on Sep 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove a adiciona do instance no response! (#113)
* remove o instance no response * a zoop recebe ein para criar conta bancária mas retorna um taxpayer_id!! * fmt
- Loading branch information
1 parent
b7f4513
commit e7427fd
Showing
19 changed files
with
93 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import os | ||
|
||
from zoop_wrapper import ZoopWrapper, BankAccount | ||
from examples.utils import dump_response | ||
|
||
|
||
""" | ||
Nesse momento as constantes podem ser criadas no arquivo .py. | ||
Mas é recomendado utilizar como variável de ambiente em um '.env' | ||
""" | ||
from zoop_wrapper.constants import MARKETPLACE_ID, ZOOP_KEY | ||
|
||
|
||
client = ZoopWrapper(marketplace_id=MARKETPLACE_ID, key=ZOOP_KEY) | ||
|
||
business_seller_id = "ef90df686ab64e6cbcdc2c1d68156605" | ||
response = client.retrieve_seller(business_seller_id) | ||
|
||
ba = { | ||
"account_number": "123123", | ||
"bank_code": "001", | ||
"holder_name": "Algum Nome", | ||
"routing_number": "123123", | ||
"ein": response.data["ein"], | ||
"type": BankAccount.SAVING_TYPE, | ||
} | ||
|
||
response = client.add_bank_account(ba) | ||
|
||
dump_response(response, os.path.basename(__file__).split(".")[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"id": "4e03e7785405428a90f67f007721025c", | ||
"resource": "bank_account", | ||
"holder_name": "Algum Nome", | ||
"taxpayer_id": "74201461611044", | ||
"description": null, | ||
"bank_name": "Banco do Brasil S.A.", | ||
"bank_code": "001", | ||
"type": "Savings", | ||
"account_number": "123123", | ||
"country_code": "BR", | ||
"routing_number": "123123", | ||
"routing_check_digit": null, | ||
"phone_number": null, | ||
"is_active": true, | ||
"is_verified": false, | ||
"debitable": false, | ||
"customer": "ef90df686ab64e6cbcdc2c1d68156605", | ||
"fingerprint": "05fdfcb94af1e73c223ac75ca69665c3afd6bd62aaad9bdc99af5590b2eb8438", | ||
"address": null, | ||
"verification_checklist": { | ||
"postal_code_check": "unchecked", | ||
"address_line1_check": "unchecked", | ||
"deposit_check": "unchecked" | ||
}, | ||
"metadata": {}, | ||
"uri": "/v1/marketplaces/foo/bank_accounts/4e03e7785405428a90f67f007721025c", | ||
"created_at": "2020-10-30T22:34:01+00:00", | ||
"updated_at": "2020-10-30T22:34:01+00:00" | ||
} |
18 changes: 9 additions & 9 deletions
18
examples/data/bank_account_create.json → .../data/bank_account_create_individual.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
{ | ||
"id": "e85edf6d0add48339e3d8189f615c3b1", | ||
"id": "b45141b144f34208b18c4b695e7a6b48", | ||
"resource": "bank_account", | ||
"holder_name": "Algum Nome", | ||
"taxpayer_id": "94998862499", | ||
"description": null, | ||
"bank_name": "Banco Bradesco S.A.", | ||
"bank_code": "237", | ||
"bank_name": "Banco do Brasil S.A.", | ||
"bank_code": "001", | ||
"type": "Savings", | ||
"account_number": "123", | ||
"account_number": "123123", | ||
"country_code": "BR", | ||
"routing_number": "foo", | ||
"routing_number": "123123", | ||
"routing_check_digit": null, | ||
"phone_number": null, | ||
"is_active": true, | ||
"is_verified": false, | ||
"debitable": false, | ||
"customer": "0b05a360f4b749498f74e13004c08024", | ||
"fingerprint": "5415ba4927cb5cec4aa4dfd309a4f6813b5f2644423533ffb2d245713a285a61", | ||
"fingerprint": "66fde16cbcd461a389ad0fa31c61c30c6c5a8a3f44d40cf783f808498a59b0ec", | ||
"address": null, | ||
"verification_checklist": { | ||
"postal_code_check": "unchecked", | ||
"address_line1_check": "unchecked", | ||
"deposit_check": "unchecked" | ||
}, | ||
"metadata": {}, | ||
"uri": "/v1/marketplaces/foo/bank_accounts/e85edf6d0add48339e3d8189f615c3b1", | ||
"created_at": "2020-10-09T19:54:56+00:00", | ||
"updated_at": "2020-10-09T19:54:57+00:00" | ||
"uri": "/v1/marketplaces/foo/bank_accounts/b45141b144f34208b18c4b695e7a6b48", | ||
"created_at": "2020-10-30T22:34:10+00:00", | ||
"updated_at": "2020-10-30T22:34:11+00:00" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.