[Python-modules-commits] [chargebee2-python] 01/04: Import chargebee2-python_2.2.2.orig.tar.gz

Scott Kitterman kitterman at moszumanska.debian.org
Mon Jan 2 13:38:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

kitterman pushed a commit to branch master
in repository chargebee2-python.

commit b708c58c1d824c94b023654dd6a4a9a9f6ce8664
Author: Scott Kitterman <scott at kitterman.com>
Date:   Mon Jan 2 08:31:15 2017 -0500

    Import chargebee2-python_2.2.2.orig.tar.gz
---
 CHANGELOG.md                             | 17 +++++++++++++++++
 chargebee/models/credit_note.py          |  2 +-
 chargebee/models/credit_note_estimate.py |  2 +-
 chargebee/models/invoice.py              |  2 +-
 chargebee/models/invoice_estimate.py     |  2 +-
 chargebee/models/subscription.py         |  5 +++--
 chargebee/version.py                     |  2 +-
 7 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0774b3a..588f454 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,20 @@
+###v2.2.2 (2016-12-30)
+* * * 
+
+** APIs updated**:
+
+The attributes 'plan_unit_price', 'setup_fee', 'billing_period', 'billing_period_unit' and 'plan_free_quantity' has been added to the Subscription resource.
+See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_attributes
+
+The input parameters 'plan_unit_price', 'setup_fee' and Addon 'unit_price' has been added to Create a subscription, Create subscription for customer, Update a subscription, Create a subscription estimate, Update a subscription estimate, Checkout a new subscription and Checkout existing subscription, Import a subscription and Import subscription for customer APIs.
+See : https://apidocs.chargebee.com/docs/api/subscriptions#create_a_subscription
+
+An input parameter Addon 'unit_price' has been added to Charge addon at term end, Create an Invoice, Create invoice for addon and Add addon item to pending invoice APIs.
+See : https://apidocs.chargebee.com/docs/api/invoices#create_an_invoice
+
+An attribute 'tax_exempt_reason' has been added to line items sub resource in Invoice, Credit Note and Estimate resources.
+See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
+
 ###v2.2.1 (2016-12-09)
 * * * 
 
diff --git a/chargebee/models/credit_note.py b/chargebee/models/credit_note.py
index ab52ab4..605e7e7 100644
--- a/chargebee/models/credit_note.py
+++ b/chargebee/models/credit_note.py
@@ -5,7 +5,7 @@ from chargebee import APIError
 
 class CreditNote(Model):
     class LineItem(Model):
-      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "entity_id"]
+      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "tax_exempt_reason", "entity_id"]
       pass
     class Discount(Model):
       fields = ["amount", "description", "entity_type", "entity_id"]
diff --git a/chargebee/models/credit_note_estimate.py b/chargebee/models/credit_note_estimate.py
index 0f71e92..5478cad 100644
--- a/chargebee/models/credit_note_estimate.py
+++ b/chargebee/models/credit_note_estimate.py
@@ -5,7 +5,7 @@ from chargebee import APIError
 
 class CreditNoteEstimate(Model):
     class LineItem(Model):
-      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "entity_id"]
+      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "tax_exempt_reason", "entity_id"]
       pass
     class Discount(Model):
       fields = ["amount", "description", "entity_type", "entity_id"]
diff --git a/chargebee/models/invoice.py b/chargebee/models/invoice.py
index 17f4d69..3abcff5 100644
--- a/chargebee/models/invoice.py
+++ b/chargebee/models/invoice.py
@@ -5,7 +5,7 @@ from chargebee import APIError
 
 class Invoice(Model):
     class LineItem(Model):
-      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "entity_id"]
+      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "tax_exempt_reason", "entity_id"]
       pass
     class Discount(Model):
       fields = ["amount", "description", "entity_type", "entity_id"]
diff --git a/chargebee/models/invoice_estimate.py b/chargebee/models/invoice_estimate.py
index 43c4f2f..cfc57d4 100644
--- a/chargebee/models/invoice_estimate.py
+++ b/chargebee/models/invoice_estimate.py
@@ -5,7 +5,7 @@ from chargebee import APIError
 
 class InvoiceEstimate(Model):
     class LineItem(Model):
-      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "entity_id"]
+      fields = ["id", "date_from", "date_to", "unit_amount", "quantity", "is_taxed", "tax_amount", "tax_rate", "amount", "discount_amount", "item_level_discount_amount", "description", "entity_type", "tax_exempt_reason", "entity_id"]
       pass
     class Discount(Model):
       fields = ["amount", "description", "entity_type", "entity_id"]
diff --git a/chargebee/models/subscription.py b/chargebee/models/subscription.py
index fcac7e7..be43424 100644
--- a/chargebee/models/subscription.py
+++ b/chargebee/models/subscription.py
@@ -5,7 +5,7 @@ from chargebee import APIError
 
 class Subscription(Model):
     class Addon(Model):
-      fields = ["id", "quantity"]
+      fields = ["id", "quantity", "unit_price"]
       pass
     class Coupon(Model):
       fields = ["coupon_id", "apply_till", "applied_count", "coupon_code"]
@@ -14,7 +14,8 @@ class Subscription(Model):
       fields = ["first_name", "last_name", "email", "company", "phone", "line1", "line2", "line3", "city", "state_code", "state", "country", "zip", "validation_status"]
       pass
 
-    fields = ["id", "customer_id", "currency_code", "plan_id", "plan_quantity", "status", "start_date", \
+    fields = ["id", "customer_id", "currency_code", "plan_id", "plan_quantity", "plan_unit_price", \
+    "setup_fee", "billing_period", "billing_period_unit", "plan_free_quantity", "status", "start_date", \
     "trial_start", "trial_end", "current_term_start", "current_term_end", "remaining_billing_cycles", \
     "po_number", "created_at", "started_at", "activated_at", "cancelled_at", "cancel_reason", "affiliate_token", \
     "created_from_ip", "resource_version", "updated_at", "has_scheduled_changes", "due_invoices_count", \
diff --git a/chargebee/version.py b/chargebee/version.py
index 8ec4737..5a099d9 100644
--- a/chargebee/version.py
+++ b/chargebee/version.py
@@ -1 +1 @@
-VERSION = '2.2.1'
+VERSION = '2.2.2'

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/chargebee2-python.git



More information about the Python-modules-commits mailing list