chargebee 2.34.0 → 2.36.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a9d00c2ae092a9ccc5996c25f956cfaaaac6c8a7
4
- data.tar.gz: 6af6f3abac87f00eb33d61b2937cab19e3539044
3
+ metadata.gz: 45abe2c92535d08351ca9b61d44a046a0984afc9
4
+ data.tar.gz: 972e2b5273e8847ec0a5a806612d1d7bcfdcbb6b
5
5
  SHA512:
6
- metadata.gz: 073fd0f9ade0b3be5c6c226043f49e131931b6ef425d922e07f4cf92364b218ff51d024fe39ca9f9b5f021962637cc6de652e2e8ce98f61d4c3b13cff3bf4edd
7
- data.tar.gz: d664d62985edda6843dfacb1ac5c1998ac8a2e6fd50ff0798710659962c3d75b256465a36157454fb5695947ae314a2dcc65699be6571e3de028b222eabd54fc
6
+ metadata.gz: bfb01b0e012e35c94fe157d8326e150da7a9ca7c1cf5a396f35a4bbcebe2b5d930582ebad490dfb2cd9a972145a347f329f70ae93f384787aa0f9a5aa9580813
7
+ data.tar.gz: 59da9114427471744bd80fa4f4b49fbe4664cd4a76d13bb050adc794f97014540b76e3a3f402c334c54069c0955ab44f0a79e585c13467eb3bc856d5f5f61707
data/CHANGELOG.md CHANGED
@@ -1,3 +1,35 @@
1
+ ### v2.36.0 (2024-02-29)
2
+ * * *
3
+
4
+ #### New attributes:
5
+ * usage_percentage has been added to QuoteLineGroup resource.
6
+ * usage_percentage has been added to Quote resource.
7
+ * usage_percentage has been added to CreditNoteEstimate resource.
8
+ * usage_percentage has been added to CreditNote resource.
9
+ * usage_percentage has been added to InvoiceEstimate resource.
10
+ * usage_percentage has been added to Invoice resource.
11
+ * error_detail of type GatewayErrorDetail has been added to PaymentIntent#PaymentAttempt subResource.
12
+ * origin_user has been added to Event resource.
13
+ * proration_type has been added to QuotedSubscription#SubscriptionItem and Subscription#SubscriptionItem subResources
14
+ * network_error_message, recommendation_message, processor_error_code, processor_error_message has been added to Transaction#GatewayErrorDetail subResource.
15
+
16
+ #### New Enum values:
17
+ * TAX_NOT_CONFIGURED_EXTERNAL_PROVIDER has been added to TaxExemptReasonEnum.
18
+
19
+ #### New Input parameters:
20
+ * billing_address has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
21
+ * transactions[amount] has been added to Invoice#ApplyPaymentsRequest.
22
+
23
+ ### v2.35.0 (2024-01-31)
24
+ * * *
25
+
26
+ #### New Enum values:
27
+ * item_price_entitlements_updated has been added to EventTypeEnum.
28
+ * item_price_entitlements_removed has been added to EventTypeEnum.
29
+
30
+ #### New Input parameters:
31
+ * layout has been added to HostedPage#AcceptQuoteRequest in HostedPage resource.
32
+
1
33
  ### v2.34.0 (2024-01-04)
2
34
  * * *
3
35
 
@@ -18,7 +50,6 @@
18
50
  * active_id has been added to customers.
19
51
  * active_id has been added to subscriptions.
20
52
  * reference_id has been made optional for payment_sources/create_using_permanent_token
21
- * payment_method_token, customer_profile_token, network_transaction_id, mandate_id, skip_retrieval, card, billing_address has been added to payment_sources.
22
53
  * custom_payment_method_id has been added to transactions.
23
54
  * custom_payment_method_name has been added to transactions.
24
55
  * error_detail has been added to transactions.
@@ -28,9 +59,6 @@
28
59
  * CMR_FALABELLA, TARJETA_NARANJA, NATIVA, CENCOSUD, CABAL, ARGENCARD, ELO, HIPERCARD, CARNET, RUPAY, MAESTRO has been added to Card#CardTypeEnum
