diff --git a/CHANGELOG.md b/CHANGELOG.md index 8812d7d..8ea7414 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,23 @@ +### v2.30.0 (2023-09-05) +* * * + +#### New Resource: +* CsvTaxRule has been added. + +#### New attributes: +* direct_debit_scheme has been added to the PaymentSource#PaymentSourceBankAccount resource. + +#### New Enum : +* DirectDebitSchemeEnum has been added. +* Tax1JurisTypeEnum has been added. +* Tax2JurisTypeEnum has been added. +* Tax3JurisTypeEnum has been added. +* Tax4JurisTypeEnum has been added. + +#### New Input parameters: +* avalara_tax_code, hsn_code, taxjar_product_code has been added to Invoice#AddChargeRequest. + + ### v2.29.0 (2023-07-31) * * * diff --git a/chargebee/models/__init__.py b/chargebee/models/__init__.py index 019812e..c946b11 100644 --- a/chargebee/models/__init__.py +++ b/chargebee/models/__init__.py @@ -11,6 +11,7 @@ from chargebee.models.coupon_set import CouponSet from chargebee.models.credit_note import CreditNote from chargebee.models.credit_note_estimate import CreditNoteEstimate +from chargebee.models.csv_tax_rule import CsvTaxRule from chargebee.models.customer import Customer from chargebee.models.differential_price import DifferentialPrice from chargebee.models.discount import Discount diff --git a/chargebee/models/csv_tax_rule.py b/chargebee/models/csv_tax_rule.py new file mode 100644 index 0000000..c27f5b4 --- /dev/null +++ b/chargebee/models/csv_tax_rule.py @@ -0,0 +1,18 @@ +import json +from chargebee.model import Model +from chargebee import request +from chargebee import APIError + +class CsvTaxRule(Model): + + fields = ["tax_profile_name", "country", "state", "zip_code", "zip_code_start", "zip_code_end", \ + "tax1_name", "tax1_rate", "tax1_juris_type", "tax1_juris_name", "tax1_juris_code", "tax2_name", \ + "tax2_rate", "tax2_juris_type", "tax2_juris_name", "tax2_juris_code", "tax3_name", "tax3_rate", \ + "tax3_juris_type", "tax3_juris_name", "tax3_juris_code", "tax4_name", "tax4_rate", "tax4_juris_type", \ + "tax4_juris_name", "tax4_juris_code", "status", "time_zone", "valid_from", "valid_till", "service_type", \ + "rule_weight", "overwrite"] + + + @staticmethod + def create(params=None, env=None, headers=None): + return request.send('post', request.uri_path("csv_tax_rules"), params, env, headers) diff --git a/chargebee/models/payment_source.py b/chargebee/models/payment_source.py index d9899b6..109c0aa 100644 --- a/chargebee/models/payment_source.py +++ b/chargebee/models/payment_source.py @@ -8,7 +8,7 @@ class Card(Model): fields = ["first_name", "last_name", "iin", "last4", "brand", "funding_type", "expiry_month", "expiry_year", "billing_addr1", "billing_addr2", "billing_city", "billing_state_code", "billing_state", "billing_country", "billing_zip", "masked_number"] pass class BankAccount(Model): - fields = ["last4", "name_on_account", "first_name", "last_name", "bank_name", "mandate_id", "account_type", "echeck_type", "account_holder_type", "email"] + fields = ["last4", "name_on_account", "first_name", "last_name", "direct_debit_scheme", "bank_name", "mandate_id", "account_type", "echeck_type", "account_holder_type", "email"] pass class CustVoucherSource(Model): fields = ["last4", "first_name", "last_name", "email"] diff --git a/chargebee/result.py b/chargebee/result.py index f3bf049..130d697 100644 --- a/chargebee/result.py +++ b/chargebee/result.py @@ -358,6 +358,11 @@ def payment_voucher(self): {'linked_invoices' : PaymentVoucher.LinkedInvoice}); return payment_voucher; + @property + def csv_tax_rule(self): + csv_tax_rule = self._get('csv_tax_rule', CsvTaxRule); + return csv_tax_rule; + @property def unbilled_charges(self): diff --git a/chargebee/version.py b/chargebee/version.py index deccfe3..26b23cd 100644 --- a/chargebee/version.py +++ b/chargebee/version.py @@ -1 +1 @@ -VERSION = '2.29.0' +VERSION = '2.30.0'