chargebee 2.33.0 → 2.38.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +200 -0
  3. data/Gemfile.lock +1 -1
  4. data/LICENSE +1 -1
  5. data/chargebee.gemspec +11 -2
  6. data/lib/chargebee/models/addon.rb +5 -1
  7. data/lib/chargebee/models/attribute.rb +10 -0
  8. data/lib/chargebee/models/credit_note.rb +2 -2
  9. data/lib/chargebee/models/credit_note_estimate.rb +2 -2
  10. data/lib/chargebee/models/customer.rb +11 -7
  11. data/lib/chargebee/models/entitlement.rb +18 -0
  12. data/lib/chargebee/models/event.rb +1 -1
  13. data/lib/chargebee/models/export.rb +5 -0
  14. data/lib/chargebee/models/gateway_error_detail.rb +12 -0
  15. data/lib/chargebee/models/impacted_item_price.rb +14 -0
  16. data/lib/chargebee/models/installment.rb +18 -0
  17. data/lib/chargebee/models/installment_config.rb +27 -0
  18. data/lib/chargebee/models/installment_detail.rb +14 -0
  19. data/lib/chargebee/models/invoice.rb +7 -3
  20. data/lib/chargebee/models/invoice_estimate.rb +2 -2
  21. data/lib/chargebee/models/item_price.rb +11 -6
  22. data/lib/chargebee/models/model.rb +5 -1
  23. data/lib/chargebee/models/order.rb +1 -1
  24. data/lib/chargebee/models/payment_intent.rb +1 -1
  25. data/lib/chargebee/models/payment_source.rb +6 -1
  26. data/lib/chargebee/models/plan.rb +6 -1
  27. data/lib/chargebee/models/price_variant.rb +35 -0
  28. data/lib/chargebee/models/quote.rb +2 -2
  29. data/lib/chargebee/models/quote_line_group.rb +2 -2
  30. data/lib/chargebee/models/quoted_subscription.rb +1 -1
  31. data/lib/chargebee/models/ramp.rb +48 -0
  32. data/lib/chargebee/models/subscription.rb +11 -7
  33. data/lib/chargebee/models/time_machine.rb +2 -0
  34. data/lib/chargebee/models/transaction.rb +8 -3
  35. data/lib/chargebee/models/unbilled_charge.rb +1 -1
  36. data/lib/chargebee/result.rb +83 -33
  37. data/lib/chargebee.rb +6 -2
  38. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6db0cf1fa6d27d9811bf9f1bc349f881472d714
4
- data.tar.gz: 5847634a85f9c1c1425f7030c14e1a87d624d6b1
3
+ metadata.gz: d57b0269a6b0c4fe1168f2fa4e9cd9fd6b4279ac
4
+ data.tar.gz: 827f40e47c08721455edfc9a8b94a491b27246e8
5
5
  SHA512:
