Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new fields in the schema of credit_notes #117

Merged
merged 7 commits into from
Jan 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- run:
name: 'Integration Tests'
command: |
aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/sandbox dev_env.sh
aws s3 cp s3://com-stitchdata-dev-deployment-assets/environments/tap-tester/tap_tester_sandbox dev_env.sh
source dev_env.sh
source /usr/local/share/virtualenvs/tap-tester/bin/activate
run-test --tap=tap-xero tests
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 2.3.1
* Add new fields into the schema of credit_notes stream [#117](https://github.com/singer-io/tap-xero/pull/117)

## 2.3.0
* Updates to run on python 3.9.6 [#113](https://github.com/singer-io/tap-xero/pull/113)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages

setup(name="tap-xero",
version="2.3.0",
version="2.3.1",
description="Singer.io tap for extracting data from the Xero API",
author="Stitch",
url="http://singer.io",
Expand Down
10 changes: 10 additions & 0 deletions tap_xero/schemas/credit_notes.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@
"array"
]
},
"InvoiceAddresses": {
"items": {
"$ref": "invoice_address"
},
"type": [
"null",
"array"
]
},
"SubTotal": {
"type": [
"null",
Expand Down Expand Up @@ -202,6 +211,7 @@
"tap_schema_dependencies": [
"contacts",
"line_items",
"invoice_address",
"allocations"
],
"additionalProperties": false
Expand Down
63 changes: 63 additions & 0 deletions tap_xero/schemas/invoice_address.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"type": [
"null",
"object"
],
"properties": {
"InvoiceAddressType": {
"type": [
"null",
"string"
]
},
"AddressLine1": {
"type": [
"null",
"string"
]
},
"AddressLine2": {
"type": [
"null",
"string"
]
},
"AddressLine3": {
"type": [
"null",
"string"
]
},
"AddressLine4": {
"type": [
"null",
"string"
]
},
"City": {
"type": [
"null",
"string"
]
},
"Region": {
"type": [
"null",
"string"
]
},
"PostalCode": {
"type": [
"null",
"string"
]
},
"Country": {
"type": [
"null",
"string"
]
}
},
"additionalProperties": false
}
24 changes: 23 additions & 1 deletion tap_xero/schemas/line_items.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,27 @@
"exclusiveMinimum": true,
"exclusiveMaximum": true
},
"Taxability": {
"type": [
"null",
"string"
]
},
"TaxBreakdown": {
"items": {
"$ref": "tax_breakdown_component"
},
"type": [
"null",
"array"
]
},
"SalesTaxCodeId": {
"type": [
"null",
"number"
]
},
"TaxAmount": {
"type": [
"null",
Expand Down Expand Up @@ -99,7 +120,8 @@
}
},
"tap_schema_dependencies": [
"tracking_categories"
"tracking_categories",
"tax_breakdown_component"
],
"additionalProperties": false
}
69 changes: 69 additions & 0 deletions tap_xero/schemas/tax_breakdown_component.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"type": [
"null",
"object"
],
"properties": {
"TaxComponentId": {
"type": [
"null",
"string"
]
},
"Type": {
"type": [
"null",
"string"
]
},
"Name": {
"type": [
"null",
"string"
]
},
"TaxPercentage": {
"type": [
"null",
"number"
]
},
"TaxAmount": {
"type": [
"null",
"number"
]
},
"TaxableAmount": {
"type": [
"null",
"number"
]
},
"NonTaxableAmount": {
"type": [
"null",
"number"
]
},
"ExemptAmount": {
"type": [
"null",
"number"
]
},
"StateAssignedNo": {
"type": [
"null",
"string"
]
},
"JurisdictionRegion": {
"type": [
"null",
"string"
]
}
},
"additionalProperties": false
}
Loading