chargebee 2.16.0 → 2.20.0

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.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +79 -0
  3. data/Gemfile +3 -0
  4. data/Gemfile.lock +55 -0
  5. data/chargebee.gemspec +9 -2
  6. data/lib/chargebee/models/addon.rb +1 -1
  7. data/lib/chargebee/models/credit_note.rb +4 -3
  8. data/lib/chargebee/models/credit_note_estimate.rb +2 -2
  9. data/lib/chargebee/models/customer.rb +7 -6
  10. data/lib/chargebee/models/discount.rb +12 -0
  11. data/lib/chargebee/models/entitlement_override.rb +1 -6
  12. data/lib/chargebee/models/estimate.rb +2 -2
  13. data/lib/chargebee/models/hosted_page.rb +6 -2
  14. data/lib/chargebee/models/impacted_item.rb +14 -0
  15. data/lib/chargebee/models/impacted_subscription.rb +14 -0
  16. data/lib/chargebee/models/in_app_subscription.rb +18 -0
  17. data/lib/chargebee/models/invoice.rb +4 -4
  18. data/lib/chargebee/models/invoice_estimate.rb +2 -2
  19. data/lib/chargebee/models/item_entitlement.rb +1 -5
  20. data/lib/chargebee/models/order.rb +1 -1
  21. data/lib/chargebee/models/payment_intent.rb +1 -1
  22. data/lib/chargebee/models/payment_source.rb +1 -1
  23. data/lib/chargebee/models/plan.rb +1 -1
  24. data/lib/chargebee/models/purchase.rb +18 -0
  25. data/lib/chargebee/models/quote.rb +4 -4
  26. data/lib/chargebee/models/quote_line_group.rb +2 -2
  27. data/lib/chargebee/models/quoted_charge.rb +1 -1
  28. data/lib/chargebee/models/quoted_subscription.rb +1 -1
  29. data/lib/chargebee/models/subscription.rb +12 -3
  30. data/lib/chargebee/models/subscription_entitlement.rb +2 -6
  31. data/lib/chargebee/models/subscription_estimate.rb +1 -1
  32. data/lib/chargebee/models/token.rb +1 -1
  33. data/lib/chargebee/models/transaction.rb +1 -1
  34. data/lib/chargebee/models/unbilled_charge.rb +2 -2
  35. data/lib/chargebee/result.rb +40 -7
  36. data/lib/chargebee.rb +1 -1
  37. metadata +9 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e91a90da69999c446d0f339ddaccef3239841ea
4
- data.tar.gz: 8584192a936b3f00d2c842d4747be030b571ef78
3
+ metadata.gz: 597fc1a63786c913dce021f6543a34b18fdfdf37
4
+ data.tar.gz: dea300a96633c90cfebbae706332980f4776dc4e
5
5
  SHA512:
