Skip to content

Commit

Permalink
added new stream CustomerType (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpatel41 authored Sep 27, 2022
1 parent bc20ae5 commit 2c4ebab
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 0 deletions.
66 changes: 66 additions & 0 deletions tap_quickbooks/schemas/customer_types.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"properties": {
"SyncToken": {
"type": [
"null",
"string"
]
},
"domain": {
"type": [
"null",
"string"
]
},
"Name": {
"type": [
"null",
"string"
]
},
"sparse": {
"type": [
"null",
"string"
]
},
"Active": {
"type": [
"null",
"boolean"
]
},
"Id": {
"type": [
"null",
"string"
]
},
"MetaData": {
"properties": {
"CreateTime": {
"format": "date-time",
"type": [
"null",
"string"
]
},
"LastUpdatedTime": {
"format": "date-time",
"type": [
"null",
"string"
]
}
},
"type": [
"null",
"object"
]
}
},
"type": [
"null",
"object"
]
}
6 changes: 6 additions & 0 deletions tap_quickbooks/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ class Customers(Stream):
additional_where = "Active IN (true, false)"


class CustomerTypes(Stream):
stream_name = 'customer_types'
table_name = 'CustomerType'


class RefundReceipts(Stream):
stream_name = 'refund_receipts'
table_name = 'RefundReceipt'
Expand Down Expand Up @@ -431,6 +436,7 @@ def parse_data_and_write(self, response):
"classes": Classes,
"credit_memos": CreditMemos,
"customers": Customers,
"customer_types": CustomerTypes,
"departments": Departments,
"deposits": Deposits,
"employees": Employees,
Expand Down
1 change: 1 addition & 0 deletions tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def expected_check_streams():
"classes",
"credit_memos",
"customers",
"customer_types",
"departments",
"deposits",
"employees",
Expand Down

0 comments on commit 2c4ebab

Please sign in to comment.