29
60
  * Transferred has been added to Subscription#StatusEnum.
30
61
  * Transferred has been added to SubscriptionEstimate#StatusEnum.
31
- * proration_type has been added to Subscription#UpdateForItemsRequest.
32
- * proration_type has been added to ItemPrice.
33
- * payment_initiator has been added to Invoice.
34
62
  * AutomatedBankTransfer has been added to PaymentMethodEnum.
35
63
  * UsAutomatedBankTransfer, GbAutomatedBankTransfer, EuAutomatedBankTransfer, JpAutomatedBankTransfer, MxAutomatedBankTransfer has been added to VirtualBankAccount#SchemeEnum.
36
64
  * CustomerBusinessEntityChanged, SubscriptionBusinessEntityChanged has been added to EventTypeEnum.
@@ -42,16 +70,9 @@
42
70
  #### New Input parameters:
43
71
  * custom_payment_method_name has been added to Transactions#RecordRefundRequest.
44
72
  * proration_type has been added to Subscription#UpdateForItemsRequest.
73
+ * proration_type has been added to ItemPrice.
74
+ * payment_initiator has been added to Invoice.
45
75
  * payment_method_token, customer_profile_token, network_transaction_id, mandate_id, skip_retrieval, card, billing_address has been added to PaymentSource#CreateUsingPermanentTokenRequest.
46
- * date_to, date_from, prorated_taxable_amount has been added to QuoteLineGroup#LineItemTax.
47
- * date_to, date_from, prorated_taxable_amount has been added to Quote#LineItemTax.
48
- * date_to, date_from, prorated_taxable_amount has been added to CreditNoteEstimate#LineItemTax.
49
- * date_to, date_from, prorated_taxable_amount has been added to CreditNote#LineItemTax.
50
- * date_to, date_from, prorated_taxable_amount has been added to InvoiceEstimate#LineItemTax.
51
- * date_to, date_from, prorated_taxable_amount has been added to Order#LineItemTax.
52
- * date_to, date_from, prorated_taxable_amount has been added to Invoice#LineItemTax.
53
- * active_id has been added to Customer.
54
- * active_id has been added to Subscription.
55
76
  * subscription_items[proration_type] has been added to Estimate#UpdateSubscriptionForItemsRequest.
56
77
  * transaction[custom_payment_method_id] has been added to Customer#RecordExcessPaymentRequest.
57
78
  * transaction[custom_payment_method_id] has been added to CreditNote#RecordRefundRequest.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.34.0)
