chargebee 2.76.0 → 2.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +82 -0
  3. data/Gemfile.lock +1 -1
  4. data/VERSION +1 -1
  5. data/chargebee.gemspec +7 -2
  6. data/lib/chargebee/models/addon.rb +7 -7
  7. data/lib/chargebee/models/address.rb +2 -2
  8. data/lib/chargebee/models/alert.rb +16 -8
  9. data/lib/chargebee/models/alert_status.rb +2 -2
  10. data/lib/chargebee/models/async_response.rb +18 -0
  11. data/lib/chargebee/models/async_response_list.rb +10 -0
  12. data/lib/chargebee/models/attached_item.rb +5 -5
  13. data/lib/chargebee/models/business_entity.rb +2 -2
  14. data/lib/chargebee/models/card.rb +5 -5
  15. data/lib/chargebee/models/column_definition.rb +10 -0
  16. data/lib/chargebee/models/comment.rb +4 -4
  17. data/lib/chargebee/models/configuration.rb +1 -1
  18. data/lib/chargebee/models/coupon.rb +9 -9
  19. data/lib/chargebee/models/coupon_code.rb +4 -4
  20. data/lib/chargebee/models/coupon_set.rb +7 -7
  21. data/lib/chargebee/models/credit_note.rb +22 -17
  22. data/lib/chargebee/models/credit_note_estimate.rb +1 -1
  23. data/lib/chargebee/models/currency.rb +6 -6
  24. data/lib/chargebee/models/customer.rb +26 -26
  25. data/lib/chargebee/models/customer_entitlement.rb +1 -1
  26. data/lib/chargebee/models/differential_price.rb +5 -5
  27. data/lib/chargebee/models/entitlement.rb +2 -2
  28. data/lib/chargebee/models/entitlement_override.rb +2 -2
  29. data/lib/chargebee/models/estimate.rb +20 -20
  30. data/lib/chargebee/models/event.rb +2 -2
  31. data/lib/chargebee/models/export.rb +18 -18
  32. data/lib/chargebee/models/feature.rb +9 -9
  33. data/lib/chargebee/models/gift.rb +7 -7
  34. data/lib/chargebee/models/grant_block.rb +3 -3
  35. data/lib/chargebee/models/hosted_page.rb +22 -22
  36. data/lib/chargebee/models/in_app_subscription.rb +4 -4
  37. data/lib/chargebee/models/invoice.rb +48 -44
  38. data/lib/chargebee/models/invoice_estimate.rb +1 -1
  39. data/lib/chargebee/models/item.rb +5 -5
  40. data/lib/chargebee/models/item_entitlement.rb +4 -4
  41. data/lib/chargebee/models/item_family.rb +5 -5
  42. data/lib/chargebee/models/item_price.rb +7 -7
  43. data/lib/chargebee/models/ledger_account_balance.rb +1 -1
  44. data/lib/chargebee/models/ledger_operation.rb +9 -10
  45. data/lib/chargebee/models/meter.rb +18 -0
  46. data/lib/chargebee/models/metered_feature.rb +46 -0
  47. data/lib/chargebee/models/non_subscription.rb +1 -1
  48. data/lib/chargebee/models/offer_event.rb +1 -1
  49. data/lib/chargebee/models/offer_fulfillment.rb +3 -3
  50. data/lib/chargebee/models/omnichannel_one_time_order.rb +2 -2
  51. data/lib/chargebee/models/omnichannel_subscription.rb +4 -4
  52. data/lib/chargebee/models/omnichannel_subscription_item.rb +1 -1
  53. data/lib/chargebee/models/order.rb +12 -12
  54. data/lib/chargebee/models/payment_intent.rb +9 -4
  55. data/lib/chargebee/models/payment_schedule_scheme.rb +3 -3
  56. data/lib/chargebee/models/payment_source.rb +16 -16
  57. data/lib/chargebee/models/payment_voucher.rb +4 -4
  58. data/lib/chargebee/models/personalized_offer.rb +1 -1
  59. data/lib/chargebee/models/plan.rb +7 -7
  60. data/lib/chargebee/models/portal_session.rb +4 -4
  61. data/lib/chargebee/models/price_variant.rb +5 -5
  62. data/lib/chargebee/models/pricing_page_session.rb +2 -2
  63. data/lib/chargebee/models/promotional_credit.rb +5 -5
  64. data/lib/chargebee/models/promotional_grant.rb +1 -1
  65. data/lib/chargebee/models/purchase.rb +2 -2
  66. data/lib/chargebee/models/quote.rb +27 -27
  67. data/lib/chargebee/models/quote_line_group.rb +1 -1
  68. data/lib/chargebee/models/quoted_charge.rb +2 -2
  69. data/lib/chargebee/models/ramp.rb +6 -6
  70. data/lib/chargebee/models/recorded_purchase.rb +2 -2
  71. data/lib/chargebee/models/resource_migration.rb +1 -1
  72. data/lib/chargebee/models/rule.rb +1 -1
  73. data/lib/chargebee/models/site_migration_detail.rb +1 -1
  74. data/lib/chargebee/models/subscription.rb +37 -37
  75. data/lib/chargebee/models/subscription_entitlement.rb +2 -2
  76. data/lib/chargebee/models/time_machine.rb +3 -3
  77. data/lib/chargebee/models/transaction.rb +11 -11
  78. data/lib/chargebee/models/unbilled_charge.rb +6 -6
  79. data/lib/chargebee/models/usage.rb +5 -5
  80. data/lib/chargebee/models/usage_charge.rb +1 -1
  81. data/lib/chargebee/models/usage_event.rb +2 -2
  82. data/lib/chargebee/models/usage_file.rb +2 -2
  83. data/lib/chargebee/models/usage_summary.rb +1 -1
  84. data/lib/chargebee/models/virtual_bank_account.rb +6 -6
  85. data/lib/chargebee/models/webhook_endpoint.rb +5 -5
  86. data/lib/chargebee/result.rb +41 -6
  87. data/lib/chargebee.rb +6 -1
  88. metadata +7 -2
