[Python-modules-commits] [chargebee2-python] 01/04: Imported Upstream version 2.4.1

Scott Kitterman kitterman at moszumanska.debian.org
Sat Oct 7 23:35:02 UTC 2017


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

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

commit 84dd1981649657850f95754f1d6ca0d7bfecaad7
Author: Scott Kitterman <scott at kitterman.com>
Date:   Sat Oct 7 19:02:48 2017 -0400

    Imported Upstream version 2.4.1
---
 CHANGELOG.md                        | 87 ++++++++++++++++++++++++++++++++++++-
 chargebee/models/credit_note.py     | 12 +++++
 chargebee/models/customer.py        |  6 ++-
 chargebee/models/estimate.py        |  4 ++
 chargebee/models/invoice.py         | 22 ++++++++--
 chargebee/models/time_machine.py    |  1 -
 chargebee/models/transaction.py     | 11 ++---
 chargebee/models/unbilled_charge.py |  2 +-
 chargebee/version.py                |  2 +-
 9 files changed, 134 insertions(+), 13 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8afb6b5..e08fbf6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,88 @@
+### v2.4.1 (2017-09-22)
+* * * 
+
+** APIs added**: 
+
+New endpoint 'Collect payment for a customer' has been added as a restricted and deprecated API.
+
+** APIs updated**: 
+
+The attribute 'amount_to_collect' would be added to Invoice resource.
+See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
+
+### v2.4.0 (2017-09-15)
+* * * 
+
+** APIs updated**: 
+
+The attribute payment_source_id would be added to the transaction resource.
+See : https://apidocs.chargebee.com/docs/api/transactions#transaction_payment_source_id
+
+The filter parameter payment_source_id would be added in List transactions API.
+See : https://apidocs.chargebee.com/docs/api/transactions#list_transactions
+
+The gateway types amazon_payments and paypal_express_checkout would be added.
+See : https://apidocs.chargebee.com/docs/api/customers#customer_payment_method_gateway
+
+### v2.3.9 (2017-09-14)
+* * * 
+
+** APIs updated**: 
+
+The attribute registered_for_gst has been added to the Customer resource.
+See : https://apidocs.chargebee.com/docs/api/customers#customer_attributes
+
+The parameter registered_for_gst has been added in Create a customer , Update billing info for a customer , Create subscription estimate , Update subscription estimate , Create a subscription and Update a subscription APIs.
+See : https://apidocs.chargebee.com/docs/api/customers#create_a_customer
+
+### v2.3.8 (2017-09-06)
+* * * 
+
+** APIs added**: 
+
+The new endpoint Record refund for a credit note has been added to Credit note resource.
+See : https://apidocs.chargebee.com/docs/api/credit_notes#record_refund_for_a_credit_note
+
+** APIs updated**: 
+
+The parameter tmp_token has been deprecated in card subresource in Create a customer , Create a subscription , Update a subscription and Import subscription APIs.
+See : https://apidocs.chargebee.com/docs/api/customers#create_a_customer
+
+The parameter tmp_token has been added to payment method subresource in Create a subscription API.
+See : https://apidocs.chargebee.com/docs/api/subscriptions#create_a_subscription
+
+The type apple_pay has been added to payment method types.
+See : https://apidocs.chargebee.com/docs/api/customers#create_a_customer_payment_method_type
+
+### v2.3.7 (2017-08-31)
+* * * 
+
+** APIs added**: 
+
+The parameters credit_option_for_current_term_charges, unbilled_charges_option,refundable_credits_handling and account_receivables_handling would be added inCancel subscription API.
+See : https://apidocs.chargebee.com/docs/api/subscriptions#cancel_a_subscription
+
+A new endpoint Cancel subscription estimate would be added to the Estimate resource.
+See : https://apidocs.chargebee.com/docs/api/estimates#cancel_subscription_estimate
+
+The attribute deleted would be added to the Unbilled charge resource.
+See : https://apidocs.chargebee.com/docs/api/unbilled_charges#unbilled_charge_attributes
+
+The parameter include_deleted would be added in List Unbilled Charges API.
+See : https://apidocs.chargebee.com/docs/api/unbilled_charges#list_unbilled_charges
+
+
+### v2.3.6 (2017-08-28)
+* * * 
+
+** APIs added**: 
+
+The endpoints Void a credit note and Delete a credit note would be added to the Credit notes resource.
+See : https://apidocs.chargebee.com/docs/api/credit_notes
+
+The endpoints Apply payments for an invoice, Apply credits for an invoice, Remove payment from an invoice and Remove credit note from an invoice would be added to the Invoice resource.
+See : https://apidocs.chargebee.com/docs/api/invoices
+
 ### v2.3.5 (2017-08-16)
 * * * 
 