6
- metadata.gz: b7ccc0f75bbecb3992f4632372051a40222068ebf053dc481f1a6b20f92651a7d1bea19e6e34c02edeb343c3a4caf66165cc5db1da2aeaa5d924a5546e610140
7
- data.tar.gz: a2be218a7df4f31f91369d3b7c97d3e4ff7c7ccc3201ea182d06e26a152d9b60b4dc3630fa7a8b418254e102bac6790d3136b5df2c2c329ae3f85ec47d14c48d
6
+ metadata.gz: 7c6f3d61534f515c0fe8bd4716f78ba989583c3b77ca27ad25310dd348ba9b50b3f715f0cea47c2413568d4f07565e75c121b0f2212f34eb5724aabe5697997c
7
+ data.tar.gz: 5c2e96990eb5d198c7cba2cd471325cf415de3b907b60289fc3cd770454f62a7574344a9ce441eb880b1a5c40d57a5b24eb51cd16fbf593955dcf6254ee18401
data/CHANGELOG.md CHANGED
@@ -1,3 +1,203 @@
1
+ ### v2.38.1 (2024-05-02)
2
+ * * *
3
+
4
+ #### Removed resources:
5
+ * Session has been removed.
6
+
7
+ ### v2.38.0 (2024-04-30)
8
+ * * *
9
+
10
+ #### New resources:
11
+ * PriceVariant has been added.
12
+ * Ramp has been added.
13
+ * InstallmentDetail has been added.
14
+ * Session has been added.
15
+ * Ramp has been added.
16
+
17
+ #### New Enum values:
18
+ * INVOICE_INSTALLMENTS_CREATED has been added in EventType enum.
19
+ * INVOICE_INSTALLMENT_UPDATED has been added in EventType enum.
20
+ * INSTALLMENT_CONFIG_CREATED has been added in EventType enum.
21
+ * INSTALLMENT_CONFIG_DELETED has been added in EventType enum.
22
+ * RAMP_CREATED has been added in EventType enum.
23
+ * RAMP_DELETED has been added in EventType enum.
24
+ * RAMP_APPLIED has been added in EventType enum.
25
+
26
+ #### New Attributes:
27
+ * tax_providers_fields has been added to Addon resource.
28
+ * tax_providers_fields has been added to Customer resource.
29
+ * tax_providers_fields has been added to ItemPrice resource.
30
+ * tax_providers_fields has been added to Plan resource.
31
+ * resource_version has been added to Installment resource.
32
+ * resource_version has been added to InstallmentConfig resource.
33
+ * KlarnaPayNow has been added to PaymentSource resource.
34
+ * business_entity_id has been added to UnbilledCharge resource.
35
+
36
+ #### New Endpoints:
37
+ * Exports#PriceVariantsRequest has been added to Exports resource.
38
+
39
+ #### New Input parameters:
40
+ * changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionRequest.
41
+ * changes_scheduled_at, change_option has been added to Estimate#UpdateSubscriptionForItemsRequest.
42
+ * contract_term[contract_start] has been added to Estimate#CreateSubItemEstimateRequest.
43
+ * contract_term[contract_start] has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
44
+ * contract_term[contract_start] has been added to Subscription#CreateWithItemsRequest.
45
+ * contract_term[contract_start] has been added to Subscription#UpdateForItemsRequest.
46
+ * price_variant_id has been added to ItemPrice#CreateRequest.
47
+ * price_variant_id has been added to ItemPrice#UpdateRequest.
48
+ * price_variant_id has been added to ItemPrice#ListRequest.
49
+
50
+ #### Removed attributes:
51
+ * additional_info has been removed from Invoice#StatmentDescriptor resource.
52
+
53
+ #### Removed Input parameters:
54
+ * additional_info has been removed from Subscription#CreateRequest.
55
+ * additional_info has been removed from Subscription#CreateForCustomerRequest.
56
+ * additional_info has been removed from Subscription#CreateWithItemsRequest.
57
+ * additional_info has been removed from Subscription#UpdateRequest.
58
+ * additional_info has been removed from Subscription#UpdateForItemsRequest.
59
+ * additional_info has been removed from Subscription#ReactivateRequest.
60
+
61
+ ### v2.37.1 (2024-04-03)
62
+ * * *
63
+
64
+ #### New Input parameters:
65
+ * to_customer_id has been added to subscription#MoveRequest.
66
+ * copy_payment_source has been added to subscription#MoveRequest.
67
+
68
+ #### New endpoints:
69
+ * Subscription#MoveRequest has been added to the Subscription resource.
70
+
71
+ ### v2.37.0 (2024-03-20)
72
+ * * *
73
+
74
+ #### New resources:
75
+ * Attribute has been added.
76
+ * ImpactedItemPrice has been added.
77
+ * InstallmentConfig has been added.
78
+ * Installment has been added.
79
+
80
+ #### Removed attributes:
81
+ * product_id has been removed from ItemPrice resource.
82
+
83
+ #### New Enum values:
84
+ * klarna_pay_now has been added to TypeEnum in Customer resource.
85
+ * klarna_pay_now has been added to PaymentMethodEnum.
86
+ * klarna_pay_now has been added to PaymentMethodTypeEnum enum.
87
+ * klarna_pay_now has been added to TypeEnum.
88
+ * price_variant has been added to EntityTypeEnum.
89
+ * price_variant_created has been added in EventType enum.
90
+ * price_variant_updated has been added in EventType enum.
91
+ * price_variant_deleted has been added in EventType enum.
92
+
93
+ #### Removed Enum values:
94
+ * product and variant have been removed from EntityTypeEnum.
95
+
96
+ #### New Input parameters:
97
+ * config_id has been added to Invoice#InstallmentsRequest.
98
+ * amount has been added to Invoice#InstallmentsRequest.
99
+ * payment_source_id has been added to Purchase#CreateRequest.
100
+ * installment_info[config_id] has been added to Purchase#CreateRequest.
101
+ * installment_info[amount] has been added to Purchase#CreateRequest.
102
+ * subscription_info[contract_term_billing_cycle_on_renewal] has been added to Purchase#CreateRequest.
103
+ * contract_terms[index] has been added to Purchase#CreateRequest.
104
+ * contract_terms[action_at_term_end] has been added to Purchase#CreateRequest.
105
+ * contract_terms[cancellation_cutoff_period] has been added to Purchase#CreateRequest.
106
+ * subscription_info[contract_term_billing_cycle_on_renewal] has been added to Purchase#EstimateRequest.
107
+ * contract_terms[index] has been added to Purchase#EstimateRequest.
108
+ * contract_terms[action_at_term_end] has been added to Purchase#EstimateRequest.
109
+ * contract_terms[cancellation_cutoff_period] has been added to Purchase#EstimateRequest.
110
+
111
+ #### Deprecated input parameters:
112
+ * product_created, product_updated, product_deleted, variant_created, variant_updated, variant_deleted has been deprecated in EventTypeEnum.
113
+
114
+ ### v2.36.2 (2024-03-08)
115
+ * * *
116
+ * NonSubscription has been added to chargebee.rb.
117
+
118
+ ### v2.36.1 (2024-03-06)
119
+ * * *
120
+ * NonSubscription has been added.
121
+
122
+ ### v2.36.0 (2024-02-29)
123
+ * * *
124
+
125
+ #### New attributes:
126
+ * usage_percentage has been added to QuoteLineGroup resource.
127
+ * usage_percentage has been added to Quote resource.
128
+ * usage_percentage has been added to CreditNoteEstimate resource.
129
+ * usage_percentage has been added to CreditNote resource.
130
+ * usage_percentage has been added to InvoiceEstimate resource.
131
+ * usage_percentage has been added to Invoice resource.
132
+ * error_detail of type GatewayErrorDetail has been added to PaymentIntent#PaymentAttempt subResource.
133
+ * origin_user has been added to Event resource.
134
+ * proration_type has been added to QuotedSubscription#SubscriptionItem and Subscription#SubscriptionItem subResources
135
+ * network_error_message, recommendation_message, processor_error_code, processor_error_message has been added to Transaction#GatewayErrorDetail subResource.
136
+
137
+ #### New Enum values:
138
+ * TAX_NOT_CONFIGURED_EXTERNAL_PROVIDER has been added to TaxExemptReasonEnum.
139
+
140
+ #### New Input parameters:
141
+ * billing_address has been added to Estimate#CreateSubItemForCustomerEstimateRequest.
142
+ * transactions[amount] has been added to Invoice#ApplyPaymentsRequest.
143
+
144
+ ### v2.35.0 (2024-01-31)
145
+ * * *
146
+
147
+ #### New Enum values:
148
+ * item_price_entitlements_updated has been added to EventTypeEnum.
149
+ * item_price_entitlements_removed has been added to EventTypeEnum.
150
+
151
+ #### New Input parameters:
152
+ * layout has been added to HostedPage#AcceptQuoteRequest in HostedPage resource.
153
+
154
+ ### v2.34.0 (2024-01-04)
155
+ * * *
156
+
157
+ #### Fixes:
158
+ * Fixed Custom fields names with spaces issue.
159
+
160
+ #### New resources:
161
+ * Entitlements has been added.
162
+
163
+ #### New attributes:
164
+ * date_to, date_from, prorated_taxable_amount has been added to quote_line_group.
165
+ * date_to, date_from, prorated_taxable_amount has been added to quote.
166
+ * date_to, date_from, prorated_taxable_amount has been added to credit_note_estimate.
167
+ * date_to, date_from, prorated_taxable_amount has been added to credit_note.
168
+ * date_to, date_from, prorated_taxable_amount has been added to invoice_estimate.
169
+ * date_to, date_from, prorated_taxable_amount has been added to order.
170
+ * date_to, date_from, prorated_taxable_amount has been added to invoice.
171
+ * active_id has been added to customers.
172
+ * active_id has been added to subscriptions.
173
+ * reference_id has been made optional for payment_sources/create_using_permanent_token
174
+ * custom_payment_method_id has been added to transactions.
175
+ * custom_payment_method_name has been added to transactions.
176
+ * error_detail has been added to transactions.
177
+
178
+
179
+ #### New Enum values:
180
+ * CMR_FALABELLA, TARJETA_NARANJA, NATIVA, CENCOSUD, CABAL, ARGENCARD, ELO, HIPERCARD, CARNET, RUPAY, MAESTRO has been added to Card#CardTypeEnum
181
+ * Transferred has been added to Subscription#StatusEnum.
182
+ * Transferred has been added to SubscriptionEstimate#StatusEnum.
183
+ * AutomatedBankTransfer has been added to PaymentMethodEnum.
184
+ * UsAutomatedBankTransfer, GbAutomatedBankTransfer, EuAutomatedBankTransfer, JpAutomatedBankTransfer, MxAutomatedBankTransfer has been added to VirtualBankAccount#SchemeEnum.
185
+ * CustomerBusinessEntityChanged, SubscriptionBusinessEntityChanged has been added to EventTypeEnum.
186
+ * Dlocal has been added to GatewayEnum.
187
+ * UsAutomatedBankTransfer, UkAutomatedBankTransfer, EuAutomatedBankTransfer, JpAutomatedBankTransfer, MxAutomatedBankTransfer, Custom has been added to OfflinePaymentMethodEnum.
188
+ * AutomatedBankTransfer has been added to PaymentMethodEnum.
189
+ * AutomatedBankTransfer has been added to PaymentMethodTypeEnum.
190
+
191
+ #### New Input parameters:
192
+ * custom_payment_method_name has been added to Transactions#RecordRefundRequest.
193
+ * proration_type has been added to Subscription#UpdateForItemsRequest.
194
+ * proration_type has been added to ItemPrice.
195
+ * payment_initiator has been added to Invoice.
196
+ * payment_method_token, customer_profile_token, network_transaction_id, mandate_id, skip_retrieval, card, billing_address has been added to PaymentSource#CreateUsingPermanentTokenRequest.
197
+ * subscription_items[proration_type] has been added to Estimate#UpdateSubscriptionForItemsRequest.
198
+ * transaction[custom_payment_method_id] has been added to Customer#RecordExcessPaymentRequest.
199
+ * transaction[custom_payment_method_id] has been added to CreditNote#RecordRefundRequest.
200
+
1
201
  ### v2.33.0 (2023-11-30)
