airbyte-source-kyriba 0.1.0__py3-none-any.whl → 0.1.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- airbyte_source_kyriba-0.1.3.dist-info/METADATA +110 -0
- airbyte_source_kyriba-0.1.3.dist-info/RECORD +15 -0
- {airbyte_source_kyriba-0.1.0.dist-info → airbyte_source_kyriba-0.1.3.dist-info}/WHEEL +1 -2
- airbyte_source_kyriba-0.1.3.dist-info/entry_points.txt +3 -0
- source_kyriba/schemas/accounts.json +174 -289
- source_kyriba/schemas/bank_balances_eod.json +20 -38
- source_kyriba/schemas/bank_balances_intraday.json +21 -32
- source_kyriba/schemas/cash_balances_eod.json +36 -58
- source_kyriba/schemas/cash_balances_intraday.json +29 -57
- source_kyriba/schemas/cash_flows.json +25 -47
- source_kyriba/schemas/shared/_definitions.json +146 -333
- source_kyriba/source.py +9 -3
- source_kyriba/spec.json +9 -5
- airbyte_source_kyriba-0.1.0.dist-info/METADATA +0 -99
- airbyte_source_kyriba-0.1.0.dist-info/RECORD +0 -31
- airbyte_source_kyriba-0.1.0.dist-info/entry_points.txt +0 -2
- airbyte_source_kyriba-0.1.0.dist-info/top_level.txt +0 -3
- integration_tests/__init__.py +0 -3
- integration_tests/abnormal_state.json +0 -1
- integration_tests/acceptance.py +0 -16
- integration_tests/configured_catalog.json +0 -74
- integration_tests/invalid_config.json +0 -7
- integration_tests/sample_config.json +0 -7
- integration_tests/sample_state.json +0 -1
- unit_tests/__init__.py +0 -3
- unit_tests/test_account_sub_stream.py +0 -37
- unit_tests/test_bank_balances_stream.py +0 -77
- unit_tests/test_cash_balances_stream.py +0 -77
- unit_tests/test_cash_flows.py +0 -100
- unit_tests/test_incremental_streams.py +0 -72
- unit_tests/test_source.py +0 -35
- unit_tests/test_streams.py +0 -121
@@ -1,63 +1,45 @@
|
|
1
1
|
{
|
2
2
|
"type": "object",
|
3
|
-
"required": ["account", "bankBalance"],
|
4
3
|
"properties": {
|
5
4
|
"account": {
|
6
|
-
"
|
5
|
+
"description": "Details of the account associated with the bank balance",
|
6
|
+
"type": ["object", "null"],
|
7
7
|
"properties": {
|
8
8
|
"code": {
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"description": "Code that represents the account.",
|
12
|
-
"minLength": 1,
|
13
|
-
"maxLength": 12
|
9
|
+
"description": "The unique code identifying the account",
|
10
|
+
"type": ["string", "null"]
|
14
11
|
},
|
15
12
|
"statementIdentifier": {
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"description": "Account Statement Identifier of the account.",
|
19
|
-
"minLength": 0,
|
20
|
-
"maxLength": 50
|
13
|
+
"description": "Identifier for the statement associated with the account",
|
14
|
+
"type": ["null", "string"]
|
21
15
|
},
|
22
16
|
"uuid": {
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
26
|
-
"description": "Unique internal identifier that represents the account."
|
17
|
+
"description": "UUID (Universally Unique Identifier) of the account",
|
18
|
+
"type": ["string", "null"]
|
27
19
|
}
|
28
|
-
}
|
29
|
-
"title": "BK-BankAccountModel"
|
20
|
+
}
|
30
21
|
},
|
31
22
|
"bankBalance": {
|
32
|
-
"
|
23
|
+
"description": "The end-of-day bank balance for the account",
|
24
|
+
"type": ["object", "null"],
|
33
25
|
"properties": {
|
34
26
|
"amount": {
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"example": 1.123,
|
38
|
-
"description": "End of day balance value."
|
27
|
+
"description": "The balance amount of the account",
|
28
|
+
"type": ["number", "null"]
|
39
29
|
},
|
40
30
|
"balanceDate": {
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"example": "2019-11-11",
|
44
|
-
"description": "Date of the end of day balance."
|
31
|
+
"description": "The date when the balance was recorded",
|
32
|
+
"type": ["string", "null"]
|
45
33
|
},
|
46
34
|
"currencyCode": {
|
47
|
-
"
|
48
|
-
"
|
49
|
-
"description": "Account currency code.",
|
50
|
-
"minLength": 1,
|
51
|
-
"maxLength": 3
|
35
|
+
"description": "The currency code of the balance amount",
|
36
|
+
"type": ["string", "null"]
|
52
37
|
},
|
53
38
|
"lastKnownBalanceDate": {
|
54
|
-
"
|
55
|
-
"
|
56
|
-
"example": "2019-11-11",
|
57
|
-
"description": "Date of last known balance within the last 365 days."
|
39
|
+
"description": "The date of the last known balance for the account",
|
40
|
+
"type": ["null", "string"]
|
58
41
|
}
|
59
|
-
}
|
60
|
-
"title": "BK-BalanceModel"
|
42
|
+
}
|
61
43
|
}
|
62
44
|
},
|
63
45
|
"title": "BK-BankStatementBalanceModel",
|
@@ -1,54 +1,43 @@
|
|
1
1
|
{
|
2
2
|
"type": "object",
|
3
|
-
"required": ["account", "bankBalance"],
|
4
3
|
"properties": {
|
5
4
|
"account": {
|
6
|
-
"
|
5
|
+
"description": "Information related to the bank account",
|
6
|
+
"type": ["object", "null"],
|
7
7
|
"properties": {
|
8
8
|
"code": {
|
9
|
-
"
|
10
|
-
"
|
11
|
-
"description": "Code that represents the account.",
|
12
|
-
"minLength": 1,
|
13
|
-
"maxLength": 12
|
9
|
+
"description": "The unique code identifying the account",
|
10
|
+
"type": ["string", "null"]
|
14
11
|
},
|
15
12
|
"statementIdentifier": {
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"description": "Account Statement Identifier of the account.",
|
19
|
-
"minLength": 0,
|
20
|
-
"maxLength": 50
|
13
|
+
"description": "Identifier for the statement related to the account",
|
14
|
+
"type": ["null", "string"]
|
21
15
|
},
|
22
16
|
"uuid": {
|
23
|
-
"
|
24
|
-
"
|
25
|
-
"example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
26
|
-
"description": "Unique internal identifier that represents the account."
|
17
|
+
"description": "The universally unique identifier for the account",
|
18
|
+
"type": ["string", "null"]
|
27
19
|
}
|
28
|
-
}
|
29
|
-
"title": "BK-BankAccountModel"
|
20
|
+
}
|
30
21
|
},
|
31
22
|
"bankBalance": {
|
32
|
-
"
|
23
|
+
"description": "Details about the bank balance",
|
24
|
+
"type": ["object", "null"],
|
33
25
|
"properties": {
|
34
26
|
"amount": {
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"example": 1.123,
|
38
|
-
"description": "End of day balance value."
|
27
|
+
"description": "The actual amount of the bank balance",
|
28
|
+
"type": ["number", "null"]
|
39
29
|
},
|
40
30
|
"balanceDate": {
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"example": "2019-11-11",
|
44
|
-
"description": "Date of the end of day balance."
|
31
|
+
"description": "The date and time the balance was recorded",
|
32
|
+
"type": ["string", "null"]
|
45
33
|
},
|
46
34
|
"currencyCode": {
|
47
|
-
"
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
"
|
35
|
+
"description": "The currency code for the amount",
|
36
|
+
"type": ["string", "null"]
|
37
|
+
},
|
38
|
+
"lastKnownBalanceDate": {
|
39
|
+
"description": "The date and time of the last known balance",
|
40
|
+
"type": ["string", "null"]
|
52
41
|
}
|
53
42
|
},
|
54
43
|
"title": "BK-BalanceModel"
|
@@ -2,98 +2,76 @@
|
|
2
2
|
"type": "object",
|
3
3
|
"properties": {
|
4
4
|
"account": {
|
5
|
-
"
|
5
|
+
"description": "Details of the account associated with the cash balance",
|
6
|
+
"type": ["object", "null"],
|
6
7
|
"properties": {
|
7
8
|
"code": {
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"description": "Code that represents the account.",
|
11
|
-
"minLength": 1,
|
12
|
-
"maxLength": 12
|
9
|
+
"description": "Unique code identifier for the account",
|
10
|
+
"type": ["string", "null"]
|
13
11
|
},
|
14
12
|
"statementIdentifier": {
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"description": "Account Statement Identifier of the account.",
|
18
|
-
"minLength": 0,
|
19
|
-
"maxLength": 50
|
13
|
+
"description": "Identifier for the statement related to the account",
|
14
|
+
"type": ["null", "string"]
|
20
15
|
},
|
21
16
|
"uuid": {
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
25
|
-
"description": "Unique internal identifier that represents the account."
|
17
|
+
"description": "Universally unique identifier for the account",
|
18
|
+
"type": ["string", "null"]
|
26
19
|
}
|
27
|
-
}
|
28
|
-
"title": "BK-BankAccountModel"
|
20
|
+
}
|
29
21
|
},
|
30
22
|
"cashBalance": {
|
31
|
-
"
|
32
|
-
"
|
23
|
+
"description": "Array of cash balance data",
|
24
|
+
"type": ["array", "null"],
|
33
25
|
"items": {
|
34
|
-
"
|
26
|
+
"description": "Details of a specific cash balance entry",
|
27
|
+
"type": ["object", "null"],
|
35
28
|
"properties": {
|
36
29
|
"amount": {
|
37
|
-
"
|
38
|
-
"
|
39
|
-
"example": -50000.0,
|
40
|
-
"description": "Cash balance amount of the selected date, Amount can be positive and negative."
|
30
|
+
"description": "The amount of cash balance on the specified date",
|
31
|
+
"type": ["number", "null"]
|
41
32
|
},
|
42
33
|
"balanceDate": {
|
43
|
-
"
|
34
|
+
"description": "Date and type of the cash balance entry",
|
35
|
+
"type": ["object", "null"],
|
44
36
|
"properties": {
|
45
37
|
"date": {
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"example": "2020-05-25",
|
49
|
-
"description": "The date based on which the cash balance is calculated."
|
38
|
+
"description": "The date of the cash balance entry",
|
39
|
+
"type": ["string", "null"]
|
50
40
|
},
|
51
41
|
"dateType": {
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"description": "The date type based on which the cash balance is calculated.",
|
55
|
-
"enum": ["TRANSACTION", "VALUE"]
|
42
|
+
"description": "Type of date entry (e.g., actual, estimated)",
|
43
|
+
"type": ["string", "null"]
|
56
44
|
}
|
57
|
-
}
|
58
|
-
"title": "BK-BalanceDateModel"
|
45
|
+
}
|
59
46
|
},
|
60
47
|
"currencyCode": {
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"description": "Currency code.",
|
64
|
-
"minLength": 1,
|
65
|
-
"maxLength": 3
|
48
|
+
"description": "The currency code of the cash balance amount",
|
49
|
+
"type": ["string", "null"]
|
66
50
|
}
|
67
|
-
}
|
68
|
-
"title": "BK-CashBalanceModel"
|
51
|
+
}
|
69
52
|
}
|
70
53
|
},
|
71
54
|
"cashFlowStatus": {
|
72
|
-
"
|
55
|
+
"description": "Status of the cash flow related to the account",
|
56
|
+
"type": ["object", "null"],
|
73
57
|
"properties": {
|
74
58
|
"actual": {
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"description": "Select the status Actual to calculate the cash balance."
|
59
|
+
"description": "Status of actual cash flow",
|
60
|
+
"type": ["boolean", "null"]
|
78
61
|
},
|
79
62
|
"confirmedForecasts": {
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"description": "Select the status Confirmed forecast to calculate the cash balance."
|
63
|
+
"description": "Status of confirmed cash flow forecasts",
|
64
|
+
"type": ["boolean", "null"]
|
83
65
|
},
|
84
66
|
"estimatedForecasts": {
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"description": "Select the status Estimated forecast to calculate the cash balance."
|
67
|
+
"description": "Status of estimated cash flow forecasts",
|
68
|
+
"type": ["boolean", "null"]
|
88
69
|
},
|
89
70
|
"intraday": {
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"description": "Select the status Intraday to calculate the cash balance."
|
71
|
+
"description": "Status of intraday cash flow",
|
72
|
+
"type": ["boolean", "null"]
|
93
73
|
}
|
94
|
-
}
|
95
|
-
"title": "BK-CashFlowStatusModel",
|
96
|
-
"description": "Cash flow status."
|
74
|
+
}
|
97
75
|
}
|
98
76
|
},
|
99
77
|
"title": "BK-AccountCashBalanceModel",
|
@@ -2,98 +2,70 @@
|
|
2
2
|
"type": "object",
|
3
3
|
"properties": {
|
4
4
|
"account": {
|
5
|
-
"
|
5
|
+
"description": "Details about the account associated with the cash balance data.",
|
6
|
+
"type": ["object", "null"],
|
6
7
|
"properties": {
|
7
8
|
"code": {
|
8
|
-
"
|
9
|
-
"
|
10
|
-
"description": "Code that represents the account.",
|
11
|
-
"minLength": 1,
|
12
|
-
"maxLength": 12
|
9
|
+
"description": "The identifier code for the account.",
|
10
|
+
"type": ["string", "null"]
|
13
11
|
},
|
14
12
|
"statementIdentifier": {
|
15
|
-
"
|
16
|
-
"
|
17
|
-
"description": "Account Statement Identifier of the account.",
|
18
|
-
"minLength": 0,
|
19
|
-
"maxLength": 50
|
13
|
+
"description": "The identifier for the cash flow statement.",
|
14
|
+
"type": ["null", "string"]
|
20
15
|
},
|
21
16
|
"uuid": {
|
22
|
-
"
|
23
|
-
"
|
24
|
-
"example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
25
|
-
"description": "Unique internal identifier that represents the account."
|
17
|
+
"description": "The universally unique identifier for the account.",
|
18
|
+
"type": ["string", "null"]
|
26
19
|
}
|
27
|
-
}
|
28
|
-
"title": "BK-BankAccountModel"
|
20
|
+
}
|
29
21
|
},
|
30
22
|
"cashBalance": {
|
31
|
-
"type": "array",
|
23
|
+
"type": ["array", "null"],
|
32
24
|
"description": "Cash balance.",
|
33
25
|
"items": {
|
34
|
-
"type": "object",
|
26
|
+
"type": ["object", "null"],
|
35
27
|
"properties": {
|
36
28
|
"amount": {
|
37
|
-
"type": "number",
|
38
|
-
"format": "double",
|
39
|
-
"example": -50000.0,
|
40
|
-
"description": "Cash balance amount of the selected date, Amount can be positive and negative."
|
29
|
+
"type": ["number", "null"]
|
41
30
|
},
|
42
31
|
"balanceDate": {
|
43
|
-
"type": "object",
|
32
|
+
"type": ["object", "null"],
|
44
33
|
"properties": {
|
45
34
|
"date": {
|
46
|
-
"type": "string",
|
47
|
-
"format": "date",
|
48
|
-
"example": "2020-05-25",
|
49
|
-
"description": "The date based on which the cash balance is calculated."
|
35
|
+
"type": ["string", "null"]
|
50
36
|
},
|
51
37
|
"dateType": {
|
52
|
-
"type": "string",
|
53
|
-
"example": "TRANSACTION",
|
54
|
-
"description": "The date type based on which the cash balance is calculated.",
|
55
|
-
"enum": ["TRANSACTION", "VALUE"]
|
38
|
+
"type": ["string", "null"]
|
56
39
|
}
|
57
|
-
}
|
58
|
-
"title": "BK-BalanceDateModel"
|
40
|
+
}
|
59
41
|
},
|
60
42
|
"currencyCode": {
|
61
|
-
"type": "string",
|
62
|
-
"example": "EUR",
|
63
|
-
"description": "Currency code.",
|
64
|
-
"minLength": 1,
|
65
|
-
"maxLength": 3
|
43
|
+
"type": ["string", "null"]
|
66
44
|
}
|
67
|
-
}
|
68
|
-
"title": "BK-CashBalanceModel"
|
45
|
+
}
|
69
46
|
}
|
70
47
|
},
|
71
48
|
"cashFlowStatus": {
|
72
|
-
"
|
49
|
+
"description": "The current status of cash flow.",
|
50
|
+
"type": ["object", "null"],
|
73
51
|
"properties": {
|
74
52
|
"actual": {
|
75
|
-
"
|
76
|
-
"
|
77
|
-
"description": "Select the status Actual to calculate the cash balance."
|
53
|
+
"description": "The actual cash flow status.",
|
54
|
+
"type": ["boolean", "null"]
|
78
55
|
},
|
79
56
|
"confirmedForecasts": {
|
80
|
-
"
|
81
|
-
"
|
82
|
-
"description": "Select the status Confirmed forecast to calculate the cash balance."
|
57
|
+
"description": "The confirmed cash flow forecasts.",
|
58
|
+
"type": ["boolean", "null"]
|
83
59
|
},
|
84
60
|
"estimatedForecasts": {
|
85
|
-
"
|
86
|
-
"
|
87
|
-
"description": "Select the status Estimated forecast to calculate the cash balance."
|
61
|
+
"description": "The estimated cash flow forecasts.",
|
62
|
+
"type": ["boolean", "null"]
|
88
63
|
},
|
89
64
|
"intraday": {
|
90
|
-
"
|
91
|
-
"
|
92
|
-
"description": "Select the status Intraday to calculate the cash balance."
|
65
|
+
"description": "The intraday cash balance status.",
|
66
|
+
"type": ["boolean", "null"]
|
93
67
|
}
|
94
|
-
}
|
95
|
-
"title": "BK-CashFlowStatusModel",
|
96
|
-
"description": "Cash flow status."
|
68
|
+
}
|
97
69
|
}
|
98
70
|
},
|
99
71
|
"title": "BK-AccountCashBalanceModel",
|
@@ -3,37 +3,27 @@
|
|
3
3
|
"required": ["uuid", "account", "flowAmount", "flowCode", "status"],
|
4
4
|
"properties": {
|
5
5
|
"uuid": {
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"example": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
|
9
|
-
"description": "UUID of the cash flow."
|
6
|
+
"description": "The unique identifier for the cash flow transaction",
|
7
|
+
"type": ["string", "null"]
|
10
8
|
},
|
11
9
|
"transactionDate": {
|
12
|
-
"
|
13
|
-
"
|
14
|
-
"example": "2021-04-01",
|
15
|
-
"description": "Transaction date"
|
10
|
+
"description": "The date on which the cash flow transaction occurred",
|
11
|
+
"type": ["string", "null"]
|
16
12
|
},
|
17
13
|
"valueDate": {
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"example": "2021-04-02",
|
21
|
-
"description": "Value date"
|
14
|
+
"description": "The date on which the value of the cash flow is effective",
|
15
|
+
"type": ["string", "null"]
|
22
16
|
},
|
23
17
|
"accountingDate": {
|
24
|
-
"
|
25
|
-
"
|
26
|
-
"example": "2021-04-03",
|
27
|
-
"description": "Accounting date"
|
18
|
+
"description": "The date on which the cash flow is accounted for",
|
19
|
+
"type": ["string", "null"]
|
28
20
|
},
|
29
21
|
"updateDateTime": {
|
30
|
-
"
|
31
|
-
"
|
32
|
-
"example": "2020-01-02T13:04:35Z",
|
33
|
-
"description": "Update date time"
|
22
|
+
"description": "The date and time when the cash flow data was last updated",
|
23
|
+
"type": ["string", "null"]
|
34
24
|
},
|
35
25
|
"account": {
|
36
|
-
"description": "
|
26
|
+
"description": "The account associated with the cash flow",
|
37
27
|
"$ref": "_definitions.json#/definitions/ReferenceModel"
|
38
28
|
},
|
39
29
|
"flowCode": {
|
@@ -45,9 +35,8 @@
|
|
45
35
|
"$ref": "_definitions.json#/definitions/ReferenceModel"
|
46
36
|
},
|
47
37
|
"status": {
|
48
|
-
"
|
49
|
-
"
|
50
|
-
"description": "Cash flow status"
|
38
|
+
"description": "The status of the cash flow transaction",
|
39
|
+
"type": ["string", "null"]
|
51
40
|
},
|
52
41
|
"flowAmount": {
|
53
42
|
"description": "Flow amount",
|
@@ -58,43 +47,32 @@
|
|
58
47
|
"$ref": "_definitions.json#/definitions/AmountModel"
|
59
48
|
},
|
60
49
|
"description": {
|
61
|
-
"
|
62
|
-
"
|
63
|
-
"minLength": 0,
|
64
|
-
"maxLength": 2500
|
50
|
+
"description": "The description of the cash flow transaction",
|
51
|
+
"type": ["null", "string"]
|
65
52
|
},
|
66
53
|
"reference": {
|
67
|
-
"
|
68
|
-
"
|
69
|
-
"minLength": 0,
|
70
|
-
"maxLength": 250
|
54
|
+
"description": "A reference associated with the cash flow",
|
55
|
+
"type": ["null", "string"]
|
71
56
|
},
|
72
57
|
"origin": {
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"minLength": 0,
|
76
|
-
"maxLength": 250
|
58
|
+
"description": "The origin/source of the cash flow transaction",
|
59
|
+
"type": ["string", "null"]
|
77
60
|
},
|
78
61
|
"number": {
|
79
|
-
"
|
80
|
-
"
|
81
|
-
"description": "Cash flow's number",
|
82
|
-
"minimum": 0,
|
83
|
-
"maximum": 250
|
62
|
+
"description": "The identification number of the cash flow transaction",
|
63
|
+
"type": ["integer", "null"]
|
84
64
|
},
|
85
65
|
"glStatus": {
|
86
|
-
"
|
87
|
-
"
|
88
|
-
"description": "Cash flow GL status"
|
66
|
+
"description": "The status of the general ledger related to the cash flow",
|
67
|
+
"type": ["string", "null"]
|
89
68
|
},
|
90
69
|
"userZones": {
|
91
70
|
"description": "User zones of the cash flow",
|
92
71
|
"$ref": "_definitions.json#/definitions/UserZonesModel"
|
93
72
|
},
|
94
73
|
"actualMode": {
|
95
|
-
"
|
96
|
-
"
|
97
|
-
"description": "Cash flow actual mode"
|
74
|
+
"description": "The actual mode of the cash flow transaction",
|
75
|
+
"type": ["string", "null"]
|
98
76
|
}
|
99
77
|
},
|
100
78
|
"title": "CashFlowSearchModel",
|