@@ -961,7 +1046,7 @@ A new API called Activate a portal session method(Portal session) added to suppo
 
 ** APIs updated**:
 
-Shipping and Billing Address are returned as part of Invoice resource attributes. This returns the shiping & billing address that was present at the time of invoice generation.
+Shipping and Billing Address are returned as part of Invoice resource attributes. This returns the shipping & billing address that was present at the time of invoice generation.
 
 Linked Customers as part of Portal session resource attributes.
 
diff --git a/chargebee/models/credit_note.py b/chargebee/models/credit_note.py
index dae5b38..75b5068 100644
--- a/chargebee/models/credit_note.py
+++ b/chargebee/models/credit_note.py
@@ -46,9 +46,21 @@ class CreditNote(Model):
         return request.send('post', request.uri_path("credit_notes",id,"pdf"), None, env, headers)
 
     @staticmethod
+    def record_refund(id, params, env=None, headers=None):
+        return request.send('post', request.uri_path("credit_notes",id,"record_refund"), params, env, headers)
+
+    @staticmethod
+    def void_credit_note(id, params=None, env=None, headers=None):
+        return request.send('post', request.uri_path("credit_notes",id,"void"), params, env, headers)
+
+    @staticmethod
     def list(params=None, env=None, headers=None):
         return request.send_list_request('get', request.uri_path("credit_notes"), params, env, headers)
 
     @staticmethod
     def credit_notes_for_customer(id, params=None, env=None, headers=None):
         return request.send('get', request.uri_path("customers",id,"credit_notes"), params, env, headers)
+
+    @staticmethod
+    def delete(id, params=None, env=None, headers=None):
+        return request.send('post', request.uri_path("credit_notes",id,"delete"), params, env, headers)
diff --git a/chargebee/models/customer.py b/chargebee/models/customer.py
index ed30d71..2914abc 100644
--- a/chargebee/models/customer.py
+++ b/chargebee/models/customer.py
@@ -23,7 +23,7 @@ class Customer(Model):
     "billing_date_mode", "billing_day_of_week", "billing_day_of_week_mode", "card_status", "fraud_flag", \
     "primary_payment_source_id", "backup_payment_source_id", "billing_address", "referral_urls", \
     "contacts", "payment_method", "invoice_notes", "preferred_currency_code", "promotional_credits", \
-    "unbilled_charges", "refundable_credits", "excess_payments", "meta_data", "deleted"]
+    "unbilled_charges", "refundable_credits", "excess_payments", "meta_data", "deleted", "registered_for_gst"]
 
 
     @staticmethod
@@ -83,6 +83,10 @@ class Customer(Model):
         return request.send('post', request.uri_path("customers",id,"record_excess_payment"), params, env, headers)
 
     @staticmethod
+    def collect_payment(id, params=None, env=None, headers=None):
+        return request.send('post', request.uri_path("customers",id,"collect_payment"), params, env, headers)
+
+    @staticmethod
     def delete(id, params=None, env=None, headers=None):
         return request.send('post', request.uri_path("customers",id,"delete"), params, env, headers)
 
diff --git a/chargebee/models/estimate.py b/chargebee/models/estimate.py
index fc66e8a..dd8320e 100644
--- a/chargebee/models/estimate.py
+++ b/chargebee/models/estimate.py
@@ -32,3 +32,7 @@ class Estimate(Model):
     @staticmethod
     def change_term_end(id, params=None, env=None, headers=None):
         return request.send('post', request.uri_path("subscriptions",id,"change_term_end_estimate"), params, env, headers)
+
+    @staticmethod
+    def cancel_subscription(id, params=None, env=None, headers=None):
+        return request.send('post', request.uri_path("subscriptions",id,"cancel_subscription_estimate"), params, env, headers)
diff --git a/chargebee/models/invoice.py b/chargebee/models/invoice.py
index 1854942..242ce68 100644
--- a/chargebee/models/invoice.py
+++ b/chargebee/models/invoice.py
@@ -48,9 +48,9 @@ class Invoice(Model):
     "price_type", "date", "due_date", "net_term_days", "currency_code", "total", "amount_paid", \
     "amount_adjusted", "write_off_amount", "credits_applied", "amount_due", "paid_at", "dunning_status", \
     "next_retry_at", "voided_at", "resource_version", "updated_at", "sub_total", "tax", "first_invoice", \