6
- metadata.gz: f0a0dfbc6687ceb4af29180ecc689bfe9836c3ac43ec48b6e4ef601b2651c9e5d991ff584e71dae0976850ce6b32cacdca5f823500e6e3720881d211711dac5f
7
- data.tar.gz: ee4c770b3a428cf8fabb0407c6bb5d3aa1269ffaced5909339225261b31b8522ac24a061fdea340804ac9ce35708d483ab69989174a1450ce7ee91cbd9cc2fff
6
+ metadata.gz: 5f16dbd970124daae33798ad87861980f38c42f41abca2245df0cdc5d7a7eb1219d607c558bc8ec38d34bc9db17ccb43517338a81541a38a23d0b8f53638d931
7
+ data.tar.gz: cbed4282a3c1047eb7d276f02425f64832d700efd4be156b51631f6d2f27548633c55cff630d3af0b6b19d3414e45112fe964366ec209a18e54f868bd9ed0c07
data/CHANGELOG.md CHANGED
@@ -1,3 +1,82 @@
1
+ ### v2.20.0 (2022-09-20)
2
+
3
+ #### New Resource:
4
+ * discount has been added.
5
+
6
+ #### New Enum values:
7
+ * apply_on, duration_type and operation_type enums have been added.
8
+
9
+ ### v2.19.0 (2022-09-20)
10
+ * * *
11
+
12
+ #### New endpoints:
13
+ * subscriptions#list_discounts has been added to the subscriptions resource.
14
+
15
+ #### New attributes:
16
+ * billing_month has been added to the customer resource.
17
+
18
+ #### Added input parameters:
19
+ * billing_month has been added to the customers#change_billing_date API.
20
+ * line_items[subscription_id] has been added to the invoices#import_invoice API.
21
+ * layout has been added to hosted_pages#checkout_onetime_for_items, hosted_pages#checkout_new_for_items and hosted_pages#checkout_existing_for_items APIs.
22
+ * discounts[apply_on], discounts[percentage], discounts[amount] and discounts[item_price_id] have been added to estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, hosted_pages#checkout_onetime_for_items, hosted_pages#checkout_new_for_items, hosted_pages#checkout_existing_for_items, invoices#create_for_charge_items_and_charges, quotes#create_subscription_for_items, quotes#edit_create_subscription_quote_for_items, quotes#update_subscription_quote_for_items, quotes#edit_update_subscription_quote_for_items, quotes#create_for_charge_items_and_charges, quotes#edit_for_charge_items_and_charges, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items APIs.
23
+ * discounts[duration_type], discounts[period], discounts[period_unit] and discounts[included_in_mrr] have been added to estimates#create_subscription_for_items, estimates#create_subscription_for_items_estimate, estimates#update_subscription_for_items, hosted_pages#checkout_new_for_items, hosted_pages#checkout_existing_for_items, quotes#create_subscription_for_items, quotes#edit_create_subscription_quote_for_items, quotes#update_subscription_quote_for_items, quotes#edit_update_subscription_quote_for_items, subscriptions#create_subscription_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items APIs.
24
+ * discounts[operation_type] and discounts[id] have been added to estimates#update_subscription_for_items, quotes#update_subscription_quote_for_items, hosted_pages#checkout_existing_for_items, quotes#edit_update_subscription_quote_for_items, subscriptions#update_subscription_for_items and subscriptions#import_subscription_for_items APIs.
25
+
26
+ #### New Enum values:
27
+ * global_payments has been added to gateway enum.
28
+ * layout enum has been added.
29
+
30
+ ### v2.18.0 (2022-08-22)
31
+ * * *
32
+
33
+ #### Fixes:
34
+ * Added github action and gemlock files.
35
+
36
+ #### New endpoints:
37
+ * Purchase#Retrieve has been added to the Purchase resource.
38
+
39
+ #### New attributes:
40
+ * ResourceVersion has been added to the Token resource.
41
+ * UpdatedAt has been added to the Token and UnbilledCharge resources.
42
+ * ReferenceLineItemId has been added to the CreditNote#LineItem, CreditNoteEstimate#LineItem, Quote#LineItem, QuoteLineGroup#LineItem, InvoiceEstimate#LineItem and Invoice#LineItem subResources.
43
+ * Index has been added to the Order#ShippingAddress, Invoice#ShippingAddress, Quote#ShippingAddress, QuotedCharge#ItemTier, QuotedSubscription#ItemTier, Subscription#ItemTier, Subscription#ShippingAddress and SubscriptionEstimate#ShippingAddress subResources.
44
+ * VoidWithCreditNote has been added to the Invoice#VoidInvoiceRequest subresources.
45
+ * PaymentMethodDetails has been added to the Transaction resource.
46
+
47
+ #### New Resource:
48
+ * InAppSubscription have been added.
49
+
50
+ #### Removed input parameters:
51
+ * BusinessEntityId has been removed from Purchase#CreateRequest and Purchase#EstimateRequest.
52
+
53
+
54
+ ### v2.17.0 (2022-07-08)
55
+ * * *
56
+
57
+ ### Fixes:
58
+ * Fixed Status Enum related issues
59
+ * Fixed EmbeddedResource related issues
60
+
61
+ #### New endpoints:
62
+ * hostedpage#PreCancel has been added to the hostedpage resource.
63
+
64
+ #### New attributes:
65
+ * business_entity_id have been added to the CreditNote, Customer,HostedPage, Invoice, PaymentIntent, Quote, Subscription and Transaction resources.
66
+ * coupon_set_code have been added to the CreditNote, CreditNoteEstimate, Invoice, InvoiceEstimate, Quote and QuoteLineGroup resources.
67
+ * List of SubscriptionEstimate have been added to Estimate resource.
68
+
69
+ #### New Resource:
70
+ * ImpactedSubscription, ImpactedItem, Purchase have been added.
71
+
72
+ #### New Enum values:
73
+ * direct_debit has been added to payment_method_type enum.
74
+ * bancontact, not_applicable added to payment_source_card_brand enum.
75
+ * business_entity added to entity_type Enum
76
+ * business_entity_created, business_entity_updated, business_entity_deleted, purchase_created added to event_type Enum
77
+ * chargebee_payments added to gateway Enum
78
+
79
+
1
80
  ### v2.16.0 (2022-05-23)
2
81
  * * *