@@ -13,21 +13,21 @@ module ChargeBee
13
13
  options = {
14
14
  :isIdempotent => true
15
15
  }
16
- Request.send('post', uri_path("coupon_codes"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponCode", telemetry_operation: "create")
16
+ Request.send('post', uri_path("coupon_codes"), params, env, headers,nil, false, jsonKeys, options, "couponCode", "create")
17
17
  end
18
18
 
19
19
  def self.retrieve(id, env=nil, headers={})
20
20
  jsonKeys = {
21
21
  }
22
22
  options = {}
23
- Request.send('get', uri_path("coupon_codes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponCode", telemetry_operation: "retrieve")
23
+ Request.send('get', uri_path("coupon_codes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "couponCode", "retrieve")
24
24
  end
25
25
 
26
26
  def self.list(params={}, env=nil, headers={})
27
27
  jsonKeys = {
28
28
  }
29
29
  options = {}
30
- Request.send_list_request('get', uri_path("coupon_codes"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponCode", telemetry_operation: "list")
30
+ Request.send_list_request('get', uri_path("coupon_codes"), params, env, headers,nil, false, jsonKeys, options, "couponCode", "list")
31
31
  end
32
32
 
33
33
  def self.archive(id, env=nil, headers={})
@@ -36,7 +36,7 @@ module ChargeBee
36
36
  options = {
37
37
  :isIdempotent => true
38
38
  }
39
- Request.send('post', uri_path("coupon_codes",id.to_s,"archive"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponCode", telemetry_operation: "archive")
39
+ Request.send('post', uri_path("coupon_codes",id.to_s,"archive"), {}, env, headers,nil, false, jsonKeys, options, "couponCode", "archive")
40
40
  end
41
41
 
42
42
  end # ~CouponCode
@@ -13,7 +13,7 @@ module ChargeBee
13
13
  options = {
14
14
  :isIdempotent => true
15
15
  }
16
- Request.send('post', uri_path("coupon_sets"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "create")
16
+ Request.send('post', uri_path("coupon_sets"), params, env, headers,nil, false, jsonKeys, options, "couponSet", "create")
17
17
  end
18
18
 
19
19
  def self.add_coupon_codes(id, params={}, env=nil, headers={})
@@ -22,21 +22,21 @@ module ChargeBee
22
22
  options = {
23
23
  :isIdempotent => true
24
24
  }
25
- Request.send('post', uri_path("coupon_sets",id.to_s,"add_coupon_codes"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "addCouponCodes")
25
+ Request.send('post', uri_path("coupon_sets",id.to_s,"add_coupon_codes"), params, env, headers,nil, false, jsonKeys, options, "couponSet", "addCouponCodes")
26
26
  end
27
27
 
28
28
  def self.list(params={}, env=nil, headers={})
29
29
  jsonKeys = {
30
30
  }
31
31
  options = {}
32
- Request.send_list_request('get', uri_path("coupon_sets"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "list")
32
+ Request.send_list_request('get', uri_path("coupon_sets"), params, env, headers,nil, false, jsonKeys, options, "couponSet", "list")
33
33
  end
34
34
 
35
35
  def self.retrieve(id, env=nil, headers={})
36
36
  jsonKeys = {
37
37
  }
38
38
  options = {}
39
- Request.send('get', uri_path("coupon_sets",id.to_s), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "retrieve")
39
+ Request.send('get', uri_path("coupon_sets",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "couponSet", "retrieve")
40
40
  end
41
41
 
42
42
  def self.update(id, params={}, env=nil, headers={})
@@ -46,7 +46,7 @@ module ChargeBee
46
46
  options = {
47
47
  :isIdempotent => true
48
48
  }
49
- Request.send('post', uri_path("coupon_sets",id.to_s,"update"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "update")
49
+ Request.send('post', uri_path("coupon_sets",id.to_s,"update"), params, env, headers,nil, false, jsonKeys, options, "couponSet", "update")
50
50
  end
51
51
 
52
52
  def self.delete(id, env=nil, headers={})
@@ -55,7 +55,7 @@ module ChargeBee
55
55
  options = {
56
56
  :isIdempotent => true
57
57
  }
58
- Request.send('post', uri_path("coupon_sets",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "delete")
58
+ Request.send('post', uri_path("coupon_sets",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "couponSet", "delete")
59
59
  end
60
60
 
61
61
  def self.delete_unused_coupon_codes(id, env=nil, headers={})
@@ -64,7 +64,7 @@ module ChargeBee
64
64
  options = {
65
65
  :isIdempotent => true
66
66
  }
67
- Request.send('post', uri_path("coupon_sets",id.to_s,"delete_unused_coupon_codes"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "couponSet", telemetry_operation: "deleteUnusedCouponCodes")
67
+ Request.send('post', uri_path("coupon_sets",id.to_s,"delete_unused_coupon_codes"), {}, env, headers,nil, false, jsonKeys, options, "couponSet", "deleteUnusedCouponCodes")
68
68
  end
69
69
 
70
70
  end # ~CouponSet
@@ -2,7 +2,7 @@ module ChargeBee
2
2
  class CreditNote < Model
3
3
 
4
4
  class LineItem < Model
5
- attr_accessor :id, :subscription_id, :date_from, :date_to, :unit_amount, :quantity, :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, :metered, :is_percentage_pricing, :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, :metered, :is_percentage_pricing, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id, :proration_mode
6
6
  end
7
7
 
8
8
  class LineItemTier < Model
@@ -41,6 +41,10 @@ module ChargeBee
41
41
  attr_accessor :invoice_id, :allocated_amount, :allocated_at, :invoice_date, :invoice_status, :tax_application
42
42
  end
43
43
 
44
+ class ExchangeRate < Model
45
+ attr_accessor :currency_code, :rate
46
+ end
47
+
44
48
  class ShippingAddress < Model
45
49
  attr_accessor :first_name, :last_name, :email, :company, :phone, :line1, :line2, :line3, :city, :state_code, :state, :country, :zip, :validation_status
46
50
  end
@@ -63,8 +67,9 @@ module ChargeBee
63
67
  :channel, :line_items_next_offset, :sub_total, :sub_total_in_local_currency, :total_in_local_currency,
64
68
  :local_currency_code, :round_off_amount, :fractional_correction, :notes, :line_items, :line_item_tiers,
65
69
  :line_item_discounts, :line_item_taxes, :line_item_addresses, :discounts, :taxes, :tax_origin,
66
- :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate, :create_reason_code,
67
- :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address, :einvoice, :site_details_at_creation
70
+ :linked_refunds, :allocations, :deleted, :tax_category, :local_currency_exchange_rate, :exchange_rates,
71
+ :create_reason_code, :vat_number_prefix, :business_entity_id, :shipping_address, :billing_address,
72
+ :einvoice, :site_details_at_creation
68
73
 
69
74
  # OPERATIONS
70
75
  #-----------
@@ -75,14 +80,14 @@ module ChargeBee
75
80
  options = {
76
81
  :isIdempotent => true
77
82
  }
78
- Request.send('post', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "create")
83
+ Request.send('post', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "create")
79
84
  end
80
85
 
81
86
  def self.retrieve(id, params={}, env=nil, headers={})
82
87
  jsonKeys = {
83
88
  }
84
89
  options = {}
85
- Request.send('get', uri_path("credit_notes",id.to_s), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "retrieve")
90
+ Request.send('get', uri_path("credit_notes",id.to_s), params, env, headers,nil, false, jsonKeys, options, "creditNote", "retrieve")
86
91
  end
87
92
 
88
93
  def self.pdf(id, params={}, env=nil, headers={})
@@ -91,14 +96,14 @@ module ChargeBee
91
96
  options = {
92
97
  :isIdempotent => true
93
98
  }
94
- Request.send('post', uri_path("credit_notes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "pdf")
99
+ Request.send('post', uri_path("credit_notes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "pdf")
95
100
  end
96
101
 
97
102
  def self.download_einvoice(id, env=nil, headers={})
98
103
  jsonKeys = {
99
104
  }
100
105
  options = {}
101
- Request.send('get', uri_path("credit_notes",id.to_s,"download_einvoice"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "downloadEinvoice")
106
+ Request.send('get', uri_path("credit_notes",id.to_s,"download_einvoice"), {}, env, headers,nil, false, jsonKeys, options, "creditNote", "downloadEinvoice")
102
107
  end
103
108
 
104
109
  def self.refund(id, params={}, env=nil, headers={})
@@ -107,7 +112,7 @@ module ChargeBee
107
112
  options = {
108
113
  :isIdempotent => true
109
114
  }
110
- Request.send('post', uri_path("credit_notes",id.to_s,"refund"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "refund")
115
+ Request.send('post', uri_path("credit_notes",id.to_s,"refund"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "refund")
111
116
  end
112
117
 
113
118
  def self.record_refund(id, params, env=nil, headers={})
@@ -116,7 +121,7 @@ module ChargeBee
116
121
  options = {
117
122
  :isIdempotent => true
118
123
  }
119
- Request.send('post', uri_path("credit_notes",id.to_s,"record_refund"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "recordRefund")
124
+ Request.send('post', uri_path("credit_notes",id.to_s,"record_refund"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "recordRefund")
120
125
  end
121
126
 
122
127
  def self.void_credit_note(id, params={}, env=nil, headers={})
@@ -125,14 +130,14 @@ module ChargeBee
125
130
  options = {
126
131
  :isIdempotent => true
127
132
  }
128
- Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "voidCreditNote")
133
+ Request.send('post', uri_path("credit_notes",id.to_s,"void"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "voidCreditNote")
129
134
  end
130
135
 
131
136
  def self.list(params={}, env=nil, headers={})
132
137
  jsonKeys = {
133
138
  }
134
139
  options = {}
135
- Request.send_list_request('get', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "list")
140
+ Request.send_list_request('get', uri_path("credit_notes"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "list")
136
141
  end
137
142
 
138
143
  # @deprecated This method is deprecated and will be removed in a future version.
@@ -140,7 +145,7 @@ module ChargeBee
140
145
  jsonKeys = {
141
146
  }
142
147
  options = {}
143
- Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "creditNotesForCustomer")
148
+ Request.send('get', uri_path("customers",id.to_s,"credit_notes"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "creditNotesForCustomer")
144
149
  end
145
150
 
146
151
  def self.delete(id, params={}, env=nil, headers={})
@@ -149,7 +154,7 @@ module ChargeBee
149
154
  options = {
150
155
  :isIdempotent => true
151
156
  }
152
- Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "delete")
157
+ Request.send('post', uri_path("credit_notes",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "delete")
153
158
  end
154
159
 
155
160
  def self.remove_tax_withheld_refund(id, params, env=nil, headers={})
@@ -158,7 +163,7 @@ module ChargeBee
158
163
  options = {
159
164
  :isIdempotent => true
160
165
  }
161
- Request.send('post', uri_path("credit_notes",id.to_s,"remove_tax_withheld_refund"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "removeTaxWithheldRefund")
166
+ Request.send('post', uri_path("credit_notes",id.to_s,"remove_tax_withheld_refund"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "removeTaxWithheldRefund")
162
167
  end
163
168
 
164
169
  def self.resend_einvoice(id, env=nil, headers={})
@@ -167,7 +172,7 @@ module ChargeBee
167
172
  options = {
168
173
  :isIdempotent => true
169
174
  }
170
- Request.send('post', uri_path("credit_notes",id.to_s,"resend_einvoice"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "resendEinvoice")
175
+ Request.send('post', uri_path("credit_notes",id.to_s,"resend_einvoice"), {}, env, headers,nil, false, jsonKeys, options, "creditNote", "resendEinvoice")
171
176
  end
172
177
 
173
178
  def self.send_einvoice(id, env=nil, headers={})
@@ -176,7 +181,7 @@ module ChargeBee
176
181
  options = {
177
182
  :isIdempotent => true
178
183
  }
179
- Request.send('post', uri_path("credit_notes",id.to_s,"send_einvoice"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "sendEinvoice")
184
+ Request.send('post', uri_path("credit_notes",id.to_s,"send_einvoice"), {}, env, headers,nil, false, jsonKeys, options, "creditNote", "sendEinvoice")
180
185
  end
181
186
 
182
187
  def self.import_credit_note(params, env=nil, headers={})
@@ -185,7 +190,7 @@ module ChargeBee
185
190
  options = {
186
191
  :isIdempotent => true
187
192
  }
188
- Request.send('post', uri_path("credit_notes","import_credit_note"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "creditNote", telemetry_operation: "importCreditNote")
193
+ Request.send('post', uri_path("credit_notes","import_credit_note"), params, env, headers,nil, false, jsonKeys, options, "creditNote", "importCreditNote")
189
194
  end
190
195
 
191
196
  end # ~CreditNote
@@ -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, :metered, :is_percentage_pricing, :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, :metered, :is_percentage_pricing, :reference_line_item_id, :description, :entity_description, :entity_type, :tax_exempt_reason, :entity_id, :customer_id, :proration_mode
6
6
  end
7
7
 
8
8
  class LineItemTier < Model
@@ -10,14 +10,14 @@ module ChargeBee
10
10
  jsonKeys = {
11
11
  }
12
12
  options = {}
13
- Request.send_list_request('get', uri_path("currencies","list"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "currency", telemetry_operation: "list")
13
+ Request.send_list_request('get', uri_path("currencies","list"), params, env, headers,nil, false, jsonKeys, options, "currency", "list")
14
14
  end
15
15
 
16
16
  def self.retrieve(id, env=nil, headers={})
17
17
  jsonKeys = {
18
18
  }
19
19
  options = {}
20
- Request.send('get', uri_path("currencies",id.to_s), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "currency", telemetry_operation: "retrieve")
20
+ Request.send('get', uri_path("currencies",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "currency", "retrieve")
21
21
  end
22
22
 
23
23
  def self.create(params, env=nil, headers={})
@@ -26,7 +26,7 @@ module ChargeBee
26
26
  options = {
27
27
  :isIdempotent => true
28
28
  }
29
- Request.send('post', uri_path("currencies"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "currency", telemetry_operation: "create")
29
+ Request.send('post', uri_path("currencies"), params, env, headers,nil, false, jsonKeys, options, "currency", "create")
30
30
  end
31
31
 
32
32
  def self.update(id, params, env=nil, headers={})
@@ -35,7 +35,7 @@ module ChargeBee
35
35
  options = {
36
36
  :isIdempotent => true
37
37
  }
38
- Request.send('post', uri_path("currencies",id.to_s), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "currency", telemetry_operation: "update")
38
+ Request.send('post', uri_path("currencies",id.to_s), params, env, headers,nil, false, jsonKeys, options, "currency", "update")
39
39
  end
40
40
 
41
41
  def self.add_schedule(id, params, env=nil, headers={})
@@ -44,7 +44,7 @@ module ChargeBee
44
44
  options = {
45
45
  :isIdempotent => true
46
46
  }
47
- Request.send('post', uri_path("currencies",id.to_s,"add_schedule"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "currency", telemetry_operation: "addSchedule")
47
+ Request.send('post', uri_path("currencies",id.to_s,"add_schedule"), params, env, headers,nil, false, jsonKeys, options, "currency", "addSchedule")
48
48
  end
49
49
 
50
50
  def self.remove_schedule(id, env=nil, headers={})
@@ -53,7 +53,7 @@ module ChargeBee
53
53
  options = {
54
54
  :isIdempotent => true
55
55
  }
56
- Request.send('post', uri_path("currencies",id.to_s,"remove_schedule"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "currency", telemetry_operation: "removeSchedule")
56
+ Request.send('post', uri_path("currencies",id.to_s,"remove_schedule"), {}, env, headers,nil, false, jsonKeys, options, "currency", "removeSchedule")
57
57
  end
58
58
 
59
59
  end # ~Currency
@@ -67,21 +67,21 @@ module ChargeBee
67
67
  options = {
68
68
  :isIdempotent => true
69
69
  }
70
- Request.send('post', uri_path("customers"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "create")
70
+ Request.send('post', uri_path("customers"), params, env, headers,nil, false, jsonKeys, options, "customer", "create")
71
71
  end
72
72
 
73
73
  def self.list(params={}, env=nil, headers={})
74
74
  jsonKeys = {
75
75
  }
76
76
  options = {}
77
- Request.send_list_request('get', uri_path("customers"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "list")
77
+ Request.send_list_request('get', uri_path("customers"), params, env, headers,nil, false, jsonKeys, options, "customer", "list")
78
78
  end
79
79
 
80
80
  def self.retrieve(id, env=nil, headers={})
81
81
  jsonKeys = {
82
82
  }
83
83
  options = {}
84
- Request.send('get', uri_path("customers",id.to_s), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "retrieve")
84
+ Request.send('get', uri_path("customers",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "customer", "retrieve")
85
85
  end
86
86
 
87
87
  def self.update(id, params={}, env=nil, headers={})
@@ -92,7 +92,7 @@ module ChargeBee
92
92
  options = {
93
93
  :isIdempotent => true
94
94
  }
95
- Request.send('post', uri_path("customers",id.to_s), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "update")
95
+ Request.send('post', uri_path("customers",id.to_s), params, env, headers,nil, false, jsonKeys, options, "customer", "update")
96
96
  end
97
97
 
98
98
  def self.update_payment_method(id, params, env=nil, headers={})
@@ -102,7 +102,7 @@ module ChargeBee
102
102
  options = {
103
103
  :isIdempotent => true
104
104
  }
105
- Request.send('post', uri_path("customers",id.to_s,"update_payment_method"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "updatePaymentMethod")
105
+ Request.send('post', uri_path("customers",id.to_s,"update_payment_method"), params, env, headers,nil, false, jsonKeys, options, "customer", "updatePaymentMethod")
106
106
  end
107
107
 
108
108
  def self.update_billing_info(id, params={}, env=nil, headers={})
@@ -111,14 +111,14 @@ module ChargeBee
111
111
  options = {
112
112
  :isIdempotent => true
113
113
  }
114
- Request.send('post', uri_path("customers",id.to_s,"update_billing_info"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "updateBillingInfo")
114
+ Request.send('post', uri_path("customers",id.to_s,"update_billing_info"), params, env, headers,nil, false, jsonKeys, options, "customer", "updateBillingInfo")
115
115
  end
116
116
 
117
117
  def self.contacts_for_customer(id, params={}, env=nil, headers={})
118
118
  jsonKeys = {
119
119
  }
120
120
  options = {}
121
- Request.send('get', uri_path("customers",id.to_s,"contacts"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "contactsForCustomer")
121
+ Request.send('get', uri_path("customers",id.to_s,"contacts"), params, env, headers,nil, false, jsonKeys, options, "customer", "contactsForCustomer")
122
122
  end
123
123
 
124
124
  def self.assign_payment_role(id, params, env=nil, headers={})
@@ -127,7 +127,7 @@ module ChargeBee
127
127
  options = {
128
128
  :isIdempotent => true
129
129
  }
130
- Request.send('post', uri_path("customers",id.to_s,"assign_payment_role"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "assignPaymentRole")
130
+ Request.send('post', uri_path("customers",id.to_s,"assign_payment_role"), params, env, headers,nil, false, jsonKeys, options, "customer", "assignPaymentRole")
131
131
  end
132
132
 
133
133
  def self.add_contact(id, params, env=nil, headers={})
@@ -136,7 +136,7 @@ module ChargeBee
136
136
  options = {
137
137
  :isIdempotent => true
138
138
  }
139
- Request.send('post', uri_path("customers",id.to_s,"add_contact"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "addContact")
139
+ Request.send('post', uri_path("customers",id.to_s,"add_contact"), params, env, headers,nil, false, jsonKeys, options, "customer", "addContact")
140
140
  end
141
141
 
142
142
  def self.update_contact(id, params, env=nil, headers={})
@@ -145,7 +145,7 @@ module ChargeBee
145
145
  options = {
146
146
  :isIdempotent => true
147
147
  }
148
- Request.send('post', uri_path("customers",id.to_s,"update_contact"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "updateContact")
148
+ Request.send('post', uri_path("customers",id.to_s,"update_contact"), params, env, headers,nil, false, jsonKeys, options, "customer", "updateContact")
149
149
  end
150
150
 
151
151
  def self.delete_contact(id, params, env=nil, headers={})
@@ -154,7 +154,7 @@ module ChargeBee
154
154
  options = {
155
155
  :isIdempotent => true
156
156
  }
157
- Request.send('post', uri_path("customers",id.to_s,"delete_contact"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "deleteContact")
157
+ Request.send('post', uri_path("customers",id.to_s,"delete_contact"), params, env, headers,nil, false, jsonKeys, options, "customer", "deleteContact")
158
158
  end
159
159
 
160
160
  # @deprecated This method is deprecated and will be removed in a future version.
@@ -164,7 +164,7 @@ module ChargeBee
164
164
  options = {
165
165
  :isIdempotent => true
166
166
  }
167
- Request.send('post', uri_path("customers",id.to_s,"add_promotional_credits"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "addPromotionalCredits")
167
+ Request.send('post', uri_path("customers",id.to_s,"add_promotional_credits"), params, env, headers,nil, false, jsonKeys, options, "customer", "addPromotionalCredits")
168
168
  end
169
169
 
170
170
  # @deprecated This method is deprecated and will be removed in a future version.
@@ -174,7 +174,7 @@ module ChargeBee
174
174
  options = {
175
175
  :isIdempotent => true
176
176
  }
177
- Request.send('post', uri_path("customers",id.to_s,"deduct_promotional_credits"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "deductPromotionalCredits")
177
+ Request.send('post', uri_path("customers",id.to_s,"deduct_promotional_credits"), params, env, headers,nil, false, jsonKeys, options, "customer", "deductPromotionalCredits")
178
178
  end
179
179
 
180
180
  # @deprecated This method is deprecated and will be removed in a future version.
@@ -184,7 +184,7 @@ module ChargeBee
184
184
  options = {
185
185
  :isIdempotent => true
186
186
  }
187
- Request.send('post', uri_path("customers",id.to_s,"set_promotional_credits"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "setPromotionalCredits")
187
+ Request.send('post', uri_path("customers",id.to_s,"set_promotional_credits"), params, env, headers,nil, false, jsonKeys, options, "customer", "setPromotionalCredits")
188
188
  end
189
189
 
190
190
  def self.record_excess_payment(id, params, env=nil, headers={})
@@ -193,7 +193,7 @@ module ChargeBee
193
193
  options = {
194
194
  :isIdempotent => true
195
195
  }
196
- Request.send('post', uri_path("customers",id.to_s,"record_excess_payment"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "recordExcessPayment")
196
+ Request.send('post', uri_path("customers",id.to_s,"record_excess_payment"), params, env, headers,nil, false, jsonKeys, options, "customer", "recordExcessPayment")
197
197
  end
198
198
 
199
199
  def self.collect_payment(id, params, env=nil, headers={})
@@ -203,7 +203,7 @@ module ChargeBee
203
203
  options = {
204
204
  :isIdempotent => true
205
205
  }
206
- Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "collectPayment")
206
+ Request.send('post', uri_path("customers",id.to_s,"collect_payment"), params, env, headers,nil, false, jsonKeys, options, "customer", "collectPayment")
207
207
  end
208
208
 
209
209
  def self.delete(id, params={}, env=nil, headers={})
@@ -212,7 +212,7 @@ module ChargeBee
212
212
  options = {
213
213
  :isIdempotent => true
214
214
  }
215
- Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "delete")
215
+ Request.send('post', uri_path("customers",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, "customer", "delete")
216
216
  end
217
217
 
218
218
  def self.move(params, env=nil, headers={})
@@ -221,7 +221,7 @@ module ChargeBee
221
221
  options = {
222
222
  :isIdempotent => true
223
223
  }
224
- Request.send('post', uri_path("customers","move"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "move")
224
+ Request.send('post', uri_path("customers","move"), params, env, headers,nil, false, jsonKeys, options, "customer", "move")
225
225
  end
226
226
 
227
227
  def self.change_billing_date(id, params={}, env=nil, headers={})
@@ -230,7 +230,7 @@ module ChargeBee
230
230
  options = {
231
231
  :isIdempotent => true
232
232
  }
233
- Request.send('post', uri_path("customers",id.to_s,"change_billing_date"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "changeBillingDate")
233
+ Request.send('post', uri_path("customers",id.to_s,"change_billing_date"), params, env, headers,nil, false, jsonKeys, options, "customer", "changeBillingDate")
234
234
  end
235
235
 
236
236
  def self.merge(params, env=nil, headers={})
@@ -239,7 +239,7 @@ module ChargeBee
239
239
  options = {
240
240
  :isIdempotent => true
241
241
  }
242
- Request.send('post', uri_path("customers","merge"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "merge")
242
+ Request.send('post', uri_path("customers","merge"), params, env, headers,nil, false, jsonKeys, options, "customer", "merge")
243
243
  end
244
244
 
245
245
  def self.clear_personal_data(id, env=nil, headers={})
@@ -248,7 +248,7 @@ module ChargeBee
248
248
  options = {
249
249
  :isIdempotent => true
250
250
  }
251
- Request.send('post', uri_path("customers",id.to_s,"clear_personal_data"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "clearPersonalData")
251
+ Request.send('post', uri_path("customers",id.to_s,"clear_personal_data"), {}, env, headers,nil, false, jsonKeys, options, "customer", "clearPersonalData")
252
252
  end
253
253
 
254
254
  def self.relationships(id, params={}, env=nil, headers={})
@@ -257,7 +257,7 @@ module ChargeBee
257
257
  options = {
258
258
  :isIdempotent => true
259
259
  }
260
- Request.send('post', uri_path("customers",id.to_s,"relationships"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "relationships")
260
+ Request.send('post', uri_path("customers",id.to_s,"relationships"), params, env, headers,nil, false, jsonKeys, options, "customer", "relationships")
261
261
  end
262
262
 
263
263
  def self.delete_relationship(id, env=nil, headers={})
@@ -266,21 +266,21 @@ module ChargeBee
266
266
  options = {
267
267
  :isIdempotent => true
268
268
  }
269
- Request.send('post', uri_path("customers",id.to_s,"delete_relationship"), {}, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "deleteRelationship")
269
+ Request.send('post', uri_path("customers",id.to_s,"delete_relationship"), {}, env, headers,nil, false, jsonKeys, options, "customer", "deleteRelationship")
270
270
  end
271
271
 
272
272
  def self.hierarchy(id, params, env=nil, headers={})
273
273
  jsonKeys = {
274
274
  }
275
275
  options = {}
276
- Request.send('get', uri_path("customers",id.to_s,"hierarchy"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "hierarchy")
276
+ Request.send('get', uri_path("customers",id.to_s,"hierarchy"), params, env, headers,nil, false, jsonKeys, options, "customer", "hierarchy")
277
277
  end
278
278
 
279
279
  def self.list_hierarchy_detail(id, params, env=nil, headers={})
280
280
  jsonKeys = {
281
281
  }
282
282
  options = {}
283
- Request.send('get', uri_path("customers",id.to_s,"hierarchy_detail"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "listHierarchyDetail")
283
+ Request.send('get', uri_path("customers",id.to_s,"hierarchy_detail"), params, env, headers,nil, false, jsonKeys, options, "customer", "listHierarchyDetail")
284
284
  end
285
285
 
286
286
  def self.update_hierarchy_settings(id, params={}, env=nil, headers={})
@@ -289,7 +289,7 @@ module ChargeBee
289
289
  options = {
290
290
  :isIdempotent => true
291
291
  }
292
- Request.send('post', uri_path("customers",id.to_s,"update_hierarchy_settings"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customer", telemetry_operation: "updateHierarchySettings")
292
+ Request.send('post', uri_path("customers",id.to_s,"update_hierarchy_settings"), params, env, headers,nil, false, jsonKeys, options, "customer", "updateHierarchySettings")
293
293
  end
294
294
 
295
295
  end # ~Customer
@@ -10,7 +10,7 @@ module ChargeBee
10
10
  jsonKeys = {
11
11
  }
12
12
  options = {}
13
- Request.send('get', uri_path("customers",id.to_s,"customer_entitlements"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "customerEntitlement", telemetry_operation: "entitlementsForCustomer")
13
+ Request.send('get', uri_path("customers",id.to_s,"customer_entitlements"), params, env, headers,nil, false, jsonKeys, options, "customerEntitlement", "entitlementsForCustomer")
14
14
  end
15
15
 
16
16
  end # ~CustomerEntitlement
@@ -23,14 +23,14 @@ module ChargeBee
23
23
  options = {
24
24
  :isIdempotent => true
25
25
  }
26
- Request.send('post', uri_path("item_prices",id.to_s,"differential_prices"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "differentialPrice", telemetry_operation: "create")
26
+ Request.send('post', uri_path("item_prices",id.to_s,"differential_prices"), params, env, headers,nil, false, jsonKeys, options, "differentialPrice", "create")
27
27
  end
28
28
 
29
29
  def self.retrieve(id, params, env=nil, headers={})
30
30
  jsonKeys = {
31
31
  }
32
32
  options = {}
33
- Request.send('get', uri_path("differential_prices",id.to_s), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "differentialPrice", telemetry_operation: "retrieve")
33
+ Request.send('get', uri_path("differential_prices",id.to_s), params, env, headers,nil, false, jsonKeys, options, "differentialPrice", "retrieve")
34
34
  end
35
35
 
36
36
  def self.update(id, params, env=nil, headers={})
@@ -40,7 +40,7 @@ module ChargeBee
40
40
  options = {
41
41
  :isIdempotent => true
42
42
  }
43
- Request.send('post', uri_path("differential_prices",id.to_s), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "differentialPrice", telemetry_operation: "update")
43
+ Request.send('post', uri_path("differential_prices",id.to_s), params, env, headers,nil, false, jsonKeys, options, "differentialPrice", "update")
44
44
  end
45
45
 
46
46
  def self.delete(id, params, env=nil, headers={})
@@ -49,14 +49,14 @@ module ChargeBee
49
49
  options = {
50
50
  :isIdempotent => true
51
51
  }
52
- Request.send('post', uri_path("differential_prices",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "differentialPrice", telemetry_operation: "delete")
52
+ Request.send('post', uri_path("differential_prices",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, "differentialPrice", "delete")
53
53
  end
54
54
 
55
55
  def self.list(params={}, env=nil, headers={})
56
56
  jsonKeys = {
57
57
  }
58
58
  options = {}
59
- Request.send_list_request('get', uri_path("differential_prices"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "differentialPrice", telemetry_operation: "list")
59
+ Request.send_list_request('get', uri_path("differential_prices"), params, env, headers,nil, false, jsonKeys, options, "differentialPrice", "list")
60
60
  end
61
61
 
62
62
  end # ~DifferentialPrice
@@ -10,7 +10,7 @@ module ChargeBee
10
10
  jsonKeys = {
11
11
  }
12
12
  options = {}
13
- Request.send_list_request('get', uri_path("entitlements"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "entitlement", telemetry_operation: "list")
13
+ Request.send_list_request('get', uri_path("entitlements"), params, env, headers,nil, false, jsonKeys, options, "entitlement", "list")
14
14
  end
15
15
 
16
16
  def self.create(params, env=nil, headers={})
@@ -19,7 +19,7 @@ module ChargeBee
19
19
  options = {
20
20
  :isIdempotent => true
21
21
  }
22
- Request.send('post', uri_path("entitlements"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "entitlement", telemetry_operation: "create")
22
+ Request.send('post', uri_path("entitlements"), params, env, headers,nil, false, jsonKeys, options, "entitlement", "create")
23
23
  end
24
24
 
25
25
  end # ~Entitlement
@@ -13,14 +13,14 @@ module ChargeBee
13
13
  options = {
14
14
  :isIdempotent => true
15
15
  }
16
- Request.send('post', uri_path("subscriptions",id.to_s,"entitlement_overrides"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "entitlementOverride", telemetry_operation: "addEntitlementOverrideForSubscription")
16
+ Request.send('post', uri_path("subscriptions",id.to_s,"entitlement_overrides"), params, env, headers,nil, false, jsonKeys, options, "entitlementOverride", "addEntitlementOverrideForSubscription")
17
17
  end
18
18
 
19
19
  def self.list_entitlement_override_for_subscription(id, params={}, env=nil, headers={})
20
20
  jsonKeys = {
21
21
  }
22
22
  options = {}
23
- Request.send('get', uri_path("subscriptions",id.to_s,"entitlement_overrides"), params, env, headers,nil, false, jsonKeys, options, telemetry_resource: "entitlementOverride", telemetry_operation: "listEntitlementOverrideForSubscription")
23
+ Request.send('get', uri_path("subscriptions",id.to_s,"entitlement_overrides"), params, env, headers,nil, false, jsonKeys, options, "entitlementOverride", "listEntitlementOverrideForSubscription")
24
24
  end
25
25
 
26
26
  end # ~EntitlementOverride