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

Scott Kitterman kitterman at moszumanska.debian.org
Fri Nov 25 19:03:42 UTC 2016


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

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

commit 7f00267ca38ee54de17618a12c143be1c77a58b5
Author: Scott Kitterman <scott at kitterman.com>
Date:   Fri Nov 25 13:52:25 2016 -0500

    Import chargebee2-python_2.2.0.orig.tar.gz
---
 CHANGELOG.md                     | 31 +++++++++++++++++++++++++++++++
 chargebee/models/addon.py        |  4 ++++
 chargebee/models/card.py         |  5 +++--
 chargebee/models/coupon.py       |  4 ++++
 chargebee/models/coupon_code.py  |  4 ++++
 chargebee/models/invoice.py      |  4 ++++
 chargebee/models/plan.py         |  4 ++++
 chargebee/models/subscription.py |  8 ++++++++
 chargebee/version.py             |  2 +-
 9 files changed, 63 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index b5932e8..c308f44 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,34 @@
+###v2.2.0 (2016-11-24)
+* * * 
+
+** APIs updated**:
+A new attribute, 'funding_type' has been added to Card resource.
+See : https://apidocs.chargebee.com/docs/api/cards#card_attributes
+
+** APIs added**:
+A new endpoint, List coupon codes API has been added to Coupon Code resource.
+See : https://apidocs.chargebee.com/docs/api/coupon_codes#list_coupon_codes
+
+A new endpoint, Copy a plan API has been added to Plan resource.
+See : https://apidocs.chargebee.com/docs/api/plans#copy_a_plan
+
+A new endpoint, Copy an addon API has been added to Addon resource.
+See : https://apidocs.chargebee.com/docs/api/addons#copy_an_addon
+
+A new endpoint, Copy a coupon API has been added to Coupon resource.
+See : https://apidocs.chargebee.com/docs/api/coupons#copy_a_coupon
+
+A new endpoint, Import a subscription API has been added to Subscription resource.
+See : https://apidocs.chargebee.com/docs/api/subscriptions#import_a_subscription
+
+A new endpoint, Import Subscription for customer API has been added to Subscription resource.
+See : https://apidocs.chargebee.com/docs/api/subscriptions#import_subscription_for_customer
+
+A new endpoint, Import invoice API has been added to Invoice resource.
+See : https://apidocs.chargebee.com/docs/api/invoices#import_invoice
+
+
+
 ###v2.1.9 (2016-11-18)
 * * * 
 
diff --git a/chargebee/models/addon.py b/chargebee/models/addon.py
index b500fd8..15c4818 100644
--- a/chargebee/models/addon.py
+++ b/chargebee/models/addon.py
@@ -30,3 +30,7 @@ class Addon(Model):
     @staticmethod
     def delete(id, env=None, headers=None):
         return request.send('post', request.uri_path("addons",id,"delete"), None, env, headers)
+
+    @staticmethod
+    def copy(params, env=None, headers=None):
+        return request.send('post', request.uri_path("addons","copy"), params, env, headers)
diff --git a/chargebee/models/card.py b/chargebee/models/card.py
index df4172a..ec09970 100644
--- a/chargebee/models/card.py
+++ b/chargebee/models/card.py
@@ -6,8 +6,9 @@ from chargebee import APIError
 class Card(Model):
 
     fields = ["customer_id", "status", "gateway", "first_name", "last_name", "iin", "last4", \
-    "card_type", "expiry_month", "expiry_year", "billing_addr1", "billing_addr2", "billing_city", \
-    "billing_state_code", "billing_state", "billing_country", "billing_zip", "ip_address", "masked_number"]
+    "card_type", "funding_type", "expiry_month", "expiry_year", "billing_addr1", "billing_addr2", \
+    "billing_city", "billing_state_code", "billing_state", "billing_country", "billing_zip", "ip_address", \
+    "masked_number"]
 
 
     @staticmethod
diff --git a/chargebee/models/coupon.py b/chargebee/models/coupon.py
index 5727b80..36822a7 100644
--- a/chargebee/models/coupon.py
+++ b/chargebee/models/coupon.py
@@ -27,3 +27,7 @@ class Coupon(Model):
     @staticmethod
     def delete(id, env=None, headers=None):
         return request.send('post', request.uri_path("coupons",id,"delete"), None, env, headers)
+
+    @staticmethod
+    def copy(params, env=None, headers=None):
+        return request.send('post', request.uri_path("coupons","copy"), params, env, headers)
diff --git a/chargebee/models/coupon_code.py b/chargebee/models/coupon_code.py
index bdaff80..798cee9 100644
--- a/chargebee/models/coupon_code.py
+++ b/chargebee/models/coupon_code.py
@@ -17,5 +17,9 @@ class CouponCode(Model):
         return request.send('get', request.uri_path("coupon_codes",id), None, env, headers)
 
     @staticmethod
+    def list(params=None, env=None, headers=None):
+        return request.send_list_request('get', request.uri_path("coupon_codes"), params, env, headers)
+
+    @staticmethod
     def archive(id, env=None, headers=None):
         return request.send('post', request.uri_path("coupon_codes",id,"archive"), None, env, headers)
diff --git a/chargebee/models/invoice.py b/chargebee/models/invoice.py
index bcc4281..17663cc 100644
--- a/chargebee/models/invoice.py
+++ b/chargebee/models/invoice.py
@@ -66,6 +66,10 @@ class Invoice(Model):
         return request.send('post', request.uri_path("invoices",id,"stop_dunning"), None, env, headers)
 
     @staticmethod
+    def import_invoice(params, env=None, headers=None):
+        return request.send('post', request.uri_path("invoices","import_invoice"), params, env, headers)
+
+    @staticmethod
     def list(params=None, env=None, headers=None):
         return request.send_list_request('get', request.uri_path("invoices"), params, env, headers)
 
diff --git a/chargebee/models/plan.py b/chargebee/models/plan.py
index eac9073..ba39a65 100644
--- a/chargebee/models/plan.py
+++ b/chargebee/models/plan.py
@@ -31,3 +31,7 @@ class Plan(Model):
     @staticmethod
     def delete(id, env=None, headers=None):
         return request.send('post', request.uri_path("plans",id,"delete"), None, env, headers)
+
+    @staticmethod
+    def copy(params, env=None, headers=None):
+        return request.send('post', request.uri_path("plans","copy"), params, env, headers)
diff --git a/chargebee/models/subscription.py b/chargebee/models/subscription.py
index 9cf5359..60a0b95 100644
--- a/chargebee/models/subscription.py
+++ b/chargebee/models/subscription.py
@@ -83,5 +83,13 @@ class Subscription(Model):
         return request.send('post', request.uri_path("subscriptions",id,"charge_addon_at_term_end"), params, env, headers)
 
     @staticmethod
+    def import_subscription(params, env=None, headers=None):
+        return request.send('post', request.uri_path("subscriptions","import_subscription"), params, env, headers)
+
+    @staticmethod
+    def import_for_customer(id, params, env=None, headers=None):
+        return request.send('post', request.uri_path("customers",id,"import_subscription"), params, env, headers)
+
+    @staticmethod
     def delete(id, env=None, headers=None):
         return request.send('post', request.uri_path("subscriptions",id,"delete"), None, env, headers)
diff --git a/chargebee/version.py b/chargebee/version.py
index c3b784e..8418bbc 100644
--- a/chargebee/version.py
+++ b/chargebee/version.py
@@ -1 +1 @@
-VERSION = '2.1.9'
+VERSION = '2.2.0'

-- 
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