3
82
 
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,55 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ chargebee (2.18.0)
5
+ cgi (>= 0.1.0, < 1.0.0)
6
+ json_pure (~> 2.1)
7
+ rest-client (>= 1.8, <= 2.0.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ cgi (0.3.2)
13
+ diff-lcs (1.4.4)
14
+ domain_name (0.5.20190701)
15
+ unf (>= 0.0.5, < 1.0.0)
16
+ http-cookie (1.0.5)
17
+ domain_name (~> 0.5)
18
+ json_pure (2.6.2)
19
+ mime-types (3.4.1)
20
+ mime-types-data (~> 3.2015)
21
+ mime-types-data (3.2022.0105)
22
+ mocha (1.13.0)
23
+ netrc (0.11.0)
24
+ rest-client (2.0.2)
25
+ http-cookie (>= 1.0.2, < 2.0)
26
+ mime-types (>= 1.16, < 4.0)
27
+ netrc (~> 0.8)
28
+ rspec (3.0.0)
29
+ rspec-core (~> 3.0.0)
30
+ rspec-expectations (~> 3.0.0)
31
+ rspec-mocks (~> 3.0.0)
32
+ rspec-core (3.0.4)
33
+ rspec-support (~> 3.0.0)
34
+ rspec-expectations (3.0.4)
35
+ diff-lcs (>= 1.2.0, < 2.0)
36
+ rspec-support (~> 3.0.0)
37
+ rspec-mocks (3.0.4)
38
+ rspec-support (~> 3.0.0)
39
+ rspec-support (3.0.4)
40
+ unf (0.1.4)
41
+ unf_ext
42
+ unf_ext (0.0.8.2)
43
+
44
+ PLATFORMS
45
+ arm64-darwin-21
46
+ x86_64-darwin-20
47
+ x86_64-linux
48
+
49
+ DEPENDENCIES
50
+ chargebee!
51
+ mocha
52
+ rspec (~> 3.0.0)
53
+
54
+ BUNDLED WITH
55
+ 2.3.17
data/chargebee.gemspec CHANGED
@@ -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.16.0'
8
- s.date = '2022-05-23'
7
+ s.version = '2.20.0'
8
+ s.date = '2022-09-20'
9
9
  s.summary = "Ruby client for Chargebee API."
10
10
  s.description = "Subscription Billing - Simple. Secure. Affordable. More details at www.chargebee.com."
11
11
 
@@ -28,6 +28,8 @@ Gem::Specification.new do |s|
28
28
  # = MANIFEST =
29
29
  s.files = %w[
30
30
  CHANGELOG.md
31
+ Gemfile
32
+ Gemfile.lock
31
33
  LICENSE
32
34
  README.rdoc
33
35
  Rakefile
@@ -51,6 +53,7 @@ Gem::Specification.new do |s|
51
53
  lib/chargebee/models/credit_note_estimate.rb
52
54
  lib/chargebee/models/customer.rb
53
55
  lib/chargebee/models/differential_price.rb
56
+ lib/chargebee/models/discount.rb
54
57
  lib/chargebee/models/download.rb
55
58
  lib/chargebee/models/entitlement_override.rb
56
59
  lib/chargebee/models/estimate.rb
@@ -60,6 +63,9 @@ Gem::Specification.new do |s|
60
63
  lib/chargebee/models/gift.rb
61
64
  lib/chargebee/models/hierarchy.rb
62
65
  lib/chargebee/models/hosted_page.rb
66
+ lib/chargebee/models/impacted_item.rb
67
+ lib/chargebee/models/impacted_subscription.rb
68
+ lib/chargebee/models/in_app_subscription.rb
63
69
  lib/chargebee/models/invoice.rb
64
70
  lib/chargebee/models/invoice_estimate.rb
65
71
  lib/chargebee/models/item.rb
@@ -73,6 +79,7 @@ Gem::Specification.new do |s|
73
79
  lib/chargebee/models/plan.rb
74
80
  lib/chargebee/models/portal_session.rb
75
81
  lib/chargebee/models/promotional_credit.rb
82
+ lib/chargebee/models/purchase.rb
76
83
  lib/chargebee/models/quote.rb
77
84
  lib/chargebee/models/quote_line_group.rb
78
85
  lib/chargebee/models/quoted_charge.rb
@@ -20,7 +20,7 @@ module ChargeBee
20
20
  Request.send('post', uri_path("addons"), params, env, headers)
21
21
  end
22
22
 
23
- def self.update(id, params={}, env=nil, headers={})
23
+ def self.update(id, params, env=nil, headers={})
24
24
  Request.send('post', uri_path("addons",id.to_s), params, env, headers)
25
25
  end
26
26
 
@@ -6,11 +6,11 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  class LineItem < Model
9
- attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
9
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
10
10
  end
11
11
 
12
12
  class Discount < Model
13
- attr_accessor :amount, :description, :entity_type, :entity_id
13
+ attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
14
14
  end
15
15
 
16
16
  class LineItemDiscount < Model
@@ -42,7 +42,8 @@ module ChargeBee
42
42
  :amount_available, :refunded_at, :voided_at, :generated_at, :resource_version, :updated_at,
43
43
  :channel, :einvoice, :sub_total, :sub_total_in_local_currency, :total_in_local_currency, :local_currency_code,
44
44
  :round_off_amount, :fractional_correction, :line_items, :discounts, :line_item_discounts, :line_item_tiers,
45
- :taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :create_reason_code, :vat_number_prefix
45
+ :taxes, :line_item_taxes, :linked_refunds, :allocations, :deleted, :create_reason_code, :vat_number_prefix,
46
+ :business_entity_id
46
47
 
47
48
  # OPERATIONS
48
49
  #-----------
@@ -2,11 +2,11 @@ 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, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
6
  end
7
7
 
8
8
  class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
9
+ attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
10
10
  end
11
11
 
12
12
  class Tax < Model
@@ -40,14 +40,15 @@ module ChargeBee
40
40
  attr_accessor :id, :first_name, :last_name, :email, :phone, :company, :vat_number, :auto_collection,
41
41
  :offline_payment_method, :net_term_days, :vat_number_validated_time, :vat_number_status, :allow_direct_debit,
42
42
  :is_location_valid, :created_at, :created_from_ip, :exemption_details, :taxability, :entity_code,
43
- :exempt_number, :resource_version, :updated_at, :locale, :billing_date, :billing_date_mode,
43
+ :exempt_number, :resource_version, :updated_at, :locale, :billing_date, :billing_month, :billing_date_mode,
44
44
  :billing_day_of_week, :billing_day_of_week_mode, :pii_cleared, :auto_close_invoices, :channel,
45
45
  :card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id, :billing_address,
46
- :referral_urls, :contacts, :payment_method, :invoice_notes, :preferred_currency_code, :promotional_credits,
47
- :unbilled_charges, :refundable_credits, :excess_payments, :balances, :entity_identifiers, :is_einvoice_enabled,
48
- :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
49
- :client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access,
50
- :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard
46
+ :referral_urls, :contacts, :payment_method, :invoice_notes, :business_entity_id, :preferred_currency_code,
47
+ :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments, :balances, :entity_identifiers,
48
+ :is_einvoice_enabled, :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type,
49
+ :business_customer_without_vat_number, :client_profile_id, :relationship, :use_default_hierarchy_settings,
50
+ :parent_account_access, :child_account_access, :vat_number_prefix, :entity_identifier_scheme,
51
+ :entity_identifier_standard
51
52
 
52
53
  # OPERATIONS
53
54
  #-----------
@@ -0,0 +1,12 @@
1
+ module ChargeBee
2
+ class Discount < Model
3
+
4
+ attr_accessor :id, :invoice_name, :percentage, :amount, :currency_code, :duration_type, :period,
5
+ :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count,
6
+ :coupon_id, :index
7
+
8
+ # OPERATIONS
9
+ #-----------
10
+
11
+ end # ~Discount
12
+ end # ~ChargeBee
@@ -1,12 +1,7 @@
1
1
  module ChargeBee
2
2
  class EntitlementOverride < Model
3
3
 
4
- class EmbeddedResource < Model
5
- attr_accessor
6
- end
7
-
8
- attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name, :expires_at,
9
- :embedded
4
+ attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name, :expires_at
10
5
 
11
6
  # OPERATIONS
12
7
  #-----------
@@ -1,8 +1,8 @@
1
1
  module ChargeBee
2
2
  class Estimate < Model
3
3
 
4
- attr_accessor :created_at, :subscription_estimate, :invoice_estimate, :invoice_estimates, :next_invoice_estimate,
5
- :credit_note_estimates, :unbilled_charge_estimates
4
+ attr_accessor :created_at, :subscription_estimate, :subscription_estimates, :invoice_estimate,
5
+ :invoice_estimates, :next_invoice_estimate, :credit_note_estimates, :unbilled_charge_estimates
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class HostedPage < Model
3
3
 
4
4
  attr_accessor :id, :type, :url, :state, :failure_reason, :pass_thru_content, :embed, :created_at,
5
- :expires_at, :updated_at, :resource_version, :checkout_info
5
+ :expires_at, :updated_at, :resource_version, :checkout_info, :business_entity_id
6
6
 
7
7
  class Content < Result
8
8
  end
@@ -26,7 +26,7 @@ module ChargeBee
26
26
  Request.send('post', uri_path("hosted_pages","checkout_one_time"), params, env, headers)
27
27
  end
28
28
 
29
- def self.checkout_one_time_for_items(params={}, env=nil, headers={})
29
+ def self.checkout_one_time_for_items(params, env=nil, headers={})
30
30
  Request.send('post', uri_path("hosted_pages","checkout_one_time_for_items"), params, env, headers)
31
31
  end
32
32
 
@@ -94,5 +94,9 @@ module ChargeBee
94
94
  Request.send_list_request('get', uri_path("hosted_pages"), params, env, headers)
95
95
  end
96
96
 
97
+ def self.pre_cancel(params, env=nil, headers={})
98
+ Request.send('post', uri_path("hosted_pages","pre_cancel"), params, env, headers)
99
+ end
100
+
97
101
  end # ~HostedPage
98
102
  end # ~ChargeBee
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class ImpactedItem < Model
3
+
4
+ class Download < Model
5
+ attr_accessor :download_url, :valid_till, :mime_type
6
+ end
7
+
8
+ attr_accessor :count, :download, :items
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~ImpactedItem
14
+ end # ~ChargeBee
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class ImpactedSubscription < Model
3
+
4
+ class Download < Model
5
+ attr_accessor :download_url, :valid_till, :mime_type
6
+ end
7
+
8
+ attr_accessor :count, :download, :subscription_ids
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~ImpactedSubscription
14
+ end # ~ChargeBee
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class InAppSubscription < Model
3
+
4
+ attr_accessor :app_id, :subscription_id, :customer_id, :plan_id
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.process_receipt(id, params, env=nil, headers={})
10
+ Request.send('post', uri_path("in_app_subscriptions",id.to_s,"process_purchase_command"), params, env, headers)
11
+ end
12
+
13
+ def self.import_receipt(id, params, env=nil, headers={})
14
+ Request.send('post', uri_path("in_app_subscriptions",id.to_s,"import_receipt"), params, env, headers)
15
+ end
16
+
17
+ end # ~InAppSubscription
18
+ end # ~ChargeBee
@@ -2,11 +2,11 @@ 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, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
6
  end
7
7
 
8
8
  class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
9
+ attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
10
10
  end
11
11
 
12
12
  class LineItemDiscount < Model
@@ -54,7 +54,7 @@ module ChargeBee
54
54
  end
55
55
 
56
56
  class ShippingAddress < Model
57
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
57
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
58
58
  end
59
59
 
60
60
  class BillingAddress < Model
@@ -74,7 +74,7 @@ module ChargeBee
74
74
  :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes, :line_item_tiers, :linked_payments,
75
75
  :dunning_attempts, :applied_credits, :adjustment_credit_notes, :issued_credit_notes, :linked_orders,
76
76
  :notes, :shipping_address, :billing_address, :einvoice, :payment_owner, :void_reason_code, :deleted,
77
- :vat_number_prefix, :channel
77
+ :vat_number_prefix, :channel, :business_entity_id
78
78
 
79
79
  # OPERATIONS
80
80
  #-----------
@@ -2,11 +2,11 @@ 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, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
6
  end
7
7
 
8
8
  class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
9
+ attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
10
10
  end
11
11
 
12
12
  class Tax < Model
@@ -1,11 +1,7 @@
1
1
  module ChargeBee
2
2
  class ItemEntitlement < Model
3
3
 
4
- class EmbeddedResource < Model
5
- attr_accessor
6
- end
7
-
8
- attr_accessor :id, :item_id, :item_type, :feature_id, :feature_name, :value, :name, :embedded
4
+ attr_accessor :id, :item_id, :item_type, :feature_id, :feature_name, :value, :name
9
5
 
10
6
  # OPERATIONS
11
7
  #-----------
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  class ShippingAddress < Model
9
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
9
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
10
10
  end
11
11
 
12
12
  class BillingAddress < Model
@@ -7,7 +7,7 @@ module ChargeBee
7
7
 
8
8
  attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
9
9
  :payment_method_type, :success_url, :failure_url, :created_at, :modified_at, :resource_version,
10
- :updated_at, :customer_id, :gateway, :active_payment_attempt
10
+ :updated_at, :customer_id, :gateway, :active_payment_attempt, :business_entity_id
11
11
 
12
12
  # OPERATIONS
13
13
  #-----------
@@ -27,7 +27,7 @@ module ChargeBee
27
27
 
28
28
  attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
29
29
  :status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
30
- :amazon_payment, :upi, :paypal, :mandates, :deleted
30
+ :amazon_payment, :upi, :paypal, :mandates, :deleted, :business_entity_id
31
31
 
32
32
  # OPERATIONS
33
33
  #-----------
@@ -34,7 +34,7 @@ module ChargeBee
34
34
  Request.send('post', uri_path("plans"), params, env, headers)
35
35
  end
36
36
 
37
- def self.update(id, params={}, env=nil, headers={})
37
+ def self.update(id, params, env=nil, headers={})
38
38
  Request.send('post', uri_path("plans",id.to_s), params, env, headers)
39
39
  end
40
40
 
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class Purchase < Model
3
+
4
+ attr_accessor :id, :customer_id, :created_at, :modified_at, :subscription_ids, :invoice_ids
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.create(params, env=nil, headers={})
10
+ Request.send('post', uri_path("purchases"), params, env, headers)
11
+ end
12
+
13
+ def self.estimate(params, env=nil, headers={})
14
+ Request.send('post', uri_path("purchases","estimate"), params, env, headers)
15
+ end
16
+
17
+ end # ~Purchase
18
+ end # ~ChargeBee
@@ -2,11 +2,11 @@ module ChargeBee
2
2
  class Quote < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
6
  end
7
7
 
8
8
  class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
9
+ attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
10
10
  end
11
11
 
12
12
  class LineItemDiscount < Model
@@ -26,7 +26,7 @@ module ChargeBee
26
26
  end
27
27
 
28
28
  class ShippingAddress < Model
29
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
29
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
30
30
  end
31
31
 
32
32
  class BillingAddress < Model
@@ -38,7 +38,7 @@ module ChargeBee
38
38
  :sub_total, :total, :credits_applied, :amount_paid, :amount_due, :version, :resource_version,
39
39
  :updated_at, :vat_number_prefix, :line_items, :discounts, :line_item_discounts, :taxes, :line_item_taxes,
40
40
  :line_item_tiers, :currency_code, :notes, :shipping_address, :billing_address, :contract_term_start,
41
- :contract_term_end, :contract_term_termination_fee
41
+ :contract_term_end, :contract_term_termination_fee, :business_entity_id
42
42
 
43
43
  # OPERATIONS
44
44
  #-----------
@@ -2,11 +2,11 @@ module ChargeBee
2
2
  class QuoteLineGroup < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
5
+ attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :amount, :pricing_model, :is_taxed, :tax_amount, :tax_rate, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :discount_amount, :item_level_discount_amount, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id
6
6
  end
7
7
 
8
8
  class Discount < Model
9
- attr_accessor :amount, :description, :entity_type, :entity_id
9
+ attr_accessor :amount, :description, :entity_type, :entity_id, :coupon_set_code
10
10
  end
11
11
 
12
12
  class LineItemDiscount < Model
@@ -14,7 +14,7 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  class ItemTier < Model
17
- attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
17
+ attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
18
18
  end
19
19
 
20
20
  class Coupon < Model
@@ -18,7 +18,7 @@ module ChargeBee
18
18
  end
19
19
 
20
20
  class ItemTier < Model
21
- attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
21
+ attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
22
22
  end
23
23
 
24
24
  class QuotedContractTerm < Model
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  class ItemTier < Model
9
- attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
9
+ attr_accessor :item_price_id, :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal, :index
10
10
  end
11
11
 
12
12
  class ChargedItem < Model
@@ -30,7 +30,7 @@ module ChargeBee
30
30
  end
31
31
 
32
32
  class ShippingAddress < Model
33
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
33
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
34
34
  end
35
35
 
36
36
  class ReferralInfo < Model
@@ -41,6 +41,10 @@ module ChargeBee
41
41
  attr_accessor :id, :status, :contract_start, :contract_end, :billing_cycle, :action_at_term_end, :total_contract_value, :cancellation_cutoff_period, :created_at, :subscription_id, :remaining_billing_cycles
42
42
  end
43
43
 
44
+ class Discount < Model
45
+ attr_accessor :id, :invoice_name, :percentage, :amount, :currency_code, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at, :apply_till, :applied_count, :coupon_id, :index
46
+ end
47
+
44
48
  attr_accessor :id, :currency_code, :plan_id, :plan_quantity, :plan_unit_price, :setup_fee, :billing_period,
45
49
  :billing_period_unit, :start_date, :trial_end, :remaining_billing_cycles, :po_number, :auto_collection,
46
50
  :plan_quantity_in_decimal, :plan_unit_price_in_decimal, :customer_id, :plan_amount, :plan_free_quantity,
@@ -53,7 +57,8 @@ module ChargeBee
53
57
  :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons,
54
58
  :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address, :referral_info,
55
59
  :invoice_notes, :meta_data, :metadata, :deleted, :changes_scheduled_at, :contract_term, :cancel_reason_code,
56
- :free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices
60
+ :free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices, :discounts,
61
+ :business_entity_id
57
62
 
58
63
  # OPERATIONS
59
64
  #-----------
@@ -82,6 +87,10 @@ module ChargeBee
82
87
  Request.send('get', uri_path("subscriptions",id.to_s,"contract_terms"), params, env, headers)
83
88
  end
84
89
 
90
+ def self.list_discounts(id, params={}, env=nil, headers={})
91
+ Request.send('get', uri_path("subscriptions",id.to_s,"discounts"), params, env, headers)
92
+ end
93
+
85
94
  def self.retrieve(id, env=nil, headers={})
86
95
  Request.send('get', uri_path("subscriptions",id.to_s), {}, env, headers)
87
96
  end
@@ -2,15 +2,11 @@ module ChargeBee
2
2
  class SubscriptionEntitlement < Model
3
3
 
4
4
  class Component < Model
5
- attr_accessor
6
- end
7
-
8
- class EmbeddedResource < Model
9
- attr_accessor
5
+ attr_accessor :entitlement_overrides
10
6
  end
11
7
 
12
8
  attr_accessor :id, :subscription_id, :feature_id, :feature_name, :feature_unit, :value, :name,
13
- :is_overridden, :is_enabled, :expires_at, :components, :embedded
9
+ :is_overridden, :is_enabled, :expires_at, :components
14
10
 
15
11
  # OPERATIONS
16
12
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class SubscriptionEstimate < Model
3
3
 
4
4
  class ShippingAddress < Model
5
- attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
5
+ attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status, :index
6
6
  end
7
7
 
8
8
  class ContractTerm < Model
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Token < Model
3
3
 
4
4
  attr_accessor :id, :gateway, :gateway_account_id, :payment_method_type, :status, :id_at_vault,
5
- :vault, :ip_address, :created_at, :expired_at
5
+ :vault, :ip_address, :resource_version, :updated_at, :created_at, :expired_at
6
6
 
7
7
  # OPERATIONS
8
8
  #-----------
@@ -23,7 +23,7 @@ module ChargeBee
23
23
  :error_code, :error_text, :voided_at, :resource_version, :updated_at, :fraud_reason, :amount_unused,
24
24
  :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
25
25
  :amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
26
- :linked_payments, :deleted, :iin, :last4, :merchant_reference_id
26
+ :linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details
27
27
 
28
28
  # OPERATIONS
29
29
  #-----------
@@ -7,8 +7,8 @@ module ChargeBee
7
7
 
8
8
  attr_accessor :id, :customer_id, :subscription_id, :date_from, :date_to, :unit_amount, :pricing_model,
9
9
  :quantity, :amount, :currency_code, :discount_amount, :description, :entity_type, :entity_id,
10
- :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :tiers,
11
- :deleted
10
+ :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :updated_at,
11
+ :tiers, :deleted
12
12
 
13
13
  # OPERATIONS
14
14
  #-----------
@@ -7,7 +7,7 @@ module ChargeBee
7
7
 
8
8
  def subscription()
9
9
  subscription = get(:subscription, Subscription,
10
- {:subscription_items => Subscription::SubscriptionItem, :item_tiers => Subscription::ItemTier, :charged_items => Subscription::ChargedItem, :addons => Subscription::Addon, :event_based_addons => Subscription::EventBasedAddon, :charged_event_based_addons => Subscription::ChargedEventBasedAddon, :coupons => Subscription::Coupon, :shipping_address => Subscription::ShippingAddress, :referral_info => Subscription::ReferralInfo, :contract_term => Subscription::ContractTerm});
10
+ {:subscription_items => Subscription::SubscriptionItem, :item_tiers => Subscription::ItemTier, :charged_items => Subscription::ChargedItem, :addons => Subscription::Addon, :event_based_addons => Subscription::EventBasedAddon, :charged_event_based_addons => Subscription::ChargedEventBasedAddon, :coupons => Subscription::Coupon, :shipping_address => Subscription::ShippingAddress, :referral_info => Subscription::ReferralInfo, :contract_term => Subscription::ContractTerm, :discounts => Subscription::Discount});
11
11
  return subscription;
12
12
  end
13
13
 
@@ -16,6 +16,11 @@ module ChargeBee
16
16
  return contract_term;
17
17
  end
18
18
 
19
+ def discount()
20
+ discount = get(:discount, Discount);
21
+ return discount;
22
+ end
23
+
19
24
  def advance_invoice_schedule()
20
25
  advance_invoice_schedule = get(:advance_invoice_schedule, AdvanceInvoiceSchedule,
21
26
  {:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
@@ -117,13 +122,15 @@ module ChargeBee
117
122
 
118
123
  def estimate()
119
124
  estimate = get(:estimate, Estimate, {},
120
- {:subscription_estimate => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :invoice_estimates => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate, :unbilled_charge_estimates => UnbilledCharge});
125
+ {:subscription_estimate => SubscriptionEstimate, :subscription_estimates => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :invoice_estimates => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate, :unbilled_charge_estimates => UnbilledCharge});
121
126
  estimate.init_dependant(@response[:estimate], :subscription_estimate,
122
127
  {:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
123
128
  estimate.init_dependant(@response[:estimate], :invoice_estimate,
124
129
  {: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});
125
130
  estimate.init_dependant(@response[:estimate], :next_invoice_estimate,
126
131
  {: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});
132
+ estimate.init_dependant_list(@response[:estimate], :subscription_estimates,
133
+ {:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
127
134
  estimate.init_dependant_list(@response[:estimate], :invoice_estimates,
128
135
  {: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});
129
136
  estimate.init_dependant_list(@response[:estimate], :credit_note_estimates,
@@ -278,24 +285,44 @@ module ChargeBee
278
285
  return feature;
279
286
  end
280
287
 
288
+ def impacted_subscription()
289
+ impacted_subscription = get(:impacted_subscription, ImpactedSubscription,
290
+ {:download => ImpactedSubscription::Download});
291
+ return impacted_subscription;
292
+ end
293
+
294
+ def impacted_item()
295
+ impacted_item = get(:impacted_item, ImpactedItem,
296
+ {:download => ImpactedItem::Download});
297
+ return impacted_item;
298
+ end
299
+
281
300
  def subscription_entitlement()
282
301
  subscription_entitlement = get(:subscription_entitlement, SubscriptionEntitlement,
283
- {:component => SubscriptionEntitlement::Component, :embedded_resource => SubscriptionEntitlement::EmbeddedResource});
302
+ {:component => SubscriptionEntitlement::Component});
284
303
  return subscription_entitlement;
285
304
  end
286
305
 
287
306
  def item_entitlement()
288
- item_entitlement = get(:item_entitlement, ItemEntitlement,
289
- {:embedded_resource => ItemEntitlement::EmbeddedResource});
307
+ item_entitlement = get(:item_entitlement, ItemEntitlement);
290
308
  return item_entitlement;
291
309
  end
292
310
 
311
+ def in_app_subscription()
312
+ in_app_subscription = get(:in_app_subscription, InAppSubscription);
313
+ return in_app_subscription;
314
+ end
315
+
293
316
  def entitlement_override()
294
- entitlement_override = get(:entitlement_override, EntitlementOverride,
295
- {:embedded_resource => EntitlementOverride::EmbeddedResource});
317
+ entitlement_override = get(:entitlement_override, EntitlementOverride);
296
318
  return entitlement_override;
297
319
  end
298
320
 
321
+ def purchase()
322
+ purchase = get(:purchase, Purchase);
323
+ return purchase;
324
+ end
325
+
299
326
 
300
327
  def unbilled_charges()
301
328
  unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
@@ -339,6 +366,12 @@ module ChargeBee
339
366
  return differential_prices;
340
367
  end
341
368
 
369
+ def in_app_subscriptions()
370
+ in_app_subscriptions = get_list(:in_app_subscriptions, InAppSubscription,
371
+ {});
372
+ return in_app_subscriptions;
373
+ end
374
+
342
375
 
343
376
  def to_s(*args)
344
377
  JSON.pretty_generate(@response)
data/lib/chargebee.rb CHANGED
@@ -53,7 +53,7 @@ require File.dirname(__FILE__) + '/chargebee/models/usage.rb'
53
53
 
54
54
  module ChargeBee
55
55
 
56
- VERSION = '2.16.0'
56
+ VERSION = '2.20.0'
57
57
 
58
58
  @@default_env = nil
59
59
  @@verify_ca_certs = true
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.16.0
4
+ version: 2.20.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: 2022-05-23 00:00:00.000000000 Z
12
+ date: 2022-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -104,6 +104,8 @@ extra_rdoc_files:
104
104
  - LICENSE
105
105
  files:
106
106
  - CHANGELOG.md
107
+ - Gemfile
108
+ - Gemfile.lock
107
109
  - LICENSE
108
110
  - README.rdoc
109
111
  - Rakefile
@@ -127,6 +129,7 @@ files:
127
129
  - lib/chargebee/models/credit_note_estimate.rb
128
130
  - lib/chargebee/models/customer.rb
129
131
  - lib/chargebee/models/differential_price.rb
132
+ - lib/chargebee/models/discount.rb
130
133
  - lib/chargebee/models/download.rb
131
134
  - lib/chargebee/models/entitlement_override.rb
132
135
  - lib/chargebee/models/estimate.rb
@@ -136,6 +139,9 @@ files:
136
139
  - lib/chargebee/models/gift.rb
137
140
  - lib/chargebee/models/hierarchy.rb
138
141
  - lib/chargebee/models/hosted_page.rb
142
+ - lib/chargebee/models/impacted_item.rb
143
+ - lib/chargebee/models/impacted_subscription.rb
144
+ - lib/chargebee/models/in_app_subscription.rb
139
145
  - lib/chargebee/models/invoice.rb
140
146
  - lib/chargebee/models/invoice_estimate.rb
141
147
  - lib/chargebee/models/item.rb
@@ -149,6 +155,7 @@ files:
149
155
  - lib/chargebee/models/plan.rb
150
156
  - lib/chargebee/models/portal_session.rb
151
157
  - lib/chargebee/models/promotional_credit.rb
158
+ - lib/chargebee/models/purchase.rb
152
159
  - lib/chargebee/models/quote.rb
153
160
  - lib/chargebee/models/quote_line_group.rb
154
161
  - lib/chargebee/models/quoted_charge.rb