2
202
  * * *
3
203
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chargebee (2.33.0)
4
+ chargebee (2.38.1)
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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2011-2023 ChargeBee, Inc.
3
+ Copyright (c) 2011-2024 ChargeBee, Inc.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person
6
6
  obtaining a copy of this software and associated documentation
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.33.0'
8
- s.date = '2023-11-30'
7
+ s.version = '2.38.1'
8
+ s.date = '2024-05-02'
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 = {
@@ -46,6 +46,7 @@ Gem::Specification.new do |s|
46
46
  lib/chargebee/models/address.rb
47
47
  lib/chargebee/models/advance_invoice_schedule.rb
48
48
  lib/chargebee/models/attached_item.rb
49
+ lib/chargebee/models/attribute.rb
49
50
  lib/chargebee/models/card.rb
50
51
  lib/chargebee/models/comment.rb
51
52
  lib/chargebee/models/contact.rb
@@ -60,17 +61,23 @@ Gem::Specification.new do |s|
60
61
  lib/chargebee/models/differential_price.rb
61
62
  lib/chargebee/models/discount.rb
62
63
  lib/chargebee/models/download.rb
64
+ lib/chargebee/models/entitlement.rb
63
65
  lib/chargebee/models/entitlement_override.rb
64
66
  lib/chargebee/models/estimate.rb
65
67
  lib/chargebee/models/event.rb
66
68
  lib/chargebee/models/export.rb
67
69
  lib/chargebee/models/feature.rb
70
+ lib/chargebee/models/gateway_error_detail.rb
68
71
  lib/chargebee/models/gift.rb
69
72
  lib/chargebee/models/hierarchy.rb
70
73
  lib/chargebee/models/hosted_page.rb
71
74
  lib/chargebee/models/impacted_item.rb
75
+ lib/chargebee/models/impacted_item_price.rb
72
76
  lib/chargebee/models/impacted_subscription.rb
73
77
  lib/chargebee/models/in_app_subscription.rb
78
+ lib/chargebee/models/installment.rb
79
+ lib/chargebee/models/installment_config.rb
80
+ lib/chargebee/models/installment_detail.rb
74
81
  lib/chargebee/models/invoice.rb
75
82
  lib/chargebee/models/invoice_estimate.rb
76
83
  lib/chargebee/models/item.rb
@@ -86,12 +93,14 @@ Gem::Specification.new do |s|
86
93
  lib/chargebee/models/payment_voucher.rb
87
94
  lib/chargebee/models/plan.rb
88
95
  lib/chargebee/models/portal_session.rb
96
+ lib/chargebee/models/price_variant.rb
89
97
  lib/chargebee/models/promotional_credit.rb
90
98
  lib/chargebee/models/purchase.rb
91
99
  lib/chargebee/models/quote.rb
92
100
  lib/chargebee/models/quote_line_group.rb
93
101
  lib/chargebee/models/quoted_charge.rb
94
102
  lib/chargebee/models/quoted_subscription.rb
103
+ lib/chargebee/models/ramp.rb
95
104
  lib/chargebee/models/resource_migration.rb
96
105
  lib/chargebee/models/site_migration_detail.rb
97
106
  lib/chargebee/models/subscription.rb
@@ -5,13 +5,17 @@ module ChargeBee
5
5
  attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
6
6
  end
7
7
 
8
+ class TaxProvidersField < Model
9
+ attr_accessor :provider_name, :field_id, :field_value
10
+ end
11
+
8
12
  attr_accessor :id, :name, :invoice_name, :description, :pricing_model, :type, :charge_type,
9
13
  :price, :currency_code, :period, :period_unit, :unit, :status, :archived_at, :enabled_in_portal,
10
14
  :tax_code, :hsn_code, :taxjar_product_code, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type,
11
15
  :sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3,
12
16
  :accounting_category4, :is_shippable, :shipping_frequency_period, :shipping_frequency_period_unit,
13
17
  :resource_version, :updated_at, :price_in_decimal, :included_in_mrr, :channel, :proration_type,
14
- :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :show_description_in_invoices,
18
+ :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers, :tax_providers_fields, :show_description_in_invoices,
15
19
  :show_description_in_quotes
16
20
 
17
21
  # OPERATIONS
@@ -0,0 +1,10 @@
1
+ module ChargeBee
2
+ class Attribute < Model
3
+
4
+ attr_accessor :name, :value
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ end # ~Attribute
10
+ end # ~ChargeBee
@@ -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
@@ -26,7 +26,7 @@ module ChargeBee
26
26
  end
27
27
 
28
28
  class LineItemTax < Model
29
- 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
29
+ 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
30
30
  end
31
31
 
32
32
  class LinkedRefund < 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
@@ -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 LineItemDiscount < Model
@@ -25,6 +25,10 @@ module ChargeBee
25
25
  attr_accessor :id, :value, :scheme, :standard
26
26
  end
27
27
 
28
+ class TaxProvidersField < Model
29
+ attr_accessor :provider_name, :field_id, :field_value
30
+ end
31
+
28
32
  class Relationship < Model
29
33
  attr_accessor :parent_id, :payment_owner_id, :invoice_owner_id
30
34
  end
@@ -42,13 +46,13 @@ module ChargeBee
42
46
  :is_location_valid, :created_at, :created_from_ip, :exemption_details, :taxability, :entity_code,
43
47
  :exempt_number, :resource_version, :updated_at, :locale, :billing_date, :billing_month, :billing_date_mode,
44
48
  :billing_day_of_week, :billing_day_of_week_mode, :pii_cleared, :auto_close_invoices, :channel,
45
- :card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id, :billing_address,
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, :einvoicing_method, :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing,
49
- :customer_type, :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
49
+ :active_id, :card_status, :fraud_flag, :primary_payment_source_id, :backup_payment_source_id,
50
+ :billing_address, :referral_urls, :contacts, :payment_method, :invoice_notes, :business_entity_id,
51
+ :preferred_currency_code, :promotional_credits, :unbilled_charges, :refundable_credits, :excess_payments,
52
+ :balances, :entity_identifiers, :tax_providers_fields, :is_einvoice_enabled, :einvoicing_method,
53
+ :meta_data, :deleted, :registered_for_gst, :consolidated_invoicing, :customer_type, :business_customer_without_vat_number,
54
+ :client_profile_id, :relationship, :use_default_hierarchy_settings, :parent_account_access,
55
+ :child_account_access, :vat_number_prefix, :entity_identifier_scheme, :entity_identifier_standard
52
56
 
53
57
  # OPERATIONS
54
58
  #-----------
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class Entitlement < Model
3
+
4
+ attr_accessor :id, :entity_id, :entity_type, :feature_id, :feature_name, :value, :name
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.list(params={}, env=nil, headers={})
10
+ Request.send_list_request('get', uri_path("entitlements"), params, env, headers)
11
+ end
12
+
13
+ def self.create(params, env=nil, headers={})
14
+ Request.send('post', uri_path("entitlements"), params, env, headers)
15
+ end
16
+
17
+ end # ~Entitlement
18
+ end # ~ChargeBee
@@ -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
@@ -103,5 +104,9 @@ end
103
104
  Request.send('post', uri_path("exports","differential_prices"), params, env, headers)
104
105
  end
105
106
 
107
+ def self.price_variants(params={}, env=nil, headers={})
108
+ Request.send('post', uri_path("exports","price_variants"), params, env, headers)
109
+ end
110
+
106
111
  end # ~Export
107
112
  end # ~ChargeBee
@@ -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
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class ImpactedItemPrice < Model
3
+
4
+ class Download < Model
5
+ attr_accessor :download_url, :valid_till, :mime_type
6
+ end
7
+
8
+ attr_accessor :count, :download, :item_prices
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~ImpactedItemPrice
14
+ end # ~ChargeBee
@@ -0,0 +1,18 @@
1
+ module ChargeBee
2
+ class Installment < Model
3
+
4
+ attr_accessor :id, :invoice_id, :date, :amount, :status, :created_at, :resource_version, :updated_at
5
+
6
+ # OPERATIONS
7
+ #-----------
8
+
9
+ def self.retrieve(id, env=nil, headers={})
10
+ Request.send('get', uri_path("installments",id.to_s), {}, env, headers)
11
+ end
12
+
13
+ def self.list(params, env=nil, headers={})
14
+ Request.send_list_request('get', uri_path("installments"), params, env, headers)
15
+ end
16
+
17
+ end # ~Installment
18
+ end # ~ChargeBee
@@ -0,0 +1,27 @@
1
+ module ChargeBee
2
+ class InstallmentConfig < Model
3
+
4
+ class Installment < Model
5
+ attr_accessor :period, :amount_percentage
6
+ end
7
+
8
+ attr_accessor :id, :description, :number_of_installments, :period_unit, :period, :preferred_day,
9
+ :created_at, :resource_version, :updated_at, :installments
10
+
11
+ # OPERATIONS
12
+ #-----------
13
+
14
+ def self.create(params, env=nil, headers={})
15
+ Request.send('post', uri_path("installment_configs"), params, env, headers)
16
+ end
17
+
18
+ def self.retrieve(id, env=nil, headers={})
19
+ Request.send('get', uri_path("installment_configs",id.to_s), {}, env, headers)
20
+ end
21
+
22
+ def self.delete(id, env=nil, headers={})
23
+ Request.send('post', uri_path("installment_configs",id.to_s,"delete"), {}, env, headers)
24
+ end
25
+
26
+ end # ~InstallmentConfig
27
+ end # ~ChargeBee
@@ -0,0 +1,14 @@
1
+ module ChargeBee
2
+ class InstallmentDetail < Model
3
+
4
+ class Installment < Model
5
+ attr_accessor :id, :invoice_id, :date, :amount, :status, :created_at, :resource_version, :updated_at
6
+ end
7
+
8
+ attr_accessor :id, :invoice_id, :amount, :installments
9
+
10
+ # OPERATIONS
11
+ #-----------
12
+
13
+ end # ~InstallmentDetail
14
+ 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
@@ -58,7 +58,7 @@ module ChargeBee
58
58
  end
59
59
 
60
60
  class StatementDescriptor < Model
61
- attr_accessor :id, :descriptor, :additional_info
61
+ attr_accessor :id, :descriptor
62
62
  end
63
63
 
64
64
  class BillingAddress < Model
@@ -220,6 +220,10 @@ module ChargeBee
220
220
  Request.send('post', uri_path("invoices",id.to_s,"update_details"), params, env, headers)
221
221
  end
222
222
 
223
+ def self.installments(id, params, env=nil, headers={})
224
+ Request.send('post', uri_path("invoices",id.to_s,"installments"), params, env, headers)
225
+ end
226
+
223
227
  def self.resend_einvoice(id, env=nil, headers={})
224
228
  Request.send('post', uri_path("invoices",id.to_s,"resend_einvoice"), {}, env, headers)
225
229
  end
@@ -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
@@ -9,16 +9,21 @@ module ChargeBee
9
9
  attr_accessor :tax_profile_id, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type, :avalara_tax_code, :hsn_code, :taxjar_product_code
10
10
  end
11
11
 
12
+ class TaxProvidersField < Model
13
+ attr_accessor :provider_name, :field_id, :field_value
14
+ end
15
+
12
16
  class AccountingDetail < Model
13
17
  attr_accessor :sku, :accounting_code, :accounting_category1, :accounting_category2, :accounting_category3, :accounting_category4
14
18
  end
15
19
 
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
20
+ attr_accessor :id, :name, :item_family_id, :item_id, :description, :status, :external_name,
21
+ :price_variant_id, :proration_type, :pricing_model, :price, :price_in_decimal, :period, :currency_code,
22
+ :period_unit, :trial_period, :trial_period_unit, :trial_end_action, :shipping_period, :shipping_period_unit,
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
22
27
 
23
28
  # OPERATIONS
24
29
  #-----------
@@ -36,10 +36,14 @@ module ChargeBee
36
36
  v
37
37
  end
38
38
 
39
- instance_variable_set("@#{k}", set_val)
39
+ instance_variable_set("@#{replace_white_space_with_underscore(k)}", set_val)
40
40
  end
41
41
  end
42
42
  end
43
+
44
+ def replace_white_space_with_underscore(s)
45
+ s.to_s.tr(" ", "_")
46
+ end
43
47
 
44
48
  def method_missing(m, *args, &block)
45
49
  if(@values.has_key?(m))
@@ -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 LineItemDiscount < Model
@@ -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,
@@ -33,13 +33,18 @@ module ChargeBee
33
33
  attr_accessor :user_name
34
34
  end
35
35
 
36
+ class KlarnaPayNow < Model
37
+ attr_accessor :email
38
+ end
39
+
36
40
  class Mandate < Model
37
41
  attr_accessor :id, :subscription_id, :created_at
38
42
  end
39
43
 
40
44
  attr_accessor :id, :resource_version, :updated_at, :created_at, :customer_id, :type, :reference_id,
41
45
  :status, :gateway, :gateway_account_id, :ip_address, :issuing_country, :card, :bank_account,
42
- :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :mandates, :deleted, :business_entity_id
46
+ :boleto, :billing_address, :amazon_payment, :upi, :paypal, :venmo, :klarna_pay_now, :mandates,
47
+ :deleted, :business_entity_id
43
48
 
44
49
  # OPERATIONS
45
50
  #-----------
@@ -5,6 +5,10 @@ module ChargeBee
5
5
  attr_accessor :starting_unit, :ending_unit, :price, :starting_unit_in_decimal, :ending_unit_in_decimal, :price_in_decimal
6
6
  end
7
7
 
8
+ class TaxProvidersField < Model
9
+ attr_accessor :provider_name, :field_id, :field_value
10
+ end
11
+
8
12
  class ApplicableAddon < Model
9
13
  attr_accessor :id
10
14
  end
@@ -25,7 +29,8 @@ module ChargeBee
25
29
  :accounting_category2, :accounting_category3, :accounting_category4, :is_shippable, :shipping_frequency_period,
26
30
  :shipping_frequency_period_unit, :resource_version, :updated_at, :giftable, :claim_url, :free_quantity_in_decimal,
27
31
  :price_in_decimal, :channel, :invoice_notes, :taxable, :tax_profile_id, :meta_data, :tiers,
28
- :applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices, :show_description_in_quotes
32
+ :tax_providers_fields, :applicable_addons, :attached_addons, :event_based_addons, :show_description_in_invoices,
33
+ :show_description_in_quotes
29
34
 
30
35
  # OPERATIONS
31
36
  #-----------
@@ -0,0 +1,35 @@
1
+ module ChargeBee
2
+ class PriceVariant < Model
3
+
4
+ class Attribute < Model
5
+ attr_accessor :name, :value
6
+ end
7
+
8
+ attr_accessor :id, :name, :external_name, :description, :status, :created_at, :resource_version,
9
+ :updated_at, :archived_at, :attributes
10
+
11
+ # OPERATIONS
12
+ #-----------
13
+
14
+ def self.create(params, env=nil, headers={})
15
+ Request.send('post', uri_path("price_variants"), params, env, headers)
16
+ end
17
+
18
+ def self.retrieve(id, env=nil, headers={})
19
+ Request.send('get', uri_path("price_variants",id.to_s), {}, env, headers)
20
+ end
21
+
22
+ def self.update(id, params, env=nil, headers={})
23
+ Request.send('post', uri_path("price_variants",id.to_s), params, env, headers)
24
+ end
25
+
26
+ def self.delete(id, env=nil, headers={})
27
+ Request.send('post', uri_path("price_variants",id.to_s,"delete"), {}, env, headers)
28
+ end
29
+
30
+ def self.list(params={}, env=nil, headers={})
31
+ Request.send_list_request('get', uri_path("price_variants"), params, env, headers)
32
+ end
33
+
34
+ end # ~PriceVariant
35
+ end # ~ChargeBee
@@ -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
@@ -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 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
@@ -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
  attr_accessor :version, :id, :sub_total, :total, :credits_applied, :amount_paid, :amount_due,
@@ -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
@@ -0,0 +1,48 @@
1
+ module ChargeBee
2
+ class Ramp < Model
3
+
4
+ class ItemsToAdd < Model
5
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity
6
+ end
7
+
8
+ class ItemsToUpdate < Model
9
+ attr_accessor :item_price_id, :item_type, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :amount, :amount_in_decimal, :free_quantity, :free_quantity_in_decimal, :billing_cycles, :service_period_days, :metered_quantity
10
+ end
11
+
12
+ class CouponsToAdd < Model
13
+ attr_accessor :coupon_id, :apply_till
14
+ end
15
+
16
+ class DiscountsToAdd < Model
17
+ attr_accessor :id, :invoice_name, :type, :percentage, :amount, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at
18
+ end
19
+
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, :index
22
+ end
23
+
24
+ attr_accessor :id, :description, :subscription_id, :effective_from, :status, :created_at, :resource_version,
25
+ :updated_at, :items_to_add, :items_to_update, :coupons_to_add, :discounts_to_add, :item_tiers,
26
+ :items_to_remove, :coupons_to_remove, :discounts_to_remove, :deleted
27
+
28
+ # OPERATIONS
29
+ #-----------
30
+
31
+ def self.create_for_subscription(id, params, env=nil, headers={})
32
+ Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers)
33
+ end
34
+
35
+ def self.retrieve(id, env=nil, headers={})
36
+ Request.send('get', uri_path("ramps",id.to_s), {}, env, headers)
37
+ end
38
+
39
+ def self.delete(id, env=nil, headers={})
40
+ Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers)
41
+ end
42
+
43
+ def self.list(params, env=nil, headers={})
44
+ Request.send_list_request('get', uri_path("ramps"), params, env, headers)
45
+ end
46
+
47
+ end # ~Ramp
48
+ 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, :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
@@ -53,12 +53,12 @@ module ChargeBee
53
53
  :override_relationship, :pause_date, :resume_date, :cancelled_at, :cancel_reason, :affiliate_token,
