Skip to content

Commit 045509c

Browse files
authored
Merge pull request #7 from substringag/adds-banking
Adds bankings accounts
2 parents d25ff09 + 576340e commit 045509c

File tree

3 files changed

+70
-1
lines changed

3 files changed

+70
-1
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"type": "object",
3+
"additionalProperties": false,
4+
"properties": {
5+
"id": {
6+
"type": "uuid"
7+
},
8+
"name": {
9+
"type": "string"
10+
},
11+
"owner": {
12+
"type": "string"
13+
},
14+
"owner_address": {
15+
"type": "string"
16+
},
17+
"owner_zip": {
18+
"type": "integer"
19+
},
20+
"owner_city": {
21+
"type": "string"
22+
},
23+
"bc_nr": {
24+
"type": "integer"
25+
},
26+
"bank_name": {
27+
"type": "string"
28+
},
29+
"bank_nr": {
30+
"type": "string"
31+
},
32+
"bank_account_nr": {
33+
"type": "string"
34+
},
35+
"iban_nr": {
36+
"type": "string"
37+
},
38+
"currency_id": {
39+
"type": "integer"
40+
},
41+
"account_id": {
42+
"type": "integer"
43+
},
44+
"remarks": {
45+
"type": "string"
46+
},
47+
"invoice_mode": {
48+
"type": "string"
49+
},
50+
"qr_invoice_iban": {
51+
"type": "string"
52+
},
53+
"type": {
54+
"type": "string"
55+
}
56+
}
57+
}
58+

tap_bexio/streams.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,4 +282,13 @@ class PaymentTypeStream(bexioStream):
282282
replication_key = "id"
283283
schema_filepath = SCHEMAS_DIR / "payment_type.json"
284284

285+
class BankAccountsStream(bexioStream):
286+
"""Banks accounts stream."""
287+
name = "bank_accounts"
288+
path = "3.0/banking/accounts"
289+
data_key = "bank_accounts"
290+
primary_keys = ["id"]
291+
replication_method: "FULL_TABLE"
292+
replication_key = "id"
293+
schema_filepath = SCHEMAS_DIR / "banking_bank_account.json"
285294

tap_bexio/tap.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
CountryStream,
3232
PaymentTypeStream,
3333
UnitStream,
34+
BankAccountsStream,
3435
)
3536

3637
STREAM_TYPES = [
@@ -58,7 +59,8 @@
5859
LanguageStream,
5960
CountryStream,
6061
PaymentTypeStream,
61-
UnitStream
62+
UnitStream,
63+
BankAccountsStream,
6264
]
6365

6466

0 commit comments

Comments
 (0)