Skip to content

Commit 9545d2f

Browse files
authored
Merge pull request #345 from ej2/0.9.7
0.9.7 changes
2 parents a696713 + d7c6d19 commit 9545d2f

File tree

6 files changed

+13
-5
lines changed

6 files changed

+13
-5
lines changed

CHANGELOG.rst

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
Changelog
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

Pipfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ pytest-cov = "*"
1111

1212
[packages]
1313
urllib3 = ">=2.1.0"
14-
intuit-oauth = "==1.2.4"
14+
intuit-oauth = "==1.2.5"
1515
requests = ">=2.31.0"
1616
simplejson = ">=3.19.1"
1717
requests_oauthlib = ">=1.3.1"

quickbooks/objects/companycurrency.py

+1-1
Original file line numberDiff line numberDiff 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

quickbooks/objects/customer.py

+1
Original file line numberDiff line numberDiff 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

setup.py

+2-2
Original file line numberDiff line numberDiff 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)
1414
version = '.'.join(map(str, VERSION))
1515

1616
setup(
@@ -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',

tests/unit/objects/test_companycurrency.py

+2-1
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)