54
54
  :created_from_ip, :resource_version, :updated_at, :has_scheduled_advance_invoices, :has_scheduled_changes,
55
55
  :payment_source_id, :plan_free_quantity_in_decimal, :plan_amount_in_decimal, :cancel_schedule_created_at,
56
- :offline_payment_method, :channel, :net_term_days, :subscription_items, :item_tiers, :charged_items,
57
- :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code, :addons,
58
- :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address, :referral_info,
59
- :invoice_notes, :meta_data, :metadata, :deleted, :changes_scheduled_at, :contract_term, :cancel_reason_code,
60
- :free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices, :discounts,
61
- :business_entity_id
56
+ :offline_payment_method, :channel, :net_term_days, :active_id, :subscription_items, :item_tiers,
57
+ :charged_items, :due_invoices_count, :due_since, :total_dues, :mrr, :exchange_rate, :base_currency_code,
58
+ :addons, :event_based_addons, :charged_event_based_addons, :coupon, :coupons, :shipping_address,
59
+ :referral_info, :invoice_notes, :meta_data, :metadata, :deleted, :changes_scheduled_at, :contract_term,
60
+ :cancel_reason_code, :free_period, :free_period_unit, :create_pending_invoices, :auto_close_invoices,
61
+ :discounts, :business_entity_id
62
62
 
