File tree Expand file tree Collapse file tree 6 files changed +13
-5
lines changed Expand file tree Collapse file tree 6 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 11Changelog
22=========
3+ * 0.9.7 (March 12, 2024)
4+ * Update intuit-oauth dependency
5+ * Updated CompanyCurrency to ref to use Code instead of Id
6+ * Added missing CurrentRef property from customer object
7+ * Made improvements to file attachment handling
8+
39* 0.9.6 (January 2, 2024)
410 * Replace RAuth with requests_oauthlib
511 * Removed python 2 code from client.py
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pytest-cov = "*"
1111
1212[packages ]
1313urllib3 = " >=2.1.0"
14- intuit-oauth = " ==1.2.4 "
14+ intuit-oauth = " ==1.2.5 "
1515requests = " >=2.31.0"
1616simplejson = " >=3.19.1"
1717requests_oauthlib = " >=1.3.1"
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ def to_ref(self):
3535
3636 ref .name = self .Name
3737 ref .type = self .qbo_object_name
38- ref .value = self .Id
38+ ref .value = self .Code
3939
4040 return ref
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ def __init__(self):
7171 self .PaymentMethodRef = None
7272 self .ParentRef = None
7373 self .ARAccountRef = None
74+ self .CurrencyRef = None
7475
7576 def __str__ (self ):
7677 return self .DisplayName
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def read(*parts):
1010 return fp .read ()
1111
1212
13- VERSION = (0 , 9 , 6 )
13+ VERSION = (0 , 9 , 7 )
1414version = '.' .join (map (str , VERSION ))
1515
1616setup (
@@ -31,7 +31,7 @@ def read(*parts):
3131
3232 install_requires = [
3333 'setuptools' ,
34- 'intuit-oauth==1.2.4 ' ,
34+ 'intuit-oauth==1.2.5 ' ,
3535 'requests_oauthlib>=1.3.1' ,
3636 'requests>=2.31.0' ,
3737 'simplejson>=3.19.1' ,
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ def test_unicode(self):
1313 def test_to_ref (self ):
1414 company_currency = CompanyCurrency ()
1515 company_currency .Name = "test"
16+ company_currency .Code = "USD"
1617 company_currency .Id = 23
1718
1819 ref = company_currency .to_ref ()
1920
2021 self .assertEqual (ref .name , "test" )
2122 self .assertEqual (ref .type , "CompanyCurrency" )
22- self .assertEqual (ref .value , 23 )
23+ self .assertEqual (ref .value , "USD" )
2324
You can’t perform that action at this time.
0 commit comments