chargebee 2.5.7 → 2.5.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: 281d2a2471741462a258d50ecc87959892bcde1a
4
- data.tar.gz: 984326d0200eeb984c9eb84ed69d5e1c4a973497
3
+ metadata.gz: d738a942027b6ff0e57dc98cd6dce5eab57adda4
4
+ data.tar.gz: e67226421e275d4126523aab0ec907fa12d49434
5
5
  SHA512:
6
- metadata.gz: 3a2a569268adc08ac9c53dc099b4ad35de741e7962e6d99d414dcb38da6450734945e0dec2acc6db85b0eb294277ad210bfe5a90472fcbdee255e39a0fd126a8
7
- data.tar.gz: 2b788d64639fe1e65fbecbdb332f664b8809dd3365ed6a050531cc19224a01de98e48d36c97f6bbbd83cc0455437296a9e9285a996305a2cc3e5147ddf6a6370
6
+ metadata.gz: 8698d6794b61f9d6c0fa7f34357317970b8dd172c9e47188d4dd560c1b8e22d1d9c1291d6aecf0910a5620958fc6c194874c68c502ac3fcde16f9eec9a87d025
7
+ data.tar.gz: fa526dff7ad005f43ab36f622708c4ccca43f7d8cfc0b764d0c97bc8a74aeebf9aecc376211e35da0193c8fb8d5cd9f72869f9c2d9e225d077cd49c1e16e48c4
@@ -1,3 +1,25 @@
1
+ ### v2.5.8 (2018-10-17)
2
+ * * *
3
+
4
+ * The attributes pricing_model and tiers has been added in Addon , Plan and UnbilledCharge resources.
5
+ * The attribute price is made optional in Plan and Addon resource.
6
+ * The input parameters pricing_model, tier_starting_unit, tier_ending_unit and tier_price have been added in Create addon , Update addon , Create Plan and Update Plan APIs.
7
+ * The attributes line_item_tiers would be added in creditNote , Invoice , InvoiceEstimate and CreditNoteEstimate resources.
8
+ * The attribute pricing_model have been added to line_tem sub-resource of CreditNote , Invoice , InvoiceEstimate and CreditNoteEstimate resources.
9
+ * The input parameter line_item_amount has been added in Create credit note API.
10
+ * The input parameters line_item_unit_amount and line_item_quantity have been changed to optional parameters in Create Credit Note API.
11
+ * The input parameter line_item_id, line_item_tier_line_item_id, line_item_tier_starting_unit, line_item_tier_ending_unit, line_item_tier_quantity_used, line_item_tier_unit_amount have been added in Import invoice API.
12
+ * The attribute amount has been added to Addon subResource attributes of Subscription API.
13
+ * The attribute plan_amount has been added to Subscription API.
14
+ * The type pricing_model with values flat_fee, per_unit, tiered, volume and stairstep have been added.
15
+ * The values tiered, volume and stairstep have been added the attribute type of Addon resource.
16
+ * The values tiered, volume and stairstep have been added to the attribute charge_model of Plan resource.
17
+ * The input parameter type has been deprecated in Create Addon and Update Addon APIs.
18
+ * The input parameter charge_model has been deprecated in Create Plan and Update Plan APIs.
19
+ * The filter parameter type has been deprecated in List Addon API.
20
+ * The filter parameter charge_model has been deprecated in List Plan API.
21
+ * The filter parameter pricing_model has been added to List Plan and List Addon APIs.
22
+
1
23
  ### v2.5.7 (2018-10-03)
2
24
  * * *
3
25
 
@@ -4,8 +4,8 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
  s.required_ruby_version = '>= 1.9.3'
6
6
  s.name = 'chargebee'
7
- s.version = '2.5.7'
8
- s.date = '2018-10-03'
7
+ s.version = '2.5.8'
8
+ s.date = '2018-10-17'
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."
@@ -43,7 +43,7 @@ require File.dirname(__FILE__) + '/chargebee/models/contact.rb'
43
43
 
44
44
  module ChargeBee
45
45
 
46
- VERSION = '2.5.7'
46
+ VERSION = '2.5.8'
47
47
 
48
48
  @@default_env = nil
49
49
  @@verify_ca_certs = true
@@ -1,10 +1,15 @@
1
1
  module ChargeBee
2
2
  class Addon < Model
3
3
 
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, :sku, :accounting_code,
6
- :accounting_category1, :accounting_category2, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
7
- :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data
4
+ class Tier < Model
5
+ attr_accessor :starting_unit, :ending_unit, :price
6
+ end
7
+
8
+ attr_accessor :id, :name, :invoice_name, :description, :pricing_model, :type, :charge_type,
9
+ :price, :currency_code, :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal,
10
+ :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2, :is_shippable,
11
+ :shipping_frequency_period, :shipping_frequency_period_unit, :resource_version, :updated_at,
12
+ :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers
8
13
 
