chargebee 2.1.9 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2e609567420636f228dec89fdd57e73c5884621
4
- data.tar.gz: a1b2f4338df0e678316f24e3d3ba229b57e28909
3
+ metadata.gz: 0f4dee269d7d7cdfd353947d85b08aad3584f469
4
+ data.tar.gz: 26960db4cb4da9abe8f4ff96b2ecc084e151a8a0
5
5
  SHA512:
6
- metadata.gz: a4be9946b1dd9efcaa7c8e282fb8865058957f026aed4c515f9eb647e87f70b681457a6bd296f203d8ebcd92df8d2daa07eef27febce109ddff362838cbc56dc
7
- data.tar.gz: 9e7d133e452f765b0d5b94ff25defc130e512df7077940deeb81a086ee7d5d3af48e09b0d86f61348c389d00b77a9350c6839677bf63b9933328a19406aa4064
6
+ metadata.gz: 7b2f5ac413ebe8bad1e02b1dda56233688708ab18e4b79f1efd312b0300da124dca68e02629ae626735e41f0dd851542dc4236036f6610548885cc8f386e1106
7
+ data.tar.gz: 936c9e26ab19f7b17013aaa613ce073d3ca3affb9a9b091eb7b12bc36c4b12a87d1f0a4087d5c1ac6f49c603e6a740a77a32efa506ca97d6bc4379edf761426e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ###v2.2.0 (2016-12-09)
2
+ * * *
3
+
4
+ ** APIs updated**:
5
+ A new attribute, 'locale' has been added to the Customer resource.
6
+ See : https://apidocs.chargebee.com/docs/api/customers#customer_attributes
7
+
8
+ A new parameter, 'locale' has been to Create a customer, Update a customer, Checkout new hosted page, Create a subscription and Import a subscription APIs.
9
+ See : https://apidocs.chargebee.com/docs/api/customers#create_a_customer
10
+
11
+ The attributes 'mrr', 'exchange_rate' and 'base_currency_code' have been added to the Subscription resource.
12
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_attributes
13
+
14
+ A new filter parameter 'cancelled_at' has been added to List Subscription API.
15
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#list_subscriptions
16
+
17
+ The attribute 'voided_at' has been added to the Invoice and the Credit Note resource and 'voided_at' filter has been added to List invoices and List credit notes APIs.
18
+ See : https://apidocs.chargebee.com/docs/api/invoices#invoice_attributes
19
+
20
+ The attributes 'sku', 'accounting_code', 'accounting_category1' and 'accounting_category2' have been added to the Plan and the Addon resource.
21
+ See : https://apidocs.chargebee.com/docs/api/plans#plan_attributes
22
+
23
+ The input parameters 'sku', 'accounting_code', 'accounting_category1' and 'accounting_category2' have been added to Create a plan, Update a plan, Create an addon and Update an addon APIs.
24
+ See : https://apidocs.chargebee.com/docs/api/plans#create_a_plan
25
+
26
+ The input parameters 'transaction_id_at_gateway', 'transaction_status', 'transaction_error_code' and 'transaction_error_text' have been added to Record payment for an invoice API.
27
+ See : https://apidocs.chargebee.com/docs/api/invoices#record_an_invoice_payment
28
+
1
29
  ###v2.1.9 (2016-11-24)
2
30
  * * *
3
31
 
data/chargebee.gemspec CHANGED
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'chargebee'
7
- s.version = '2.1.9'
8
- s.date = '2016-11-24'
7
+ s.version = '2.2.0'
8
+ s.date = '2016-12-09'
9
9
 
10
10
  s.summary = "Ruby client for Chargebee API."
11
11
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
data/lib/chargebee.rb CHANGED
@@ -33,7 +33,7 @@ require File.dirname(__FILE__) + '/chargebee/models/download'
33
33
 
34
34
  module ChargeBee
35
35
 