4
+ chargebee (2.36.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.34.0'
8
- s.date = '2024-01-04'
7
+ s.version = '2.36.0'
8
+ s.date = '2024-02-29'
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 = {
@@ -66,6 +66,7 @@ Gem::Specification.new do |s|
66
66
  lib/chargebee/models/event.rb
67
67
  lib/chargebee/models/export.rb
68
68
  lib/chargebee/models/feature.rb
69
+ lib/chargebee/models/gateway_error_detail.rb
69
70
  lib/chargebee/models/gift.rb
70
71
  lib/chargebee/models/hierarchy.rb
71
72
  lib/chargebee/models/hosted_page.rb
@@ -79,7 +80,6 @@ Gem::Specification.new do |s|
79
80
  lib/chargebee/models/item_family.rb
80
81
  lib/chargebee/models/item_price.rb
81
82
  lib/chargebee/models/model.rb
82
- lib/chargebee/models/non_subscription.rb
83
83
  lib/chargebee/models/order.rb
84
84
  lib/chargebee/models/payment_intent.rb
85
85
  lib/chargebee/models/payment_reference_number.rb
@@ -6,7 +6,7 @@ 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, :reference_line_item_id, :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, :usage_percentage, :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
@@ -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, :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
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, :usage_percentage, :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
@@ -6,7 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  attr_accessor :id, :occurred_at, :source, :user, :webhook_status, :webhook_failure_reason, :webhooks,
9
- :event_type, :api_version
9
+ :event_type, :api_version, :origin_user
10
10
 
11
11
  class Content < Result
12
12
  end
@@ -6,6 +6,7 @@ module ChargeBee
6
6
  end
7
7
 
8
8
  attr_accessor :id, :operation_type, :mime_type, :status, :created_at, :download
9
+
9
10
  def wait_for_export_completion(env = nil, headers={})
10
11
  env = env || ChargeBee.default_env
11
12
  sleeptime = env.export_sleeptime
@@ -0,0 +1,12 @@
1
+ module ChargeBee
2
+ class GatewayErrorDetail < Model
3
+
4
+ attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message,
5
+ :network_error_code, :network_error_message, :error_field, :recommendation_code, :recommendation_message,
6
+ :processor_error_code, :processor_error_message
7
+
8
+ # OPERATIONS
9
+ #-----------
10
+
11
+ end # ~GatewayErrorDetail
12
+ end # ~ChargeBee
@@ -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, :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
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, :usage_percentage, :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
@@ -18,7 +18,7 @@ module ChargeBee
18
18
  end
19
19
 
20
20
  class LineItemTax < Model
21
- attr_accessor :line_item_id, :tax_name, :tax_rate, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code, :tax_amount_in_local_currency, :local_currency_code
21
+ attr_accessor :line_item_id, :tax_name, :tax_rate, :date_to, :date_from, :prorated_taxable_amount, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code, :tax_amount_in_local_currency, :local_currency_code
22
22
  end
23
23
 
24
24
  class LineItemTier < Model
@@ -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, :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
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, :usage_percentage, :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
@@ -14,7 +14,7 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  class LineItemTax < Model
17
- attr_accessor :line_item_id, :tax_name, :tax_rate, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code, :tax_amount_in_local_currency, :local_currency_code
17
+ attr_accessor :line_item_id, :tax_name, :tax_rate, :date_to, :date_from, :prorated_taxable_amount, :is_partial_tax_applied, :is_non_compliance_tax, :taxable_amount, :tax_amount, :tax_juris_type, :tax_juris_name, :tax_juris_code, :tax_amount_in_local_currency, :local_currency_code
18
18
  end
19
19
 
20
20
  class LineItemTier < Model
@@ -14,11 +14,11 @@ module ChargeBee
14
14
  end
15
15
 
16
16
  attr_accessor :id, :name, :item_family_id, :product_id, :item_id, :description, :status, :external_name,
17
- :pricing_model, :price, :price_in_decimal, :period, :currency_code, :period_unit, :trial_period,
18
- :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit, :billing_cycles,
19
- :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at, :created_at,
20
- :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :accounting_detail, :metadata,
21
- :item_type, :archivable, :parent_item_id, :show_description_in_invoices, :show_description_in_quotes
17
+ :proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code, :period_unit,
18
+ :trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
19
+ :billing_cycles, :free_quantity, :free_quantity_in_decimal, :channel, :resource_version, :updated_at,
20
+ :created_at, :archived_at, :invoice_notes, :tiers, :is_taxable, :tax_detail, :accounting_detail,
21
+ :metadata, :item_type, :archivable, :parent_item_id, :show_description_in_invoices, :show_description_in_quotes
22
22
 
23
23
  # OPERATIONS
24
24
  #-----------
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class PaymentIntent < Model
3
3
 
4
4
  class PaymentAttempt < Model
5
- attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at
5
+ attr_accessor :id, :status, :payment_method_type, :id_at_gateway, :error_code, :error_text, :created_at, :modified_at, :error_detail
6
6
  end
7
7
 
8
8
  attr_accessor :id, :status, :currency_code, :amount, :gateway_account_id, :expires_at, :reference_id,
@@ -2,7 +2,7 @@ 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, :reference_line_item_id, :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, :usage_percentage, :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
@@ -2,7 +2,7 @@ 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, :reference_line_item_id, :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, :usage_percentage, :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
@@ -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, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option
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, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type
18
18
  end
19
19
 
20
20
  class ItemTier < Model
@@ -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, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option
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, :free_quantity, :free_quantity_in_decimal, :trial_end, :billing_cycles, :service_period_days, :charge_on_event, :charge_once, :charge_on_option, :proration_type
6
6
  end
7
7
 
8
8
  class ItemTier < Model
@@ -3,6 +3,7 @@ module ChargeBee
3
3
 
4
4
  attr_accessor :name, :time_travel_status, :genesis_time, :destination_time, :failure_code, :failure_reason,
5
5
  :error_json
6
+
6
7
  def wait_for_time_travel_completion(env = nil)
7
8
  env = env || ChargeBee.default_env
8
9
  sleeptime = env.time_machine_sleeptime
@@ -28,6 +29,7 @@ module ChargeBee
28
29
  raise Error.new("Time travel status is in wrong state #{self.time_travel_status}")
29
30
  end
30
31
  end
32
+
31
33
  # OPERATIONS
32
34
  #-----------
33
35
 
@@ -18,7 +18,7 @@ module ChargeBee
18
18
  end
19
19
 
20
20
  class GatewayErrorDetail < Model
21
- attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message, :network_error_code, :error_field, :recommendation_code
21
+ attr_accessor :request_id, :error_category, :error_code, :error_message, :decline_code, :decline_message, :network_error_code, :network_error_message, :error_field, :recommendation_code, :recommendation_message, :processor_error_code, :processor_error_message
22
22
  end
23
23
 
24
24
  attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_source_id,
@@ -11,7 +11,7 @@ module ChargeBee
11
11
  def get_response_headers()
12
12
  @rheaders
13
13
  end
14
-
14
+
15
15
  def is_idempotency_replayed()
16
16
  replayed_header = get_response_headers[IDEMPOTENCY_REPLAYED_HEADER]
17
17
  if replayed_header != nil
@@ -272,6 +272,11 @@ module ChargeBee
272
272
  return payment_intent;
273
273
  end
274
274
 
275
+ def gateway_error_detail()
276
+ gateway_error_detail = get(:gateway_error_detail, GatewayErrorDetail);
277
+ return gateway_error_detail;
278
+ end
279
+
275
280
  def item_family()
276
281
  item_family = get(:item_family, ItemFamily);
277
282
  return item_family;
@@ -329,21 +334,16 @@ module ChargeBee
329
334
  return item_entitlement;
330
335
  end
331
336
 
332
- def entitlement()
337
+ def entitlement()
333
338
  entitlement = get(:entitlement, Entitlement);
334
339
  return entitlement;
335
340
  end
336
341
 
337
- def in_app_subscription()
342
+ def in_app_subscription()
338
343
  in_app_subscription = get(:in_app_subscription, InAppSubscription);
339
344
  return in_app_subscription;
340
345
  end
341
346
 
342
- def non_subscription()
343
- non_subscription = get(:non_subscription, NonSubscription);
344
- return non_subscription;
345
- end
346
-
347
347
  def entitlement_override()
348
348
  entitlement_override = get(:entitlement_override, EntitlementOverride);
349
349
  return entitlement_override;
@@ -360,54 +360,53 @@ module ChargeBee
360
360
  return payment_voucher;
361
361
  end
362
362
 
363
- def unbilled_charges()
364
- unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
365
- {:tiers => UnbilledCharge::Tier});
366
- return unbilled_charges;
367
- end
368
-
369
- def credit_notes()
370
- credit_notes = get_list(:credit_notes, CreditNote,
371
- {:einvoice => CreditNote::Einvoice, :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, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress});
372
- return credit_notes;
373
- end
374
-
375
- def advance_invoice_schedules()
363
+ def advance_invoice_schedules()
376
364
  advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
377
365
  {:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
378
366
  return advance_invoice_schedules;
379
367
  end
380
-
381
- def hierarchies()
368
+
369
+ def hierarchies()
382
370
  hierarchies = get_list(:hierarchies, Hierarchy,
383
371
  {});
384
372
  return hierarchies;
385
373
  end
386
-
387
- def downloads()
388
- downloads = get_list(:downloads, Download,
389
- {});
390
- return downloads;
391
- end
392
-
393
- def invoices()
374
+
375
+ def invoices()
394
376
  invoices = get_list(:invoices, Invoice,
395
377
  {: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, :dunning_attempts => Invoice::DunningAttempt, :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, :statement_descriptor => Invoice::StatementDescriptor, :billing_address => Invoice::BillingAddress, :einvoice => Invoice::Einvoice});
396
378
  return invoices;
397
379
  end
398
-
380
+
399
381
  def differential_prices()
400
382
  differential_prices = get_list(:differential_prices, DifferentialPrice,
401
383
  {:tiers => DifferentialPrice::Tier, :parent_periods => DifferentialPrice::ParentPeriod});
402
384
  return differential_prices;
403
385
  end
404
-
405
- def in_app_subscriptions()
386
+ def credit_notes()
387
+ credit_notes = get_list(:credit_notes, CreditNote,
388
+ {:einvoice => CreditNote::Einvoice, :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, :shipping_address => CreditNote::ShippingAddress, :billing_address => CreditNote::BillingAddress});
389
+ return credit_notes;
390
+ end
391
+
392
+ def unbilled_charges()
393
+ unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
394
+ {:tiers => UnbilledCharge::Tier});
395
+ return unbilled_charges;
396
+ end
397
+
398
+ def downloads()
399
+ downloads = get_list(:downloads, Download,
400
+ {});
401
+ return downloads;
402
+ end
403
+
404
+ def in_app_subscriptions()
406
405
  in_app_subscriptions = get_list(:in_app_subscriptions, InAppSubscription,
407
406
  {});
408
407
  return in_app_subscriptions;
409
408
  end
410
-
409
+
411
410
 
412
411
  def to_s(*args)
413
412
  JSON.pretty_generate(@response)
data/lib/chargebee.rb CHANGED
@@ -68,7 +68,7 @@ require File.dirname(__FILE__) + '/chargebee/models/token.rb'
68
68
 
69
69
  module ChargeBee
70
70
 
71
- VERSION = '2.34.0'
71
+ VERSION = '2.36.0'
72
72
 
73
73
  @@default_env = nil
74
74
  @@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.34.0
4
+ version: 2.36.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-01-04 00:00:00.000000000 Z
12
+ date: 2024-02-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -139,6 +139,7 @@ files:
139
139
  - lib/chargebee/models/event.rb
140
140
  - lib/chargebee/models/export.rb
141
141
  - lib/chargebee/models/feature.rb
142
+ - lib/chargebee/models/gateway_error_detail.rb
142
143
  - lib/chargebee/models/gift.rb
143
144
  - lib/chargebee/models/hierarchy.rb
144
145
  - lib/chargebee/models/hosted_page.rb
@@ -152,7 +153,6 @@ files:
152
153
  - lib/chargebee/models/item_family.rb
153
154
  - lib/chargebee/models/item_price.rb
154
155
  - lib/chargebee/models/model.rb
155
- - lib/chargebee/models/non_subscription.rb
156
156
  - lib/chargebee/models/order.rb
157
157
  - lib/chargebee/models/payment_intent.rb
158
158
  - lib/chargebee/models/payment_reference_number.rb
@@ -1,14 +0,0 @@
1
- module ChargeBee
2
- class NonSubscription < Model
3
-
4
- attr_accessor :app_id, :invoice_id, :customer_id, :charge_id
5
-
6
- # OPERATIONS
7
- #-----------
8
-
9
- def self.process_receipt(id, params, env=nil, headers={})
10
- Request.send('post', uri_path("non_subscriptions",id.to_s,"one_time_purchase"), params, env, headers)
11
- end
12
-
13
- end # ~NonSubscription
14
- end # ~ChargeBee