9
14
  # OPERATIONS
10
15
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class CreditNote < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_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
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
6
6
  end
7
7
 
8
8
  class Discount < Model
@@ -13,6 +13,10 @@ module ChargeBee
13
13
  attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
14
14
  end
15
15
 
16
+ class LineItemTier < Model
17
+ attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
18
+ end
19
+
16
20
  class Tax < Model
17
21
  attr_accessor :name, :amount, :description
18
22
  end
@@ -32,8 +36,8 @@ module ChargeBee
32
36
  attr_accessor :id, :customer_id, :subscription_id, :reference_invoice_id, :type, :reason_code,
33
37
  :status, :vat_number, :date, :price_type, :currency_code, :total, :amount_allocated, :amount_refunded,
34
38
  :amount_available, :refunded_at, :voided_at, :resource_version, :updated_at, :sub_total, :round_off_amount,
35
- :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :linked_refunds, :allocations,
36
- :deleted
39
+ :line_items, :discounts, :line_item_discounts, :line_item_tiers, :taxes, :line_item_taxes, :linked_refunds,
40
+ :allocations, :deleted
37
41
 
38
42
  # OPERATIONS
39
43
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class CreditNoteEstimate < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_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
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
6
6
  end
7
7
 
8
8
  class Discount < Model
@@ -21,9 +21,13 @@ module ChargeBee
21
21
  attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
22
22
  end
23
23
 
24
+ class LineItemTier < Model
25
+ attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
26
+ end
27
+
24
28
  attr_accessor :reference_invoice_id, :type, :price_type, :currency_code, :sub_total, :total,
25
29
  :amount_allocated, :amount_available, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_discounts,
26
- :round_off_amount
30
+ :line_item_tiers, :round_off_amount
27
31
 
28
32
  # OPERATIONS
29
33
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Invoice < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_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
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
6
6
  end
7
7
 
8
8
  class Discount < Model
@@ -21,6 +21,10 @@ module ChargeBee
21
21
  attr_accessor :line_item_id, :tax_name, :tax_rate, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code
22
22
  end
23
23
 
24
+ class LineItemTier < Model
25
+ attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
26
+ end
27
+
24
28
  class LinkedPayment < Model
25
29
  attr_accessor :txn_id, :applied_amount, :applied_at, :txn_status, :txn_date, :txn_amount
26
30
  end
@@ -58,8 +62,8 @@ module ChargeBee
58
62
  :write_off_amount, :credits_applied, :amount_due, :paid_at, :dunning_status, :next_retry_at,
59
63
  :voided_at, :resource_version, :updated_at, :sub_total, :tax, :first_invoice, :has_advance_charges,
60
64
  :expected_payment_date, :amount_to_collect, :round_off_amount, :line_items, :discounts, :line_item_discounts,
61
- :taxes, :line_item_taxes, :linked_payments, :applied_credits, :adjustment_credit_notes, :issued_credit_notes,
62
- :linked_orders, :notes, :shipping_address, :billing_address, :deleted
65
+ :taxes, :line_item_taxes, :line_item_tiers, :linked_payments, :applied_credits, :adjustment_credit_notes,
66
+ :issued_credit_notes, :linked_orders, :notes, :shipping_address, :billing_address, :deleted
63
67
 
64
68
  # OPERATIONS
65
69
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class InvoiceEstimate < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_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
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :discount_amount, :item_level_discount_amount, :description, :entity_type, :tax_exempt_reason, :entity_id
6
6
  end
7
7
 
8
8
  class Discount < Model
@@ -17,13 +17,17 @@ 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
+ class LineItemTier < Model
21
+ attr_accessor :line_item_id, :starting_unit, :ending_unit, :quantity_used, :unit_amount
22
+ end
23
+
20
24
  class LineItemDiscount < Model
21
25
  attr_accessor :line_item_id, :discount_type, :coupon_id, :discount_amount
22
26
  end
23
27
 
24
28
  attr_accessor :recurring, :price_type, :currency_code, :sub_total, :total, :credits_applied,
25
- :amount_paid, :amount_due, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_discounts,
26
- :round_off_amount
29
+ :amount_paid, :amount_due, :line_items, :discounts, :taxes, :line_item_taxes, :line_item_tiers,
30
+ :line_item_discounts, :round_off_amount
27
31
 
28
32
  # OPERATIONS
29
33
  #-----------
