diff --git a/recurly/__init__.py b/recurly/__init__.py index ada9b20e..1b76439f 100644 --- a/recurly/__init__.py +++ b/recurly/__init__.py @@ -486,6 +486,8 @@ class BusinessEntity(Resource): 'name', 'invoice_display_address', 'tax_address', + 'origin_tax_address_source', + 'destination_tax_address_source', 'subscriber_location_countries', 'default_vat_number', 'default_registration_number', @@ -1030,6 +1032,8 @@ class Adjustment(Resource): 'tax_type', 'tax_region', 'tax_rate', + 'origin_tax_address_source', + 'destination_tax_address_source', 'total_in_cents', 'currency', 'tax_exempt', diff --git a/tests/fixtures/adjustment/lookup.xml b/tests/fixtures/adjustment/lookup.xml index a5cc237d..0641bdfb 100644 --- a/tests/fixtures/adjustment/lookup.xml +++ b/tests/fixtures/adjustment/lookup.xml @@ -16,6 +16,8 @@ Content-Type: application/xml; charset=utf-8 usst CA 0.0875 + Business entity tax address + Customer tax address 1000 USD diff --git a/tests/fixtures/business_entity/get.xml b/tests/fixtures/business_entity/get.xml index e5946c23..5a35bbbc 100644 --- a/tests/fixtures/business_entity/get.xml +++ b/tests/fixtures/business_entity/get.xml @@ -32,6 +32,8 @@ Content-Type: application/xml; charset=utf-8 US 4344444222 + Business entity tax address + Customer tax address GB CA diff --git a/tests/fixtures/business_entity/list.xml b/tests/fixtures/business_entity/list.xml index ab4f8008..7dc47a45 100644 --- a/tests/fixtures/business_entity/list.xml +++ b/tests/fixtures/business_entity/list.xml @@ -33,6 +33,8 @@ Content-Type: application/xml; charset=utf-8 US + Business entity tax address + Customer tax address @@ -65,6 +67,8 @@ Content-Type: application/xml; charset=utf-8 US 3442565432 + Business entity tax address + Customer tax address diff --git a/tests/test_resources.py b/tests/test_resources.py index 6d1f0eaa..f3f7cb0f 100644 --- a/tests/test_resources.py +++ b/tests/test_resources.py @@ -3600,6 +3600,8 @@ def test_get_business_entity(self): self.assertEqual(entity.default_registration_number, 'ab1') self.assertEqual(entity.subscriber_location_countries, ['GB', 'CA']) self.assertIsInstance(entity.tax_address, Address) + self.assertEqual(entity.origin_tax_address_source, 'Business entity tax address') + self.assertEqual(entity.destination_tax_address_source, 'Customer tax address') self.assertIsInstance(entity.invoice_display_address, Address) self.assertEqual(entity.created_at, datetime(2023, 5, 13, 17, 28, 47, tzinfo=entity.created_at.tzinfo)) self.assertEqual(entity.updated_at, datetime(2023, 10, 13, 17, 28, 48, tzinfo=entity.updated_at.tzinfo))