File tree 6 files changed +13
-5
lines changed
6 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
1
Changelog
2
2
=========
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
+
3
9
* 0.9.6 (January 2, 2024)
4
10
* Replace RAuth with requests_oauthlib
5
11
* Removed python 2 code from client.py
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ pytest-cov = "*"
11
11
12
12
[packages ]
13
13
urllib3 = " >=2.1.0"
14
- intuit-oauth = " ==1.2.4 "
14
+ intuit-oauth = " ==1.2.5 "
15
15
requests = " >=2.31.0"
16
16
simplejson = " >=3.19.1"
17
17
requests_oauthlib = " >=1.3.1"
Original file line number Diff line number Diff line change @@ -35,6 +35,6 @@ def to_ref(self):
35
35
36
36
ref .name = self .Name
37
37
ref .type = self .qbo_object_name
38
- ref .value = self .Id
38
+ ref .value = self .Code
39
39
40
40
return ref
Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ def __init__(self):
71
71
self .PaymentMethodRef = None
72
72
self .ParentRef = None
73
73
self .ARAccountRef = None
74
+ self .CurrencyRef = None
74
75
75
76
def __str__ (self ):
76
77
return self .DisplayName
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ def read(*parts):
10
10
return fp .read ()
11
11
12
12
13
- VERSION = (0 , 9 , 6 )
13
+ VERSION = (0 , 9 , 7 )
14
14
version = '.' .join (map (str , VERSION ))
15
15
16
16
setup (
@@ -31,7 +31,7 @@ def read(*parts):
31
31
32
32
install_requires = [
33
33
'setuptools' ,
34
- 'intuit-oauth==1.2.4 ' ,
34
+ 'intuit-oauth==1.2.5 ' ,
35
35
'requests_oauthlib>=1.3.1' ,
36
36
'requests>=2.31.0' ,
37
37
'simplejson>=3.19.1' ,
Original file line number Diff line number Diff line change @@ -13,11 +13,12 @@ def test_unicode(self):
13
13
def test_to_ref (self ):
14
14
company_currency = CompanyCurrency ()
15
15
company_currency .Name = "test"
16
+ company_currency .Code = "USD"
16
17
company_currency .Id = 23
17
18
18
19
ref = company_currency .to_ref ()
19
20
20
21
self .assertEqual (ref .name , "test" )
21
22
self .assertEqual (ref .type , "CompanyCurrency" )
22
- self .assertEqual (ref .value , 23 )
23
+ self .assertEqual (ref .value , "USD" )
23
24
You can’t perform that action at this time.
0 commit comments