-    "has_advance_charges", "line_items", "discounts", "line_item_discounts", "taxes", "line_item_taxes", \
-    "linked_payments", "applied_credits", "adjustment_credit_notes", "issued_credit_notes", "linked_orders", \
-    "notes", "shipping_address", "billing_address", "deleted"]
+    "has_advance_charges", "amount_to_collect", "line_items", "discounts", "line_item_discounts", \
+    "taxes", "line_item_taxes", "linked_payments", "applied_credits", "adjustment_credit_notes", \
+    "issued_credit_notes", "linked_orders", "notes", "shipping_address", "billing_address", "deleted"]
 
 
     @staticmethod
@@ -74,6 +74,14 @@ class Invoice(Model):
         return request.send('post', request.uri_path("invoices","import_invoice"), params, env, headers)
 
     @staticmethod
+    def apply_payments(id, params=None, env=None, headers=None):
+        return request.send('post', request.uri_path("invoices",id,"apply_payments"), params, env, headers)
+
+    @staticmethod
+    def apply_credits(id, params=None, env=None, headers=None):
+        return request.send('post', request.uri_path("invoices",id,"apply_credits"), 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)
 
@@ -122,6 +130,14 @@ class Invoice(Model):
         return request.send('post', request.uri_path("invoices",id,"record_refund"), params, env, headers)
 
     @staticmethod
+    def remove_payment(id, params, env=None, headers=None):
+        return request.send('post', request.uri_path("invoices",id,"remove_payment"), params, env, headers)
+
+    @staticmethod
+    def remove_credit_note(id, params, env=None, headers=None):
+        return request.send('post', request.uri_path("invoices",id,"remove_credit_note"), params, env, headers)
+
+    @staticmethod
     def void_invoice(id, params=None, env=None, headers=None):
         return request.send('post', request.uri_path("invoices",id,"void"), params, env, headers)
 
diff --git a/chargebee/models/time_machine.py b/chargebee/models/time_machine.py
index 9d52e10..d02bbf8 100644
--- a/chargebee/models/time_machine.py
+++ b/chargebee/models/time_machine.py
@@ -3,7 +3,6 @@ from chargebee.model import Model
 from chargebee import request
 from chargebee import APIError
 from chargebee import OperationFailedError
-
 class TimeMachine(Model):
 
     fields = ["name", "time_travel_status", "genesis_time", "destination_time", "failure_code", \
diff --git a/chargebee/models/transaction.py b/chargebee/models/transaction.py
index 6e79acb..16cbd21 100644
--- a/chargebee/models/transaction.py
+++ b/chargebee/models/transaction.py
@@ -14,11 +14,12 @@ class Transaction(Model):
       fields = ["txn_id", "txn_status", "txn_date", "txn_amount"]
       pass
 
-    fields = ["id", "customer_id", "subscription_id", "gateway_account_id", "payment_method", \
-    "reference_number", "gateway", "type", "date", "currency_code", "amount", "id_at_gateway", "status", \
-    "fraud_flag", "error_code", "error_text", "voided_at", "resource_version", "updated_at", "fraud_reason", \
-    "amount_unused", "masked_card_number", "reference_transaction_id", "refunded_txn_id", "reversal_transaction_id", \
-    "linked_invoices", "linked_credit_notes", "linked_refunds", "deleted"]
+    fields = ["id", "customer_id", "subscription_id", "gateway_account_id", "payment_source_id", \
+    "payment_method", "reference_number", "gateway", "type", "date", "currency_code", "amount", \
+    "id_at_gateway", "status", "fraud_flag", "error_code", "error_text", "voided_at", "resource_version", \
+    "updated_at", "fraud_reason", "amount_unused", "masked_card_number", "reference_transaction_id", \
+    "refunded_txn_id", "reversal_transaction_id", "linked_invoices", "linked_credit_notes", "linked_refunds", \
+    "deleted"]
 
 
     @staticmethod
diff --git a/chargebee/models/unbilled_charge.py b/chargebee/models/unbilled_charge.py
index 770a688..cabda09 100644
--- a/chargebee/models/unbilled_charge.py
+++ b/chargebee/models/unbilled_charge.py
@@ -7,7 +7,7 @@ class UnbilledCharge(Model):
 
     fields = ["id", "customer_id", "subscription_id", "date_from", "date_to", "unit_amount", \
     "quantity", "amount", "currency_code", "discount_amount", "description", "entity_type", "entity_id", \
-    "is_voided", "voided_at"]
+    "is_voided", "voided_at", "deleted"]
 
 
     @staticmethod
diff --git a/chargebee/version.py b/chargebee/version.py
index b4ab188..7bdfe7d 100644
--- a/chargebee/version.py
+++ b/chargebee/version.py
@@ -1 +1 @@
-VERSION = '2.3.5'
+VERSION = '2.4.1'

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