chargebee 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ca2f07509d1d5f3ac363b7e636f4f3f69708474
4
- data.tar.gz: 877d42cdb7c5d919152967e7c0ca8b67260755e6
3
+ metadata.gz: 29f7424e3194b1f815405463e1f9b55d54a3a1f8
4
+ data.tar.gz: 353342d3cab8e3b1926ecdad8e39e8efcc617b7d
5
5
  SHA512:
6
- metadata.gz: e3211121316f5e0890c23ae3828b7526b405a2c72141952cfa9ca117af3fcff307bae338fe4611a074c2a390e6a452946ddadfeb84071842ed0970db16c78918
7
- data.tar.gz: 442ace2691d487e12ee5b80fe6367597d1ccb60c0f5b00f8655c40e877094a574c7223cc241b152a105d6ac137cc939dc9bf674e33b3ada1cfa0ecbb0b58118b
6
+ metadata.gz: 644b9cdabf10a4311bd75e3d6692e277b673e0c80a79353249b542b193ff48fbc82db745ee8e6afbc3930c531b32e5faaf01a86deddec8879c6223e573c62647
7
+ data.tar.gz: 9b52641765b3f1a1b423be9c1f6d5836e4935f598e3056809e4e3b56fa602b9a859e19c5d4b02c3d3f95e2e4f5340b7bd3a42ac846fce19e0630848908258e7b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ###v2.0.8 (2016-07-04)
2
+ * * *
3
+ ** APIs updated**:
4
+ The attribute "currency_code" is added as part of Plans, Addons, Coupons, Subscription, Transaction and Estimate resource.
5
+ See : https://apidocs.chargebee.com/docs/api/subscriptions#subscription_attributes
6
+
7
+ The API's Set promotional credits for a customer, Add promotional credits to a customer and Deduct promotional credits for a customer takes in "currency_code" as input.
8
+ See : https://apidocs.chargebee.com/docs/api/customers#set_promotional_credits_for_a_customer
9
+
1
10
  ### v2.0.7 (2016-06-27)
2
11
  * * *
3
12
 
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.0.7'
8
- s.date = '2016-06-27'
7
+ s.version = '2.0.8'
8
+ s.date = '2016-07-04'
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.0.7'
36
+ VERSION = '2.0.8'
37
37
 
38
38
  @@default_env = nil
39
39
  @@verify_ca_certs = true
@@ -1,9 +1,9 @@
1
1
  module ChargeBee
2
2
  class Addon < Model
3
3
 
4
- attr_accessor :id, :name, :invoice_name, :description, :type, :charge_type, :price, :period,
5
- :period_unit, :unit, :status, :archived_at, :enabled_in_portal, :tax_code, :invoice_notes, :taxable,
6
- :meta_data
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, :invoice_notes,
6
+ :taxable, :meta_data
7
7
 
8
8
  # OPERATIONS
9
9
  #-----------
@@ -2,8 +2,8 @@ module ChargeBee
2
2
  class Coupon < Model
3
3
 
4
4
  attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount,
5
- :discount_quantity, :duration_type, :duration_month, :valid_till, :max_redemptions, :status,
6
- :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint, :created_at, :archived_at,
5
+ :discount_quantity, :currency_code, :duration_type, :duration_month, :valid_till, :max_redemptions,
6
+ :status, :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint, :created_at, :archived_at,
7
7
  :plan_ids, :addon_ids, :redemptions, :invoice_notes, :meta_data
8
8
 
9
9
  # OPERATIONS
@@ -26,8 +26,8 @@ module ChargeBee
26
26
  end
27
27
 
28
28
  attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
29
- :status, :vat_number, :date, :price_type, :total, :amount_allocated, :amount_refunded, :amount_available,
30
- :refunded_at, :sub_total, :currency_code, :line_items, :discounts, :taxes, :line_item_taxes,
29
+ :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
30
+ :amount_available, :refunded_at, :sub_total, :line_items, :discounts, :taxes, :line_item_taxes,
31
31
  :linked_refunds, :allocations
32
32
 
33
33
  # OPERATIONS
@@ -17,8 +17,8 @@ module ChargeBee
17
17
  attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
18
18
  end
19
19
 
20
- attr_accessor :reference_invoice_id, :type, :price_type, :sub_total, :total, :amount_allocated,
21
- :amount_available, :line_items, :discounts, :taxes, :line_item_taxes
20
+ attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
21
+ :amount_allocated, :amount_available, :line_items, :discounts, :taxes, :line_item_taxes
22
22
 
