From ce35d4095eeca8f0f3e9861383dd0bdee9385deb Mon Sep 17 00:00:00 2001 From: Tyler Gehrs Date: Tue, 29 Mar 2022 11:04:10 -0600 Subject: [PATCH] Update Postal Code parameter to match API The address methods list the Postal Code parameter as `postal_code` however the Avalara API accepts only `postalCode`. This PR resolves this discrepancy so that developers using this and its SDK can successfully create transactions. --- src/avalara/transaction_builder_methods.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/avalara/transaction_builder_methods.py b/src/avalara/transaction_builder_methods.py index 7a10356..14aeb90 100644 --- a/src/avalara/transaction_builder_methods.py +++ b/src/avalara/transaction_builder_methods.py @@ -78,7 +78,7 @@ def with_address(self, address_type, address): of the location. city City of the location. region State or Region of the location. - postal_code Postal/zip code of the location. + postalCode Postal/zip code of the location. country The two-letter country code of the location. :return: TransactionBuilder """ @@ -101,7 +101,7 @@ def with_line_address(self, address_type, address): of the location. city City of the location. region State or Region of the location. - postal_code Postal/zip code of the location. + postalCode Postal/zip code of the location. country The two-letter country code of the location. :return: TransactionBuilder """ @@ -313,7 +313,7 @@ def with_separate_address_line(self, amount, type_, address): of the location. city City of the location. region State or Region of the location. - postal_code Postal/zip code of the location. + postalCode Postal/zip code of the location. country The two-letter country code of the location. :return: TransactionBuilder """