@@ -1,6 +1,10 @@
1
1
  module ChargeBee
2
2
  class Plan < Model
3
3
 
4
+ class Tier < Model
5
+ attr_accessor :starting_unit, :ending_unit, :price
6
+ end
7
+
4
8
  class ApplicableAddon < Model
5
9
  attr_accessor :id
6
10
  end
@@ -14,12 +18,12 @@ module ChargeBee
14
18
  end
15
19
 
16
20
  attr_accessor :id, :name, :invoice_name, :description, :price, :currency_code, :period, :period_unit,
17
- :trial_period, :trial_period_unit, :charge_model, :free_quantity, :setup_cost, :downgrade_penalty,
18
- :status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages, :enabled_in_portal,
19
- :addon_applicability, :tax_code, :sku, :accounting_code, :accounting_category1, :accounting_category2,
20
- :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit, :resource_version,
21
- :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :applicable_addons, :attached_addons,
22
- :event_based_addons
21
+ :trial_period, :trial_period_unit, :pricing_model, :charge_model, :free_quantity, :setup_cost,
22
+ :downgrade_penalty, :status, :archived_at, :billing_cycles, :redirect_url, :enabled_in_hosted_pages,
23
+ :enabled_in_portal, :addon_applicability, :tax_code, :sku, :accounting_code, :accounting_category1,
24
+ :accounting_category2, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
25
+ :resource_version, :updated_at, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers,
26
+ :applicable_addons, :attached_addons, :event_based_addons
23
27
 
24
28
  # OPERATIONS
25
29
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Subscription < Model
3
3
 
4
4
  class Addon < Model
5
- attr_accessor :id, :quantity, :unit_price, :trial_end, :remaining_billing_cycles
5
+ attr_accessor :id, :quantity, :unit_price, :amount, :trial_end, :remaining_billing_cycles
6
6
  end
7
7
 
8
8
  class EventBasedAddon < Model
@@ -26,13 +26,14 @@ module ChargeBee
26
26
  end
27
27
 
28
28
  attr_accessor :id, :customer_id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price,
29
- :setup_fee, :billing_period, :billing_period_unit, :plan_free_quantity, :status, :start_date,
30
- :trial_start, :trial_end, :current_term_start, :current_term_end, :next_billing_at, :remaining_billing_cycles,
31
- :po_number, :created_at, :started_at, :activated_at, :pause_date, :resume_date, :cancelled_at,
32
- :cancel_reason, :affiliate_token, :created_from_ip, :resource_version, :updated_at, :has_scheduled_changes,
33
- :payment_source_id, :auto_collection, :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate,
34
- :base_currency_code, :addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons,
35
- :shipping_address, :referral_info, :invoice_notes, :meta_data, :deleted
29
+ :setup_fee, :plan_amount, :billing_period, :billing_period_unit, :plan_free_quantity, :status,
30
+ :start_date, :trial_start, :trial_end, :current_term_start, :current_term_end, :next_billing_at,
31
+ :remaining_billing_cycles, :po_number, :created_at, :started_at, :activated_at, :pause_date,
32
+ :resume_date, :cancelled_at, :cancel_reason, :affiliate_token, :created_from_ip, :resource_version,
33
+ :updated_at, :has_scheduled_changes, :payment_source_id, :auto_collection, :due_invoices_count,
34
+ :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons, :event_based_addons,
35
+ :charged_event_based_addons, :coupon, :coupons, :shipping_address, :referral_info, :invoice_notes,
36
+ :meta_data, :deleted
36
37
 
37
38
  # OPERATIONS
38
39
  #-----------
@@ -1,9 +1,13 @@
1
1
  module ChargeBee
2
2
  class UnbilledCharge < Model
3
3
 
4
- attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity,
5
- :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id, :is_voided,
6
- :voided_at, :deleted
4
+ class Tier < Model
5
+ attr_accessor :starting_unit, :ending_unit, :quantity_used, :unit_amount
6
+ end
7
+
8
+ attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
9
+ :quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
10
+ :is_voided, :voided_at, :tiers, :deleted
7
11
 
8
12
  # OPERATIONS
9
13
  #-----------
@@ -50,18 +50,19 @@ module ChargeBee
50
50
 
51
51
  def invoice()