36
- VERSION = '2.1.9'
36
+ VERSION = '2.2.0'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
@@ -2,8 +2,9 @@ module ChargeBee
2
2
  class Addon < Model
3
3
 
4
4
  attr_accessor :id, :name, :invoice_name, :description, :type, :charge_type, :price, :currency_code,
5
- :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal, :tax_code, :resource_version,
6
- :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data
5
+ :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal, :tax_code, :sku, :accounting_code,
6
+ :accounting_category1, :accounting_category2, :resource_version, :updated_at, :invoice_notes,
7
+ :taxable, :tax_profile_id, :meta_data
7
8
 
8
9
  # OPERATIONS
9
10
  #-----------
@@ -27,8 +27,8 @@ module ChargeBee
27
27
 
28
28
  attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
29
29
  :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
30
- :amount_available, :refunded_at, :resource_version, :updated_at, :sub_total, :line_items, :discounts,
31
- :taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted
30
+ :amount_available, :refunded_at, :voided_at, :resource_version, :updated_at, :sub_total, :line_items,
31
+ :discounts, :taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted
32
32
 
33
33
  # OPERATIONS
34
34
  #-----------
@@ -15,7 +15,7 @@ module ChargeBee
15
15
 
16
16
  attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
17
17
  :net_term_days, :allow_direct_debit, :created_at, :created_from_ip, :taxability, :entity_code,
18
- :exempt_number, :resource_version, :updated_at, :card_status, :fraud_flag, :billing_address,
18
+ :exempt_number, :resource_version, :updated_at, :locale, :card_status, :fraud_flag, :billing_address,
19
19
  :contacts, :payment_method, :invoice_notes, :preferred_currency_code, :promotional_credits,
20
20
  :refundable_credits, :excess_payments, :meta_data, :deleted
21
21
 
@@ -52,8 +52,8 @@ module ChargeBee
52
52
  attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
53
53
  :price_type, :date, :due_date, :net_term_days, :currency_code, :total, :amount_paid, :amount_adjusted,
54
54
  :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status, :next_retry_at,
55
- :resource_version, :updated_at, :sub_total, :tax, :first_invoice, :line_items, :discounts, :taxes,
56
- :line_item_taxes, :linked_payments, :applied_credits, :adjustment_credit_notes, :issued_credit_notes,
55
+ :voided_at, :resource_version, :updated_at, :sub_total, :tax, :first_invoice, :line_items, :discounts,
56
+ :taxes, :line_item_taxes, :linked_payments, :applied_credits, :adjustment_credit_notes, :issued_credit_notes,
57
57
  :linked_orders, :notes, :shipping_address, :billing_address, :deleted
58
58
 
59
59
  # OPERATIONS
@@ -4,7 +4,8 @@ module ChargeBee
4
4
  attr_accessor :id, :name, :invoice_name, :description, :price, :currency_code, :period, :period_unit,
5
5
  :trial_period, :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty,
6
6
  :status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal,
7
- :tax_code, :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data
7
+ :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2, :resource_version,
8
+ :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data
8
9
 
9
10
  # OPERATIONS
10
11
  #-----------
@@ -17,8 +17,8 @@ module ChargeBee
17
17
  :trial_start, :trial_end, :current_term_start, :current_term_end, :remaining_billing_cycles,
18
18
  :po_number, :created_at, :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token,
19
19
  :created_from_ip, :resource_version, :updated_at, :has_scheduled_changes, :due_invoices_count,
20
- :due_since, :total_dues, :addons, :coupon, :coupons, :shipping_address, :invoice_notes, :meta_data,
21
- :deleted
20
+ :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons, :coupon, :coupons,
21
+ :shipping_address, :invoice_notes, :meta_data, :deleted
22
22
 
23
23
  # OPERATIONS
24
24
  #-----------
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chargebee
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rajaraman S
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-24 00:00:00.000000000 Z
12
+ date: 2016-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure