chargebee 2.44.1 → 2.46.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3621b2495d5b64a5507c2cdd14d16971bf3e763b
4
- data.tar.gz: 49fc6659643194faadec24341e5796ab8c1d7215
3
+ metadata.gz: 23c0cce80dc54db94f1a7b6138751ab2653d66fd
4
+ data.tar.gz: 249627e284ea46d5666697acacb34c060326b7cd
5
5
  SHA512:
6
- metadata.gz: 578e9cdb85549a4078c8260822c377c7f728db26d3ad207c639a6e7082209b4197a9d569cbb8cca0bf30295883a61a71578ee8a3e2d77252344585e852329f20
7
- data.tar.gz: 384b676a1a73e51ae91de6a6ba9378088586ba3b642470080ee6025a6129106cc3d44b4f4b35f841c928ae9e77cb0b9516b7da6e8dd805ecfd0ddd56557f42f2
6
+ metadata.gz: c89c552e4a27ac177cd59ef88ff197c2059f9876971922611350d787d87eddea51b12634a3a356e08b661cea9d0658d9f6a517f67d092a37857cb351253f8595
7
+ data.tar.gz: 1aacbfa93badb7b99f7a6b0b18dc2dd3109a999aeaa0efc8a697069f7a80284acbb0087a318f2425e33ee5343b79f83f2a2cdca3f8ba22b37d6cdc6c542f4f6f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,86 @@
1
+ ### v2.46.0 (2024-11-14)
2
+ * * *
3
+
4
+ #### New Resource:
5
+ * OmnichannelTransaction has been added.
6
+ * OmnichannelSubscription has been added.
7
+ * RecordedPurchase has been added.
8
+
9
+
10
+ #### New Attributes:
11
+ * business_entity_id has been added to AttachedItem.
12
+ * business_entity_id has been added to DifferentialPrice.
13
+ * business_entity_id has been added to Items.
14
+ * business_entity_id has been added to ItemFamily.
15
+ * business_entity_id has been added to ItemPrice.
16
+ * business_entity_id has been added to PriceVariant.
17
+ * valid_from has been added to coupon.
18
+
19
+ #### New Input Parameters:
20
+ * business_entity_id has been added to AttachedItem#CreateRequest.
21
+ * preferred_scheme has been added to Card#UpdateCardForCustomerRequest.
22
+ * valid_from has been added to Coupon#CreateForItem & Coupon#UpdateForItemsRequest.
23
+ * preferred_scheme has been added to Customer#CreateRequest & Customer#CollectPaymentRequest.
24
+ * business_entity_id has been added to DifferentialPrice#CreateRequest.
25
+ * preferred_scheme has been added to Invoice#CreateRequest & Invoice#CreateForChargeItemsAndChargesRequest.
26
+ * business_entity_id has been added to Items#CreateRequest.
27
+ * business_entity_id & include_site_level_resources have been added to Items#ListItemParams.
28
+ * business_entity_id has been added to ItemFamily#CreateRequest.
29
+ * business_entity_id & include_site_level_resources have been added to ItemFamily#ListItemFamilyParams.
30
+ * business_entity_id has been added to ItemPrice#CreateRequest.
31
+ * business_entity_id & include_site_level_resources have been added to ItemPrice#ListItemPriceParams.
32
+ * business_entity_id & include_site_level_resources have been added to PriceVariant#ListItemFamilyParams.
33
+ * business_entity_id has been added to PriceVariant#CreateRequest.
34
+ * business_entity_id & include_site_level_resources have been added to PriceVariant#ListPriceVariantParams.
35
+ * preferred_scheme has been added to Subscription#CreateRequest, Subscription#UpdateRequest.
36
+ * preferred_scheme Subscription#UpdateForItemsRequest, & Subscription#ImportSubscriptionRequest.
37
+ * business_entity_id & include_site_level_resources have been added to Export#ItemFamiliesRequest & Export#ItemsRequest.
38
+ * business_entity_id & include_site_level_resources have been added to Export#ItemPricesRequest Export#PriceVariantsRequest
39
+ * name & flexible_schedules[period] have been added to PaymentScheduleScheme#CreateRequest.
40
+
41
+ #### New Enum Values:
42
+ * FUTURE has been added to Coupon#StatusEnum.
43
+ * EXISTING_CUSTOMER & NEW_CUSTOMER have been added to Coupon#TypeEnum.
44
+ * LATE_FAILURE has added to Transation#LinkedPaymentEnum & Transation#StatusEnum.
45
+ * OMNICHANNEL_SUBSCRIPTION, has been added to EntityTypeEnum.
46
+ * OMNICHANNEL_SUBSCRIPTION_ITEM, has been added to EntityTypeEnum.
47
+ * OMNICHANNEL_TRANSACTION, has been added to EntityTypeEnum.
48
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_RENEWED, has been added to EventTypeEnum.
49
+ * OMNICHANNEL_SUBSCRIPTION_CREATED, has been added to EventTypeEnum.
50
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADE_SCHEDULED, has been added to EventTypeEnum.
51
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_DOWNGRADE_REMOVED, has been added to EventTypeEnum.
52
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_DOWNGRADED, has been added to EventTypeEnum.
53
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_EXPIRED, has been added to EventTypeEnum.
54
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_CANCELLATION_SCHEDULED, has been added to EventTypeEnum.
55
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_SCHEDULED_CANCELLATION_REMOVED, has been added to EventTypeEnum.
56
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_RESUBSCRIBED, has been added to EventTypeEnum.
57
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_UPGRADED, has been added to EventTypeEnum.
58
+ * OMNICHANNEL_SUBSCRIPTION_ITEM_CANCELLED, has been added to EventTypeEnum.
59
+
60
+
61
+ ### v2.45.0 (2024-10-17)
62
+ * * *
63
+
64
+ #### New Resource:
65
+ * PaymentScheduleEstimate has been added.
66
+
67
+ ### New Attributes:
68
+ * payment_schedule_estimates has been added to Estimate.
69
+ * usage_accumulation_reset_frequency has been added to ItemPrice.
70
+ * name has been added to PaymentScheduleScheme.
71
+ * usage_accumulation_reset_frequency has been added to QuotedSubscription#SubscriptionItem.
72
+ * usage_accumulation_reset_frequency has been added to Subscription#SubscriptionItem.
73
+
74
+ ### New Endpoints:
75
+ * Estimate#PaymentSchedule has been added.
76
+
77
+ ### New Input Params:
78
+ * usage_accumulation_reset_frequency has been added to ItemPrice#CreateParams.
79
+ * usage_accumulation_reset_frequency has been added to ItemPrice#UpdateParams.
80
+ * discounts has been added to PricingPageSession#CreateForNewSubscriptionParams.
81
+ * discounts has been added to PricingPageSession#CreateForExistingSubscriptionParams.
82
+ * invoice_immediately has been added to Quote#ConvertParams.
83
+
1
84
  ### v2.44.1 (2024-10-03)
2
85
  * * *
3
86
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.44.1)
4
+ chargebee (2.46.0)
5
5
  cgi (>= 0.1.0, < 1.0.0)
6
6
  json_pure (~> 2.1)
7
7
  rest-client (>= 1.8, <= 2.0.2)
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.44.1'
8
- s.date = '2024-10-03'
7
+ s.version = '2.46.0'
8
+ s.date = '2024-11-14'
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
  s.metadata = {
@@ -88,10 +88,13 @@ Gem::Specification.new do |s|
88
88
  lib/chargebee/models/metadata.rb
89
89
  lib/chargebee/models/model.rb
90
90
  lib/chargebee/models/non_subscription.rb
91
+ lib/chargebee/models/omnichannel_subscription.rb
92
+ lib/chargebee/models/omnichannel_transaction.rb
91
93
  lib/chargebee/models/order.rb
92
94
  lib/chargebee/models/payment_intent.rb
93
95
  lib/chargebee/models/payment_reference_number.rb
94
96
  lib/chargebee/models/payment_schedule.rb
97
+ lib/chargebee/models/payment_schedule_estimate.rb
95
98
  lib/chargebee/models/payment_schedule_scheme.rb
96
99
  lib/chargebee/models/payment_source.rb
97
100
  lib/chargebee/models/payment_voucher.rb
@@ -106,6 +109,7 @@ Gem::Specification.new do |s|
106
109
  lib/chargebee/models/quoted_charge.rb
107
110
  lib/chargebee/models/quoted_subscription.rb
108
111
  lib/chargebee/models/ramp.rb
112
+ lib/chargebee/models/recorded_purchase.rb
109
113
  lib/chargebee/models/resource_migration.rb
110
114
  lib/chargebee/models/site_migration_detail.rb
111
115
  lib/chargebee/models/subscription.rb
@@ -3,7 +3,7 @@ module ChargeBee
3
3
 
4
4
  attr_accessor :id, :parent_item_id, :item_id, :type, :status, :quantity, :quantity_in_decimal,
5
5
  :billing_cycles, :charge_on_event, :charge_once, :created_at, :resource_version, :updated_at,
6
- :channel
6
+ :channel, :business_entity_id
7
7
 
8
8
  # OPERATIONS
9
9
  #-----------
@@ -14,10 +14,11 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  attr_accessor :id, :name, :invoice_name, :discount_type, :discount_percentage, :discount_amount,
17
- :discount_quantity, :currency_code, :duration_type, :duration_month, :valid_till, :max_redemptions,
18
- :status, :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint, :created_at, :archived_at,
19
- :resource_version, :updated_at, :included_in_mrr, :period, :period_unit, :plan_ids, :addon_ids,
20
- :item_constraints, :item_constraint_criteria, :redemptions, :invoice_notes, :meta_data, :coupon_constraints
17
+ :discount_quantity, :currency_code, :duration_type, :duration_month, :valid_from, :valid_till,
18
+ :max_redemptions, :status, :apply_discount_on, :apply_on, :plan_constraint, :addon_constraint,
19
+ :created_at, :archived_at, :resource_version, :updated_at, :included_in_mrr, :period, :period_unit,
20
+ :plan_ids, :addon_ids, :item_constraints, :item_constraint_criteria, :redemptions, :invoice_notes,
21
+ :meta_data, :coupon_constraints
21
22
 
22
23
  # OPERATIONS
23
24
  #-----------
@@ -10,7 +10,7 @@ module ChargeBee
10
10
  end
11
11
 
12
12
  attr_accessor :id, :item_price_id, :parent_item_id, :price, :price_in_decimal, :status, :resource_version,
13
- :updated_at, :created_at, :modified_at, :tiers, :currency_code, :parent_periods
13
+ :updated_at, :created_at, :modified_at, :tiers, :currency_code, :parent_periods, :business_entity_id
14
14
 
15
15
  # OPERATIONS
16
16
  #-----------
@@ -2,7 +2,8 @@ module ChargeBee
2
2
  class Estimate < Model
3
3
 
4
4
  attr_accessor :created_at, :subscription_estimate, :subscription_estimates, :invoice_estimate,
5
- :invoice_estimates, :next_invoice_estimate, :credit_note_estimates, :unbilled_charge_estimates
5
+ :invoice_estimates, :payment_schedule_estimates, :next_invoice_estimate, :credit_note_estimates,
6
+ :unbilled_charge_estimates
6
7
 
7
8
  # OPERATIONS
8
9
  #-----------
@@ -83,5 +84,9 @@ module ChargeBee
83
84
  Request.send('post', uri_path("estimates","create_invoice_for_items"), params, env, headers)
84
85
  end
85
86
 
87
+ def self.payment_schedules(params, env=nil, headers={})
88
+ Request.send('post', uri_path("estimates","payment_schedules"), params, env, headers)
89
+ end
90
+
86
91
  end # ~Estimate
87
92
  end # ~ChargeBee
@@ -16,7 +16,8 @@ module ChargeBee
16
16
  attr_accessor :id, :name, :external_name, :description, :status, :resource_version, :updated_at,
17
17
  :item_family_id, :type, :is_shippable, :is_giftable, :redirect_url, :enabled_for_checkout, :enabled_in_portal,
18
18
  :included_in_mrr, :item_applicability, :gift_claim_redirect_url, :unit, :metered, :usage_calculation,
19
- :archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration, :metadata
19
+ :archived_at, :channel, :applicable_items, :bundle_items, :bundle_configuration, :metadata,
20
+ :business_entity_id
20
21
 
21
22
  # OPERATIONS
22
23
  #-----------
@@ -1,7 +1,7 @@
1
1
  module ChargeBee
2
2
  class ItemFamily < Model
3
3
 
4
- attr_accessor :id, :name, :description, :status, :resource_version, :updated_at, :channel
4
+ attr_accessor :id, :name, :description, :status, :resource_version, :updated_at, :channel, :business_entity_id
5
5
 
6
6
  # OPERATIONS
7
7
  #-----------
@@ -21,9 +21,9 @@ module ChargeBee
21
21
  :price_variant_id, :proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code,
22
22
  :period_unit, :trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
23
23
  :billing_cycles, :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at,
24
- :created_at, :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :tax_providers_fields,
25
- :accounting_detail, :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices,
26
- :show_description_in_quotes
24
+ :created_at, :usage_accumulation_reset_frequency, :archived_at, :invoice_notes, :tiers, :is_taxable,
25
+ :tax_detail, :tax_providers_fields, :accounting_detail, :metadata, :item_type, :archivable,
26
+ :parent_item_id, :show_description_in_invoices, :show_description_in_quotes, :business_entity_id
27
27
 
28
28
  # OPERATIONS
29
29
  #-----------
@@ -0,0 +1,26 @@
1
+ module ChargeBee
2
+ class OmnichannelSubscription < Model
3
+
4
+ class OmnichannelSubscriptionItem < Model
5
+ attr_accessor :id, :id_at_source, :status, :current_term_start, :current_term_end, :expired_at, :expiration_reason, :cancelled_at, :cancellation_reason
6
+ end
7
+
8
+ attr_accessor :id, :id_at_source, :app_id, :source, :customer_id, :created_at, :omnichannel_subscription_items
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ def self.retrieve(id, env=nil, headers={})
14
+ Request.send('get', uri_path("omnichannel_subscriptions",id.to_s), {}, env, headers)
15
+ end
16
+
17
+ def self.list(params={}, env=nil, headers={})
18
+ Request.send_list_request('get', uri_path("omnichannel_subscriptions"), params, env, headers)
19
+ end
20
+
21
+ def self.omnichannel_transactions_for_omnichannel_subscription(id, params={}, env=nil, headers={})
22
+ Request.send('get', uri_path("omnichannel_subscriptions",id.to_s,"omnichannel_transactions"), params, env, headers)
23
+ end
24
+
25
+ end # ~OmnichannelSubscription
26
+ end # ~ChargeBee
@@ -0,0 +1,11 @@
1
+ module ChargeBee
2
+ class OmnichannelTransaction < Model
3
+
4
+ attr_accessor :id, :id_at_source, :app_id, :price_currency, :price_units, :price_nanos, :type,
5
+ :transacted_at, :created_at
6
+
7
+ # OPERATIONS
8
+ #-----------
9
+
10
+ end # ~OmnichannelTransaction
11
+ end # ~ChargeBee
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class PaymentScheduleEstimate < Model
3
+
4
+ class ScheduleEntry < Model
5
+ attr_accessor :id, :date, :amount, :status
6
+ end
7
+
8
+ attr_accessor :id, :scheme_id, :entity_type, :entity_id, :amount, :currency_code, :schedule_entries
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~PaymentScheduleEstimate
14
+ end # ~ChargeBee
@@ -5,8 +5,8 @@ module ChargeBee
5
5
  attr_accessor :period, :amount_percentage
6
6
  end
7
7
 
8
- attr_accessor :id, :description, :number_of_schedules, :period_unit, :period, :created_at, :resource_version,
9
- :updated_at, :preferred_schedules
8
+ attr_accessor :id, :name, :description, :number_of_schedules, :period_unit, :period, :created_at,
9
+ :resource_version, :updated_at, :preferred_schedules
10
10
 
11
11
  # OPERATIONS
12
12
  #-----------
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  attr_accessor :id, :name, :external_name, :variant_group, :description, :status, :created_at,
9
- :resource_version, :updated_at, :archived_at, :attributes
9
+ :resource_version, :updated_at, :archived_at, :attributes, :business_entity_id
10
10
 
11
11
  # OPERATIONS
12
12
  #-----------
@@ -14,7 +14,7 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  class SubscriptionItem < Model
17
- attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type
17
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency
18
18
  end
19
19
 
20
20
  class ItemTier < Model
@@ -0,0 +1,27 @@
1
+ module ChargeBee
2
+ class RecordedPurchase < Model
3
+
4
+ class LinkedOmnichannelSubscription < Model
5
+ attr_accessor :omnichannel_subscription_id
6
+ end
7
+
8
+ class ErrorDetail < Model
9
+ attr_accessor :error_message
10
+ end
11
+
12
+ attr_accessor :id, :customer_id, :app_id, :source, :status, :omnichannel_transaction_id, :created_at,
13
+ :linked_omnichannel_subscriptions, :error_detail
14
+
15
+ # OPERATIONS
16
+ #-----------
17
+
18
+ def self.create(params, env=nil, headers={})
19
+ Request.send('post', uri_path("recorded_purchases"), params, env, headers)
20
+ end
21
+
22
+ def self.retrieve(id, env=nil, headers={})
23
+ Request.send('get', uri_path("recorded_purchases",id.to_s), {}, env, headers)
24
+ end
25
+
26
+ end # ~RecordedPurchase
27
+ end # ~ChargeBee
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class Subscription < Model
3
3
 
4
4
  class SubscriptionItem < Model
5
- attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type
5
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :metered_quantity, :last_calculated_at, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :billing_period, :billing_period_unit, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type, :usage_accumulation_reset_frequency
6
6
  end
7
7
 
8
8
  class ItemTier < Model
@@ -154,7 +154,7 @@ module ChargeBee
154
154
 
155
155
  def estimate()
156
156
  estimate = get(:estimate, Estimate, {},
157
- {:subscription_estimate => SubscriptionEstimate, :subscription_estimates => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :invoice_estimates => InvoiceEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate, :unbilled_charge_estimates => UnbilledCharge});
157
+ {:subscription_estimate => SubscriptionEstimate, :subscription_estimates => SubscriptionEstimate, :invoice_estimate => InvoiceEstimate, :invoice_estimates => InvoiceEstimate, :payment_schedule_estimates => PaymentScheduleEstimate, :next_invoice_estimate => InvoiceEstimate, :credit_note_estimates => CreditNoteEstimate, :unbilled_charge_estimates => UnbilledCharge});
158
158
  estimate.init_dependant(@response[:estimate], :subscription_estimate,
159
159
  {:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
160
160
  estimate.init_dependant(@response[:estimate], :invoice_estimate,
@@ -165,6 +165,8 @@ module ChargeBee
165
165
  {:shipping_address => SubscriptionEstimate::ShippingAddress, :contract_term => SubscriptionEstimate::ContractTerm});
166
166
  estimate.init_dependant_list(@response[:estimate], :invoice_estimates,
167
167
  {: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});
168
+ estimate.init_dependant_list(@response[:estimate], :payment_schedule_estimates,
169
+ {:schedule_entries => PaymentScheduleEstimate::ScheduleEntry});
168
170
  estimate.init_dependant_list(@response[:estimate], :credit_note_estimates,
169
171
  {: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});
170
172
  estimate.init_dependant_list(@response[:estimate], :unbilled_charge_estimates,
@@ -430,6 +432,23 @@ module ChargeBee
430
432
  return pricing_page_session;
431
433
  end
432
434
 
435
+ def omnichannel_subscription()
436
+ omnichannel_subscription = get(:omnichannel_subscription, OmnichannelSubscription,
437
+ {:omnichannel_subscription_items => OmnichannelSubscription::OmnichannelSubscriptionItem});
438
+ return omnichannel_subscription;
439
+ end
440
+
441
+ def omnichannel_transaction()
442
+ omnichannel_transaction = get(:omnichannel_transaction, OmnichannelTransaction);
443
+ return omnichannel_transaction;
444
+ end
445
+
446
+ def recorded_purchase()
447
+ recorded_purchase = get(:recorded_purchase, RecordedPurchase,
448
+ {:linked_omnichannel_subscriptions => RecordedPurchase::LinkedOmnichannelSubscription, :error_detail => RecordedPurchase::ErrorDetail});
449
+ return recorded_purchase;
450
+ end
451
+
433
452
  def advance_invoice_schedules()
434
453
  advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
435
454
  {:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
data/lib/chargebee.rb CHANGED
@@ -77,10 +77,16 @@ require File.dirname(__FILE__) + '/chargebee/models/metadata'
77
77
  require File.dirname(__FILE__) + '/chargebee/models/customer_entitlement'
78
78
  require File.dirname(__FILE__) + '/chargebee/models/payment_schedule'
79
79
  require File.dirname(__FILE__) + '/chargebee/models/payment_schedule_scheme'
80
+ require File.dirname(__FILE__) + '/chargebee/models/payment_schedule_estimate'
81
+ require File.dirname(__FILE__) + '/chargebee/models/omnichannel_subscription'
82
+ require File.dirname(__FILE__) + '/chargebee/models/omnichannel_transaction'
83
+ require File.dirname(__FILE__) + '/chargebee/models/recorded_purchase'
84
+
85
+
80
86
 
81
87
  module ChargeBee
82
88
 
83
- VERSION = '2.44.1'
89
+ VERSION = '2.46.0'
84
90
 
85
91
  @@default_env = nil
86
92
  @@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.44.1
4
+ version: 2.46.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: 2024-10-03 00:00:00.000000000 Z
12
+ date: 2024-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -161,10 +161,13 @@ files:
161
161
  - lib/chargebee/models/metadata.rb
162
162
  - lib/chargebee/models/model.rb
163
163
  - lib/chargebee/models/non_subscription.rb
164
+ - lib/chargebee/models/omnichannel_subscription.rb
165
+ - lib/chargebee/models/omnichannel_transaction.rb
164
166
  - lib/chargebee/models/order.rb
165
167
  - lib/chargebee/models/payment_intent.rb
166
168
  - lib/chargebee/models/payment_reference_number.rb
167
169
  - lib/chargebee/models/payment_schedule.rb
170
+ - lib/chargebee/models/payment_schedule_estimate.rb
168
171
  - lib/chargebee/models/payment_schedule_scheme.rb
169
172
  - lib/chargebee/models/payment_source.rb
170
173
  - lib/chargebee/models/payment_voucher.rb
@@ -179,6 +182,7 @@ files:
179
182
  - lib/chargebee/models/quoted_charge.rb
180
183
  - lib/chargebee/models/quoted_subscription.rb
181
184
  - lib/chargebee/models/ramp.rb
185
+ - lib/chargebee/models/recorded_purchase.rb
182
186
  - lib/chargebee/models/resource_migration.rb
183
187
  - lib/chargebee/models/site_migration_detail.rb
184
188
  - lib/chargebee/models/subscription.rb