63
63
  # OPERATIONS
64
64
  #-----------
@@ -207,5 +207,9 @@ module ChargeBee
207
207
  Request.send('post', uri_path("subscriptions",id.to_s,"remove_scheduled_resumption"), {}, env, headers)
208
208
  end
209
209
 
210
+ def self.move(id, params, env=nil, headers={})
211
+ Request.send('post', uri_path("subscriptions",id.to_s,"move"), params, env, headers)
212
+ end
213
+
210
214
  end # ~Subscription
211
215
  end # ~ChargeBee
@@ -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
 
@@ -17,13 +17,18 @@ module ChargeBee
17
17
  attr_accessor :id, :status, :amount, :date
18
18
  end
19
19
 
20
+ class GatewayErrorDetail < Model
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
+ end
23
+
20
24
  attr_accessor :id, :customer_id, :subscription_id, :gateway_account_id, :payment_source_id,
21
25
  :payment_method, :reference_number, :gateway, :type, :date, :settled_at, :exchange_rate, :currency_code,
22
26
  :amount, :id_at_gateway, :status, :fraud_flag, :initiator_type, :three_d_secure, :authorization_reason,
23
- :error_code, :error_text, :voided_at, :resource_version, :updated_at, :fraud_reason, :amount_unused,
24
- :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
27
+ :error_code, :error_text, :voided_at, :resource_version, :updated_at, :fraud_reason, :custom_payment_method_id,
28
+ :amount_unused, :masked_card_number, :reference_transaction_id, :refunded_txn_id, :reference_authorization_id,
25
29
  :amount_capturable, :reversal_transaction_id, :linked_invoices, :linked_credit_notes, :linked_refunds,