52
52
  invoice = get(:invoice, Invoice,
53
- {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :linked_payments => Invoice::LinkedPayment, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
53
+ {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
54
54
  return invoice;
55
55
  end
56
56
 
57
57
  def credit_note()
58
58
  credit_note = get(:credit_note, CreditNote,
59
- {:line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation});
59
+ {:line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation});
60
60
  return credit_note;
61
61
  end
62
62
 
63
63
  def unbilled_charge()
64
- unbilled_charge = get(:unbilled_charge, UnbilledCharge);
64
+ unbilled_charge = get(:unbilled_charge, UnbilledCharge,
65
+ {:tiers => UnbilledCharge::Tier});
65
66
  return unbilled_charge;
66
67
  end
67
68
 
@@ -88,26 +89,27 @@ module ChargeBee
88
89
  estimate.init_dependant(@response[:estimate], :subscription_estimate,
89
90
  {:shipping_address => SubscriptionEstimate::ShippingAddress});
90
91
  estimate.init_dependant(@response[:estimate], :invoice_estimate,
91
- {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
92
+ {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
92
93
  estimate.init_dependant(@response[:estimate], :next_invoice_estimate,
93
- {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
94
+ {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
94
95
  estimate.init_dependant_list(@response[:estimate], :invoice_estimates,
95
- {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
96
+ {:line_items => InvoiceEstimate::LineItem, :discounts => InvoiceEstimate::Discount, :taxes => InvoiceEstimate::Tax, :line_item_taxes => InvoiceEstimate::LineItemTax, :line_item_tiers => InvoiceEstimate::LineItemTier, :line_item_discounts => InvoiceEstimate::LineItemDiscount});
96
97
  estimate.init_dependant_list(@response[:estimate], :credit_note_estimates,
97
- {:line_items => CreditNoteEstimate::LineItem, :discounts => CreditNoteEstimate::Discount, :taxes => CreditNoteEstimate::Tax, :line_item_taxes => CreditNoteEstimate::LineItemTax, :line_item_discounts => CreditNoteEstimate::LineItemDiscount});
98
+ {:line_items => CreditNoteEstimate::LineItem, :discounts => CreditNoteEstimate::Discount, :taxes => CreditNoteEstimate::Tax, :line_item_taxes => CreditNoteEstimate::LineItemTax, :line_item_discounts => CreditNoteEstimate::LineItemDiscount, :line_item_tiers => CreditNoteEstimate::LineItemTier});
98
99
  estimate.init_dependant_list(@response[:estimate], :unbilled_charge_estimates,
99
- {});
100
+ {:tiers => UnbilledCharge::Tier});
100
101
  return estimate;
101
102
  end
102
103
 
103
104
  def plan()
104
105
  plan = get(:plan, Plan,
105
- {:applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
106
+ {:tiers => Plan::Tier, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
106
107
  return plan;
107
108
  end
108
109
 
109
110
  def addon()
110
- addon = get(:addon, Addon);
111
+ addon = get(:addon, Addon,
112
+ {:tiers => Addon::Tier});
111
113
  return addon;
112
114
  end
113
115
 
@@ -177,19 +179,19 @@ module ChargeBee
177
179
 
178
180
  def unbilled_charges()
179
181
  unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
180
- {});
182
+ {:tiers => UnbilledCharge::Tier});
181
183
  return unbilled_charges;
182
184
  end
183
185
 
184
186
  def credit_notes()
185
187
  credit_notes = get_list(:credit_notes, CreditNote,
186
- {:line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation});
188
+ {:line_items => CreditNote::LineItem, :discounts => CreditNote::Discount, :line_item_discounts => CreditNote::LineItemDiscount, :line_item_tiers => CreditNote::LineItemTier, :taxes => CreditNote::Tax, :line_item_taxes => CreditNote::LineItemTax, :linked_refunds => CreditNote::LinkedRefund, :allocations => CreditNote::Allocation});
187
189
  return credit_notes;
188
190
  end
189
191
 
190
192
  def invoices()
191
193
  invoices = get_list(:invoices, Invoice,
192
- {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :linked_payments => Invoice::LinkedPayment, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
194
+ {:line_items => Invoice::LineItem, :discounts => Invoice::Discount, :line_item_discounts => Invoice::LineItemDiscount, :taxes => Invoice::Tax, :line_item_taxes => Invoice::LineItemTax, :line_item_tiers => Invoice::LineItemTier, :linked_payments => Invoice::LinkedPayment, :applied_credits => Invoice::AppliedCredit, :adjustment_credit_notes => Invoice::AdjustmentCreditNote, :issued_credit_notes => Invoice::IssuedCreditNote, :linked_orders => Invoice::LinkedOrder, :notes => Invoice::Note, :shipping_address => Invoice::ShippingAddress, :billing_address => Invoice::BillingAddress});
193
195
  return invoices;
194
196
  end
195
197
 
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.5.7
4
+ version: 2.5.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: 2018-10-03 00:00:00.000000000 Z
12
+ date: 2018-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure