-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
88f0bee
commit 75d4d3c
Showing
4 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
""" | ||
Quickbooks Online TaxRates | ||
""" | ||
from .api_base import ApiBase | ||
|
||
|
||
class TaxRates(ApiBase): | ||
"""Class for TaxRates APIs.""" | ||
|
||
GET_TAX_RATES = '/query?query=select * from TaxRate STARTPOSITION {0} MAXRESULTS 1000' | ||
GET_TAX_RATES_BY_ID = '/taxrate/{0}' | ||
|
||
def get(self): | ||
""" | ||
Get all Taxrates | ||
:return: List of Dicts in Taxrates Schema | ||
""" | ||
return self._query_get_all('TaxRate', TaxRates.GET_TAX_RATES) | ||
|
||
def get_by_id(self, taxrateId: str): | ||
""" | ||
Get Taxrates from Quickbooks Online | ||
:param taxrateId: Taxrate Id | ||
:return: Dict Response | ||
""" | ||
return self._get_request('TaxRate', TaxRates.GET_TAX_RATES_BY_ID.format(taxrateId)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
setuptools.setup( | ||
name='qbosdk', | ||
version='0.11.0', | ||
version='0.12.0', | ||
author='Shwetabh Kumar', | ||
author_email='[email protected]', | ||
description='Python SDK for accessing Quickbooks Online APIs', | ||
|