Skip to content

Commit

Permalink
Merge pull request ej2#345 from ej2/0.9.7
Browse files Browse the repository at this point in the history
0.9.7 changes
  • Loading branch information
ej2 authored Mar 12, 2024
2 parents a696713 + d7c6d19 commit 9545d2f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Changelog
=========
* 0.9.7 (March 12, 2024)
* Update intuit-oauth dependency
* Updated CompanyCurrency to ref to use Code instead of Id
* Added missing CurrentRef property from customer object
* Made improvements to file attachment handling

* 0.9.6 (January 2, 2024)
* Replace RAuth with requests_oauthlib
* Removed python 2 code from client.py
Expand Down
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pytest-cov = "*"

[packages]
urllib3 = ">=2.1.0"
intuit-oauth = "==1.2.4"
intuit-oauth = "==1.2.5"
requests = ">=2.31.0"
simplejson = ">=3.19.1"
requests_oauthlib = ">=1.3.1"
2 changes: 1 addition & 1 deletion quickbooks/objects/companycurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ def to_ref(self):

ref.name = self.Name
ref.type = self.qbo_object_name
ref.value = self.Id
ref.value = self.Code

return ref
1 change: 1 addition & 0 deletions quickbooks/objects/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def __init__(self):
self.PaymentMethodRef = None
self.ParentRef = None
self.ARAccountRef = None
self.CurrencyRef = None

def __str__(self):
return self.DisplayName
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def read(*parts):
return fp.read()


VERSION = (0, 9, 6)
VERSION = (0, 9, 7)
version = '.'.join(map(str, VERSION))

setup(
Expand All @@ -31,7 +31,7 @@ def read(*parts):

install_requires=[
'setuptools',
'intuit-oauth==1.2.4',
'intuit-oauth==1.2.5',
'requests_oauthlib>=1.3.1',
'requests>=2.31.0',
'simplejson>=3.19.1',
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/objects/test_companycurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ def test_unicode(self):
def test_to_ref(self):
company_currency = CompanyCurrency()
company_currency.Name = "test"
company_currency.Code = "USD"
company_currency.Id = 23

ref = company_currency.to_ref()

self.assertEqual(ref.name, "test")
self.assertEqual(ref.type, "CompanyCurrency")
self.assertEqual(ref.value, 23)
self.assertEqual(ref.value, "USD")

0 comments on commit 9545d2f

Please sign in to comment.