26
- :linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details
30
+ :linked_payments, :deleted, :iin, :last4, :merchant_reference_id, :business_entity_id, :payment_method_details,
31
+ :error_detail, :custom_payment_method_name
27
32
 
28
33
  # OPERATIONS
29
34
  #-----------
@@ -8,7 +8,7 @@ module ChargeBee
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
10
  :is_voided, :voided_at, :unit_amount_in_decimal, :quantity_in_decimal, :amount_in_decimal, :updated_at,
11
- :tiers, :is_advance_charge, :deleted
11
+ :tiers, :is_advance_charge, :business_entity_id, :deleted
12
12
 
13
13
  # OPERATIONS
14
14
  #-----------
@@ -4,14 +4,14 @@ module ChargeBee
4
4
  IDEMPOTENCY_REPLAYED_HEADER = :chargebee_idempotency_replayed
5
5
 
6
6
  def initialize(response, rheaders = nil)
7
- @response = response
7
+ @response = response
8
8
  @rheaders = rheaders
9
9
  end
10
10
 
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
@@ -45,7 +45,7 @@ module ChargeBee
45
45
 
46
46
  def customer()
47
47
  customer = get(:customer, Customer,
48
- {:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :entity_identifiers => Customer::EntityIdentifier, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
48
+ {:billing_address => Customer::BillingAddress, :referral_urls => Customer::ReferralUrl, :contacts => Customer::Contact, :payment_method => Customer::PaymentMethod, :balances => Customer::Balance, :entity_identifiers => Customer::EntityIdentifier, :tax_providers_fields => Customer::TaxProvidersField, :relationship => Customer::Relationship, :parent_account_access => Customer::ParentAccountAccess, :child_account_access => Customer::ChildAccountAccess});
49
49
  return customer;
50
50
  end
51
51
 
@@ -66,7 +66,7 @@ module ChargeBee
66
66
 
67
67
  def payment_source()
68
68
  payment_source = get(:payment_source, PaymentSource,
69
- {:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :mandates => PaymentSource::Mandate});
69
+ {:card => PaymentSource::Card, :bank_account => PaymentSource::BankAccount, :cust_voucher_source => PaymentSource::CustVoucherSource, :billing_address => PaymentSource::BillingAddress, :amazon_payment => PaymentSource::AmazonPayment, :upi => PaymentSource::Upi, :paypal => PaymentSource::Paypal, :venmo => PaymentSource::Venmo, :klarna_pay_now => PaymentSource::KlarnaPayNow, :mandates => PaymentSource::Mandate});
70
70
  return payment_source;
71
71
  end
72
72
 
@@ -132,7 +132,7 @@ module ChargeBee
132
132
 
133
133
  def transaction()
134
134
  transaction = get(:transaction, Transaction,
135
- {:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment});
135
+ {:linked_invoices => Transaction::LinkedInvoice, :linked_credit_notes => Transaction::LinkedCreditNote, :linked_refunds => Transaction::LinkedRefund, :linked_payments => Transaction::LinkedPayment, :gateway_error_detail => Transaction::GatewayErrorDetail});
136
136
  return transaction;
137
137
  end
138
138
 
@@ -187,13 +187,13 @@ module ChargeBee
187
187
 
188
188
  def plan()
189
189
  plan = get(:plan, Plan,
190
- {:tiers => Plan::Tier, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
190
+ {:tiers => Plan::Tier, :tax_providers_fields => Plan::TaxProvidersField, :applicable_addons => Plan::ApplicableAddon, :attached_addons => Plan::AttachedAddon, :event_based_addons => Plan::EventBasedAddon});
191
191
  return plan;
192
192
  end
193
193
 
194
194
  def addon()
195
195
  addon = get(:addon, Addon,
196
- {:tiers => Addon::Tier});
196
+ {:tiers => Addon::Tier, :tax_providers_fields => Addon::TaxProvidersField});
197
197
  return addon;
198
198
  end
199
199
 
@@ -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;
@@ -283,9 +288,20 @@ module ChargeBee
283
288
  return item;
284
289
  end
285
290
 
291
+ def price_variant()
292
+ price_variant = get(:price_variant, PriceVariant,
293
+ {:attributes => PriceVariant::Attribute});
294
+ return price_variant;
295
+ end
296
+
297
+ def attribute()
298
+ attribute = get(:attribute, Attribute);
299
+ return attribute;
300
+ end
301
+
286
302
  def item_price()
287
303
  item_price = get(:item_price, ItemPrice,
288
- {:tiers => ItemPrice::Tier, :tax_detail => ItemPrice::TaxDetail, :accounting_detail => ItemPrice::AccountingDetail});
304
+ {:tiers => ItemPrice::Tier, :tax_detail => ItemPrice::TaxDetail, :tax_providers_fields => ItemPrice::TaxProvidersField, :accounting_detail => ItemPrice::AccountingDetail});
289
305
  return item_price;
290
306
  end
291
307
 
@@ -318,6 +334,12 @@ module ChargeBee
318
334
  return impacted_item;
319
335
  end
320
336
 
337
+ def impacted_item_price()
338
+ impacted_item_price = get(:impacted_item_price, ImpactedItemPrice,
339
+ {:download => ImpactedItemPrice::Download});
340
+ return impacted_item_price;
341
+ end
342
+
321
343
  def subscription_entitlement()
322
344
  subscription_entitlement = get(:subscription_entitlement, SubscriptionEntitlement,
323
345
  {:component => SubscriptionEntitlement::Component});
@@ -329,6 +351,11 @@ module ChargeBee
329
351
  return item_entitlement;
330
352
  end
331
353
 
354
+ def entitlement()
355
+ entitlement = get(:entitlement, Entitlement);
356
+ return entitlement;
357
+ end
358
+
332
359
  def in_app_subscription()
333
360
  in_app_subscription = get(:in_app_subscription, InAppSubscription);
334
361
  return in_app_subscription;
@@ -355,54 +382,77 @@ module ChargeBee
355
382
  return payment_voucher;
356
383
  end
357
384
 
358
- def unbilled_charges()
359
- unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
360
- {:tiers => UnbilledCharge::Tier});
361
- return unbilled_charges;
385
+ def ramp()
386
+ ramp = get(:ramp, Ramp,
387
+ {:items_to_add => Ramp::ItemsToAdd, :items_to_update => Ramp::ItemsToUpdate, :coupons_to_add => Ramp::CouponsToAdd, :discounts_to_add => Ramp::DiscountsToAdd, :item_tiers => Ramp::ItemTier});
388
+ return ramp;
362
389
  end
363
-
364
- def credit_notes()
365
- credit_notes = get_list(:credit_notes, CreditNote,
366
- {: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});
367
- return credit_notes;
390
+
391
+ def installment_config()
392
+ installment_config = get(:installment_config, InstallmentConfig,
393
+ {:installments => InstallmentConfig::Installment});
394
+ return installment_config;
368
395
  end
369
-
370
- def advance_invoice_schedules()
396
+
397
+ def installment()
398
+ installment = get(:installment, Installment);
399
+ return installment;
400
+ end
401
+
402
+ def installment_detail()
403
+ installment_detail = get(:installment_detail, InstallmentDetail,
404
+ {:installments => InstallmentDetail::Installment});
405
+ return installment_detail;
406
+ end
407
+
408
+ def advance_invoice_schedules()
371
409
  advance_invoice_schedules = get_list(:advance_invoice_schedules, AdvanceInvoiceSchedule,
372
410
  {:fixed_interval_schedule => AdvanceInvoiceSchedule::FixedIntervalSchedule, :specific_dates_schedule => AdvanceInvoiceSchedule::SpecificDatesSchedule});
373
411
  return advance_invoice_schedules;
374
412
  end
375
-
376
- def hierarchies()
413
+
414
+ def hierarchies()
377
415
  hierarchies = get_list(:hierarchies, Hierarchy,
378
416
  {});
379
417
  return hierarchies;
380
418
  end