23
23
  # OPERATIONS
24
24
  #-----------
@@ -50,10 +50,10 @@ module ChargeBee
50
50
  end
51
51
 
52
52
  attr_accessor :id, :po_number, :customer_id, :subscription_id, :recurring, :status, :vat_number,
53
- :price_type, :date, :total, :amount_paid, :amount_adjusted, :write_off_amount, :credits_applied,
54
- :amount_due, :paid_at, :dunning_status, :next_retry_at, :sub_total, :tax, :first_invoice, :currency_code,
55
- :line_items, :discounts, :taxes, :line_item_taxes, :linked_payments, :applied_credits, :adjustment_credit_notes,
56
- :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address
53
+ :price_type, :date, :currency_code, :total, :amount_paid, :amount_adjusted, :write_off_amount,
54
+ :credits_applied, :amount_due, :paid_at, :dunning_status, :next_retry_at, :sub_total, :tax,
55
+ :first_invoice, :line_items, :discounts, :taxes, :line_item_taxes, :linked_payments, :applied_credits,
56
+ :adjustment_credit_notes, :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address
57
57
 
58
58
  # OPERATIONS
59
59
  #-----------
@@ -17,8 +17,8 @@ module ChargeBee
17
17
  attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
18
18
  end
19
19
 
20
- attr_accessor :recurring, :price_type, :sub_total, :total, :credits_applied, :amount_paid, :amount_due,
21
- :line_items, :discounts, :taxes, :line_item_taxes
20
+ attr_accessor :recurring, :price_type, :currency_code, :sub_total, :total, :credits_applied,
21
+ :amount_paid, :amount_due, :line_items, :discounts, :taxes, :line_item_taxes
22
22
 
23
23
  # OPERATIONS
24
24
  #-----------
@@ -1,9 +1,9 @@
1
1
  module ChargeBee
2
2
  class Plan < Model
3
3
 
4
- attr_accessor :id, :name, :invoice_name, :description, :price, :period, :period_unit, :trial_period,
5
- :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty, :status,
6
- :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal,
4
+ attr_accessor :id, :name, :invoice_name, :description, :price, :currency_code, :period, :period_unit,
5
+ :trial_period, :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty,
6
+ :status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal,
7
7
  :tax_code, :invoice_notes, :taxable, :meta_data
8
8
 
9
9
  # OPERATIONS
@@ -13,11 +13,11 @@ module ChargeBee
13
13
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip
14
14
  end
15
15
 
16
- attr_accessor :id, :customer_id, :plan_id, :plan_quantity, :status, :start_date, :trial_start,
17
- :trial_end, :current_term_start, :current_term_end, :remaining_billing_cycles, :po_number, :created_at,
18
- :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token, :created_from_ip,
19
- :has_scheduled_changes, :due_invoices_count, :due_since, :total_dues, :addons, :coupon, :coupons,
20
- :shipping_address, :invoice_notes, :meta_data
16
+ attr_accessor :id, :customer_id, :currency_code, :plan_id, :plan_quantity, :status, :start_date,
17
+ :trial_start, :trial_end, :current_term_start, :current_term_end, :remaining_billing_cycles,
18
+ :po_number, :created_at, :started_at, :activated_at, :cancelled_at, :cancel_reason, :affiliate_token,
19
+ :created_from_ip, :has_scheduled_changes, :due_invoices_count, :due_since, :total_dues, :addons,
20
+ :coupon, :coupons, :shipping_address, :invoice_notes, :meta_data
21
21
 
22
22
  # OPERATIONS
23
23
  #-----------
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class SubscriptionEstimate < Model
3
3
 
4
- attr_accessor :id, :status, :next_billing_at
4
+ attr_accessor :id, :currency_code, :status, :next_billing_at
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -14,9 +14,9 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  attr_accessor :id, :customer_id, :subscription_id, :payment_method, :reference_number, :gateway,
17
- :type, :date, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at, :amount_unused,
18
- :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reversal_transaction_id,
19
- :linked_invoices, :linked_credit_notes, :linked_refunds, :currency_code
17
+ :type, :date, :currency_code, :amount, :id_at_gateway, :status, :error_code, :error_text, :voided_at,
18
+ :amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reversal_transaction_id,
19
+ :linked_invoices, :linked_credit_notes, :linked_refunds
20
20
 
21
21
  # OPERATIONS
22
22
  #-----------
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.0.7
4
+ version: 2.0.8
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-06-27 00:00:00.000000000 Z
12
+ date: 2016-07-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure