Skip to content

Commit

Permalink
Releasing v2.30.0. Please refer changelog for the updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-karthikp committed Sep 5, 2023
1 parent e4cbd3c commit 2e0b037
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 2 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
* * *

Expand Down
1 change: 1 addition & 0 deletions chargebee/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions chargebee/models/csv_tax_rule.py
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion chargebee/models/payment_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
5 changes: 5 additions & 0 deletions chargebee/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion chargebee/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '2.29.0'
VERSION = '2.30.0'

0 comments on commit 2e0b037

Please sign in to comment.