381
-
382
- def downloads()
383
- downloads = get_list(:downloads, Download,
384
- {});
385
- return downloads;
386
- end
387
-
388
- def invoices()
419
+
420
+ def invoices()
389
421
  invoices = get_list(:invoices, Invoice,
390
422
  {: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});
391
423
  return invoices;
392
424
  end
393
-
425
+
394
426
  def differential_prices()
395
427
  differential_prices = get_list(:differential_prices, DifferentialPrice,
396
428
  {:tiers => DifferentialPrice::Tier, :parent_periods => DifferentialPrice::ParentPeriod});
397
429
  return differential_prices;
398
430
  end
399
-
400
- def in_app_subscriptions()
431
+
432
+ def credit_notes()
433
+ credit_notes = get_list(:credit_notes, CreditNote,
434
+ {: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});
435
+ return credit_notes;
436
+ end
437
+
438
+ def unbilled_charges()
439
+ unbilled_charges = get_list(:unbilled_charges, UnbilledCharge,
440
+ {:tiers => UnbilledCharge::Tier});
441
+ return unbilled_charges;
442
+ end
443
+
444
+ def downloads()
445
+ downloads = get_list(:downloads, Download,
446
+ {});
447
+ return downloads;
448
+ end
449
+
450
+ def in_app_subscriptions()
401
451
  in_app_subscriptions = get_list(:in_app_subscriptions, InAppSubscription,
402
452
  {});
403
453
  return in_app_subscriptions;
404
454
  end
405
-
455
+
406
456
 
407
457
  def to_s(*args)
408
458
  JSON.pretty_generate(@response)
data/lib/chargebee.rb CHANGED
@@ -31,6 +31,7 @@ require File.dirname(__FILE__) + '/chargebee/models/coupon_set'
31
31
  require File.dirname(__FILE__) + '/chargebee/models/comment'
32
32
  require File.dirname(__FILE__) + '/chargebee/models/portal_session'
33
33
  require File.dirname(__FILE__) + '/chargebee/models/download'
34
+ require File.dirname(__FILE__) + '/chargebee/models/entitlement'
34
35
  require File.dirname(__FILE__) + '/chargebee/models/site_migration_detail'
35
36
  require File.dirname(__FILE__) + '/chargebee/models/resource_migration'
36
37
  require File.dirname(__FILE__) + '/chargebee/models/payment_source'
@@ -65,10 +66,14 @@ require File.dirname(__FILE__) + '/chargebee/models/quoted_subscription.rb'
65
66
  require File.dirname(__FILE__) + '/chargebee/models/subscription_entitlement'
66
67
  require File.dirname(__FILE__) + '/chargebee/models/tax_withheld.rb'
67
68
  require File.dirname(__FILE__) + '/chargebee/models/token.rb'
69
+ require File.dirname(__FILE__) + '/chargebee/models/non_subscription.rb'
70
+ require File.dirname(__FILE__) + '/chargebee/models/price_variant'
71
+ require File.dirname(__FILE__) + '/chargebee/models/installment_detail'
72
+ require File.dirname(__FILE__) + '/chargebee/models/ramp'
68
73
 
69
74
  module ChargeBee
70
75
 
71
- VERSION = '2.33.0'
76
+ VERSION = '2.38.1'
72
77
 
73
78
  @@default_env = nil
74
79
  @@verify_ca_certs = true
@@ -95,7 +100,6 @@ module ChargeBee
95
100
  @@ca_cert_path
96
101
  end
97
102
 
98
-
99
103
  def self.source(source)
100
104
  @@user_agent = @@user_agent + ' ' + source unless source.nil?
101
105
  end
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.33.0
4
+ version: 2.38.1
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: 2023-11-30 00:00:00.000000000 Z
12
+ date: 2024-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json_pure
@@ -119,6 +119,7 @@ files:
119
119
  - lib/chargebee/models/address.rb
120
120
  - lib/chargebee/models/advance_invoice_schedule.rb
121
121
  - lib/chargebee/models/attached_item.rb
122
+ - lib/chargebee/models/attribute.rb
122
123
  - lib/chargebee/models/card.rb
123
124
  - lib/chargebee/models/comment.rb
124
125
  - lib/chargebee/models/contact.rb
@@ -133,17 +134,23 @@ files:
133
134
  - lib/chargebee/models/differential_price.rb
134
135
  - lib/chargebee/models/discount.rb
135
136
  - lib/chargebee/models/download.rb
137
+ - lib/chargebee/models/entitlement.rb
136
138
  - lib/chargebee/models/entitlement_override.rb
137
139
  - lib/chargebee/models/estimate.rb
138
140
  - lib/chargebee/models/event.rb
139
141
  - lib/chargebee/models/export.rb
140
142
  - lib/chargebee/models/feature.rb
143
+ - lib/chargebee/models/gateway_error_detail.rb
141
144
  - lib/chargebee/models/gift.rb
142
145
  - lib/chargebee/models/hierarchy.rb
143
146
  - lib/chargebee/models/hosted_page.rb
144
147
  - lib/chargebee/models/impacted_item.rb
148
+ - lib/chargebee/models/impacted_item_price.rb
145
149
  - lib/chargebee/models/impacted_subscription.rb
146
150
  - lib/chargebee/models/in_app_subscription.rb
151
+ - lib/chargebee/models/installment.rb
152
+ - lib/chargebee/models/installment_config.rb
153
+ - lib/chargebee/models/installment_detail.rb
147
154
  - lib/chargebee/models/invoice.rb
148
155
  - lib/chargebee/models/invoice_estimate.rb
149
156
  - lib/chargebee/models/item.rb
@@ -159,12 +166,14 @@ files:
159
166
  - lib/chargebee/models/payment_voucher.rb
160
167
  - lib/chargebee/models/plan.rb
161
168
  - lib/chargebee/models/portal_session.rb
169
+ - lib/chargebee/models/price_variant.rb
162
170
  - lib/chargebee/models/promotional_credit.rb
163
171
  - lib/chargebee/models/purchase.rb
164
172
  - lib/chargebee/models/quote.rb
165
173
  - lib/chargebee/models/quote_line_group.rb
166
174
  - lib/chargebee/models/quoted_charge.rb
167
175
  - lib/chargebee/models/quoted_subscription.rb
176
+ - lib/chargebee/models/ramp.rb
168
177
  - lib/chargebee/models/resource_migration.rb
169
178
  - lib/chargebee/models/site_migration_detail.rb
170
179
  - lib/chargebee/models/subscription.rb