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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +82 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/chargebee.gemspec +7 -2
- data/lib/chargebee/models/addon.rb +7 -7
- data/lib/chargebee/models/address.rb +2 -2
- data/lib/chargebee/models/alert.rb +16 -8
- data/lib/chargebee/models/alert_status.rb +2 -2
- data/lib/chargebee/models/async_response.rb +18 -0
- data/lib/chargebee/models/async_response_list.rb +10 -0
- data/lib/chargebee/models/attached_item.rb +5 -5
- data/lib/chargebee/models/business_entity.rb +2 -2
- data/lib/chargebee/models/card.rb +5 -5
- data/lib/chargebee/models/column_definition.rb +10 -0
- data/lib/chargebee/models/comment.rb +4 -4
- data/lib/chargebee/models/configuration.rb +1 -1
- data/lib/chargebee/models/coupon.rb +9 -9
- data/lib/chargebee/models/coupon_code.rb +4 -4
- data/lib/chargebee/models/coupon_set.rb +7 -7
- data/lib/chargebee/models/credit_note.rb +22 -17
- data/lib/chargebee/models/credit_note_estimate.rb +1 -1
- data/lib/chargebee/models/currency.rb +6 -6
- data/lib/chargebee/models/customer.rb +26 -26
- data/lib/chargebee/models/customer_entitlement.rb +1 -1
- data/lib/chargebee/models/differential_price.rb +5 -5
- data/lib/chargebee/models/entitlement.rb +2 -2
- data/lib/chargebee/models/entitlement_override.rb +2 -2
- data/lib/chargebee/models/estimate.rb +20 -20
- data/lib/chargebee/models/event.rb +2 -2
- data/lib/chargebee/models/export.rb +18 -18
- data/lib/chargebee/models/feature.rb +9 -9
- data/lib/chargebee/models/gift.rb +7 -7
- data/lib/chargebee/models/grant_block.rb +3 -3
- data/lib/chargebee/models/hosted_page.rb +22 -22
- data/lib/chargebee/models/in_app_subscription.rb +4 -4
- data/lib/chargebee/models/invoice.rb +48 -44
- data/lib/chargebee/models/invoice_estimate.rb +1 -1
- data/lib/chargebee/models/item.rb +5 -5
- data/lib/chargebee/models/item_entitlement.rb +4 -4
- data/lib/chargebee/models/item_family.rb +5 -5
- data/lib/chargebee/models/item_price.rb +7 -7
- data/lib/chargebee/models/ledger_account_balance.rb +1 -1
- data/lib/chargebee/models/ledger_operation.rb +9 -10
- data/lib/chargebee/models/meter.rb +18 -0
- data/lib/chargebee/models/metered_feature.rb +46 -0
- data/lib/chargebee/models/non_subscription.rb +1 -1
- data/lib/chargebee/models/offer_event.rb +1 -1
- data/lib/chargebee/models/offer_fulfillment.rb +3 -3
- data/lib/chargebee/models/omnichannel_one_time_order.rb +2 -2
- data/lib/chargebee/models/omnichannel_subscription.rb +4 -4
- data/lib/chargebee/models/omnichannel_subscription_item.rb +1 -1
- data/lib/chargebee/models/order.rb +12 -12
- data/lib/chargebee/models/payment_intent.rb +9 -4
- data/lib/chargebee/models/payment_schedule_scheme.rb +3 -3
- data/lib/chargebee/models/payment_source.rb +16 -16
- data/lib/chargebee/models/payment_voucher.rb +4 -4
- data/lib/chargebee/models/personalized_offer.rb +1 -1
- data/lib/chargebee/models/plan.rb +7 -7
- data/lib/chargebee/models/portal_session.rb +4 -4
- data/lib/chargebee/models/price_variant.rb +5 -5
- data/lib/chargebee/models/pricing_page_session.rb +2 -2
- data/lib/chargebee/models/promotional_credit.rb +5 -5
- data/lib/chargebee/models/promotional_grant.rb +1 -1
- data/lib/chargebee/models/purchase.rb +2 -2
- data/lib/chargebee/models/quote.rb +27 -27
- data/lib/chargebee/models/quote_line_group.rb +1 -1
- data/lib/chargebee/models/quoted_charge.rb +2 -2
- data/lib/chargebee/models/ramp.rb +6 -6
- data/lib/chargebee/models/recorded_purchase.rb +2 -2
- data/lib/chargebee/models/resource_migration.rb +1 -1
- data/lib/chargebee/models/rule.rb +1 -1
- data/lib/chargebee/models/site_migration_detail.rb +1 -1
- data/lib/chargebee/models/subscription.rb +37 -37
- data/lib/chargebee/models/subscription_entitlement.rb +2 -2
- data/lib/chargebee/models/time_machine.rb +3 -3
- data/lib/chargebee/models/transaction.rb +11 -11
- data/lib/chargebee/models/unbilled_charge.rb +6 -6
- data/lib/chargebee/models/usage.rb +5 -5
- data/lib/chargebee/models/usage_charge.rb +1 -1
- data/lib/chargebee/models/usage_event.rb +2 -2
- data/lib/chargebee/models/usage_file.rb +2 -2
- data/lib/chargebee/models/usage_summary.rb +1 -1
- data/lib/chargebee/models/virtual_bank_account.rb +6 -6
- data/lib/chargebee/models/webhook_endpoint.rb +5 -5
- data/lib/chargebee/result.rb +41 -6
- data/lib/chargebee.rb +6 -1
- metadata +7 -2
|
@@ -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, :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
|
|
@@ -48,7 +48,7 @@ module ChargeBee
|
|
|
48
48
|
jsonKeys = {
|
|
49
49
|
}
|
|
50
50
|
options = {}
|
|
51
|
-
Request.send('get', uri_path("quotes",id.to_s), {}, env, headers,nil, false, jsonKeys, options,
|
|
51
|
+
Request.send('get', uri_path("quotes",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "quote", "retrieve")
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def self.create_sub_for_customer_quote(id, params, env=nil, headers={})
|
|
@@ -57,7 +57,7 @@ module ChargeBee
|
|
|
57
57
|
options = {
|
|
58
58
|
:isIdempotent => true
|
|
59
59
|
}
|
|
60
|
-
Request.send('post', uri_path("customers",id.to_s,"create_subscription_quote"), params, env, headers,nil, false, jsonKeys, options,
|
|
60
|
+
Request.send('post', uri_path("customers",id.to_s,"create_subscription_quote"), params, env, headers,nil, false, jsonKeys, options, "quote", "createSubForCustomerQuote")
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
def self.edit_create_sub_for_customer_quote(id, params, env=nil, headers={})
|
|
@@ -66,7 +66,7 @@ module ChargeBee
|
|
|
66
66
|
options = {
|
|
67
67
|
:isIdempotent => true
|
|
68
68
|
}
|
|
69
|
-
Request.send('post', uri_path("quotes",id.to_s,"edit_create_subscription_quote"), params, env, headers,nil, false, jsonKeys, options,
|
|
69
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_create_subscription_quote"), params, env, headers,nil, false, jsonKeys, options, "quote", "editCreateSubForCustomerQuote")
|
|
70
70
|
end
|
|
71
71
|
|
|
72
72
|
def self.update_subscription_quote(params, env=nil, headers={})
|
|
@@ -75,7 +75,7 @@ module ChargeBee
|
|
|
75
75
|
options = {
|
|
76
76
|
:isIdempotent => true
|
|
77
77
|
}
|
|
78
|
-
Request.send('post', uri_path("quotes","update_subscription_quote"), params, env, headers,nil, false, jsonKeys, options,
|
|
78
|
+
Request.send('post', uri_path("quotes","update_subscription_quote"), params, env, headers,nil, false, jsonKeys, options, "quote", "updateSubscriptionQuote")
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
def self.edit_update_subscription_quote(id, params={}, env=nil, headers={})
|
|
@@ -84,7 +84,7 @@ module ChargeBee
|
|
|
84
84
|
options = {
|
|
85
85
|
:isIdempotent => true
|
|
86
86
|
}
|
|
87
|
-
Request.send('post', uri_path("quotes",id.to_s,"edit_update_subscription_quote"), params, env, headers,nil, false, jsonKeys, options,
|
|
87
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_update_subscription_quote"), params, env, headers,nil, false, jsonKeys, options, "quote", "editUpdateSubscriptionQuote")
|
|
88
88
|
end
|
|
89
89
|
|
|
90
90
|
def self.create_for_onetime_charges(params, env=nil, headers={})
|
|
@@ -93,7 +93,7 @@ module ChargeBee
|
|
|
93
93
|
options = {
|
|
94
94
|
:isIdempotent => true
|
|
95
95
|
}
|
|
96
|
-
Request.send('post', uri_path("quotes","create_for_onetime_charges"), params, env, headers,nil, false, jsonKeys, options,
|
|
96
|
+
Request.send('post', uri_path("quotes","create_for_onetime_charges"), params, env, headers,nil, false, jsonKeys, options, "quote", "createForOnetimeCharges")
|
|
97
97
|
end
|
|
98
98
|
|
|
99
99
|
def self.edit_one_time_quote(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("quotes",id.to_s,"edit_one_time_quote"), params, env, headers,nil, false, jsonKeys, options,
|
|
105
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_one_time_quote"), params, env, headers,nil, false, jsonKeys, options, "quote", "editOneTimeQuote")
|
|
106
106
|
end
|
|
107
107
|
|
|
108
108
|
def self.create_sub_items_for_customer_quote(id, params, env=nil, headers={})
|
|
@@ -111,7 +111,7 @@ module ChargeBee
|
|
|
111
111
|
options = {
|
|
112
112
|
:isIdempotent => true
|
|
113
113
|
}
|
|
114
|
-
Request.send('post', uri_path("customers",id.to_s,"create_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options,
|
|
114
|
+
Request.send('post', uri_path("customers",id.to_s,"create_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options, "quote", "createSubItemsForCustomerQuote")
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
def self.edit_create_sub_customer_quote_for_items(id, params, env=nil, headers={})
|
|
@@ -120,7 +120,7 @@ module ChargeBee
|
|
|
120
120
|
options = {
|
|
121
121
|
:isIdempotent => true
|
|
122
122
|
}
|
|
123
|
-
Request.send('post', uri_path("quotes",id.to_s,"edit_create_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options,
|
|
123
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_create_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options, "quote", "editCreateSubCustomerQuoteForItems")
|
|
124
124
|
end
|
|
125
125
|
|
|
126
126
|
def self.update_subscription_quote_for_items(params, env=nil, headers={})
|
|
@@ -129,7 +129,7 @@ module ChargeBee
|
|
|
129
129
|
options = {
|
|
130
130
|
:isIdempotent => true
|
|
131
131
|
}
|
|
132
|
-
Request.send('post', uri_path("quotes","update_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options,
|
|
132
|
+
Request.send('post', uri_path("quotes","update_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options, "quote", "updateSubscriptionQuoteForItems")
|
|
133
133
|
end
|
|
134
134
|
|
|
135
135
|
def self.edit_update_subscription_quote_for_items(id, params, env=nil, headers={})
|
|
@@ -138,7 +138,7 @@ module ChargeBee
|
|
|
138
138
|
options = {
|
|
139
139
|
:isIdempotent => true
|
|
140
140
|
}
|
|
141
|
-
Request.send('post', uri_path("quotes",id.to_s,"edit_update_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options,
|
|
141
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_update_subscription_quote_for_items"), params, env, headers,nil, false, jsonKeys, options, "quote", "editUpdateSubscriptionQuoteForItems")
|
|
142
142
|
end
|
|
143
143
|
|
|
144
144
|
def self.create_for_charge_items_and_charges(params, env=nil, headers={})
|
|
@@ -147,7 +147,7 @@ module ChargeBee
|
|
|
147
147
|
options = {
|
|
148
148
|
:isIdempotent => true
|
|
149
149
|
}
|
|
150
|
-
Request.send('post', uri_path("quotes","create_for_charge_items_and_charges"), params, env, headers,nil, false, jsonKeys, options,
|
|
150
|
+
Request.send('post', uri_path("quotes","create_for_charge_items_and_charges"), params, env, headers,nil, false, jsonKeys, options, "quote", "createForChargeItemsAndCharges")
|
|
151
151
|
end
|
|
152
152
|
|
|
153
153
|
def self.edit_for_charge_items_and_charges(id, params, env=nil, headers={})
|
|
@@ -156,21 +156,21 @@ module ChargeBee
|
|
|
156
156
|
options = {
|
|
157
157
|
:isIdempotent => true
|
|
158
158
|
}
|
|
159
|
-
Request.send('post', uri_path("quotes",id.to_s,"edit_for_charge_items_and_charges"), params, env, headers,nil, false, jsonKeys, options,
|
|
159
|
+
Request.send('post', uri_path("quotes",id.to_s,"edit_for_charge_items_and_charges"), params, env, headers,nil, false, jsonKeys, options, "quote", "editForChargeItemsAndCharges")
|
|
160
160
|
end
|
|
161
161
|
|
|
162
162
|
def self.list(params={}, env=nil, headers={})
|
|
163
163
|
jsonKeys = {
|
|
164
164
|
}
|
|
165
165
|
options = {}
|
|
166
|
-
Request.send_list_request('get', uri_path("quotes"), params, env, headers,nil, false, jsonKeys, options,
|
|
166
|
+
Request.send_list_request('get', uri_path("quotes"), params, env, headers,nil, false, jsonKeys, options, "quote", "list")
|
|
167
167
|
end
|
|
168
168
|
|
|
169
169
|
def self.quote_line_groups_for_quote(id, params={}, env=nil, headers={})
|
|
170
170
|
jsonKeys = {
|
|
171
171
|
}
|
|
172
172
|
options = {}
|
|
173
|
-
Request.send('get', uri_path("quotes",id.to_s,"quote_line_groups"), params, env, headers,nil, false, jsonKeys, options,
|
|
173
|
+
Request.send('get', uri_path("quotes",id.to_s,"quote_line_groups"), params, env, headers,nil, false, jsonKeys, options, "quote", "quoteLineGroupsForQuote")
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
def self.convert(id, params={}, env=nil, headers={})
|
|
@@ -179,7 +179,7 @@ module ChargeBee
|
|
|
179
179
|
options = {
|
|
180
180
|
:isIdempotent => true
|
|
181
181
|
}
|
|
182
|
-
Request.send('post', uri_path("quotes",id.to_s,"convert"), params, env, headers,nil, false, jsonKeys, options,
|
|
182
|
+
Request.send('post', uri_path("quotes",id.to_s,"convert"), params, env, headers,nil, false, jsonKeys, options, "quote", "convert")
|
|
183
183
|
end
|
|
184
184
|
|
|
185
185
|
def self.update_status(id, params, env=nil, headers={})
|
|
@@ -188,7 +188,7 @@ module ChargeBee
|
|
|
188
188
|
options = {
|
|
189
189
|
:isIdempotent => true
|
|
190
190
|
}
|
|
191
|
-
Request.send('post', uri_path("quotes",id.to_s,"update_status"), params, env, headers,nil, false, jsonKeys, options,
|
|
191
|
+
Request.send('post', uri_path("quotes",id.to_s,"update_status"), params, env, headers,nil, false, jsonKeys, options, "quote", "updateStatus")
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
def self.extend_expiry_date(id, params, env=nil, headers={})
|
|
@@ -197,7 +197,7 @@ module ChargeBee
|
|
|
197
197
|
options = {
|
|
198
198
|
:isIdempotent => true
|
|
199
199
|
}
|
|
200
|
-
Request.send('post', uri_path("quotes",id.to_s,"extend_expiry_date"), params, env, headers,nil, false, jsonKeys, options,
|
|
200
|
+
Request.send('post', uri_path("quotes",id.to_s,"extend_expiry_date"), params, env, headers,nil, false, jsonKeys, options, "quote", "extendExpiryDate")
|
|
201
201
|
end
|
|
202
202
|
|
|
203
203
|
def self.delete(id, params={}, env=nil, headers={})
|
|
@@ -206,7 +206,7 @@ module ChargeBee
|
|
|
206
206
|
options = {
|
|
207
207
|
:isIdempotent => true
|
|
208
208
|
}
|
|
209
|
-
Request.send('post', uri_path("quotes",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options,
|
|
209
|
+
Request.send('post', uri_path("quotes",id.to_s,"delete"), params, env, headers,nil, false, jsonKeys, options, "quote", "delete")
|
|
210
210
|
end
|
|
211
211
|
|
|
212
212
|
def self.pdf(id, params={}, env=nil, headers={})
|
|
@@ -215,7 +215,7 @@ module ChargeBee
|
|
|
215
215
|
options = {
|
|
216
216
|
:isIdempotent => true
|
|
217
217
|
}
|
|
218
|
-
Request.send('post', uri_path("quotes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options,
|
|
218
|
+
Request.send('post', uri_path("quotes",id.to_s,"pdf"), params, env, headers,nil, false, jsonKeys, options, "quote", "pdf")
|
|
219
219
|
end
|
|
220
220
|
|
|
221
221
|
# @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -223,7 +223,7 @@ module ChargeBee
|
|
|
223
223
|
jsonKeys = {
|
|
224
224
|
}
|
|
225
225
|
options = {}
|
|
226
|
-
Request.send('get', uri_path("quotes",id.to_s,"retrieve_signature"), {}, env, headers,nil, false, jsonKeys, options,
|
|
226
|
+
Request.send('get', uri_path("quotes",id.to_s,"retrieve_signature"), {}, env, headers,nil, false, jsonKeys, options, "quote", "retrieveSignature")
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
# @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -233,7 +233,7 @@ module ChargeBee
|
|
|
233
233
|
options = {
|
|
234
234
|
:isIdempotent => true
|
|
235
235
|
}
|
|
236
|
-
Request.send('post', uri_path("quotes",id.to_s,"retrieve_signed_pdf"), {}, env, headers,nil, false, jsonKeys, options,
|
|
236
|
+
Request.send('post', uri_path("quotes",id.to_s,"retrieve_signed_pdf"), {}, env, headers,nil, false, jsonKeys, options, "quote", "retrieveSignedPdf")
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
# @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -243,7 +243,7 @@ module ChargeBee
|
|
|
243
243
|
options = {
|
|
244
244
|
:isIdempotent => true
|
|
245
245
|
}
|
|
246
|
-
Request.send('post', uri_path("quotes",id.to_s,"create_signature"), {}, env, headers,nil, false, jsonKeys, options,
|
|
246
|
+
Request.send('post', uri_path("quotes",id.to_s,"create_signature"), {}, env, headers,nil, false, jsonKeys, options, "quote", "createSignature")
|
|
247
247
|
end
|
|
248
248
|
|
|
249
249
|
# @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -253,7 +253,7 @@ module ChargeBee
|
|
|
253
253
|
options = {
|
|
254
254
|
:isIdempotent => true
|
|
255
255
|
}
|
|
256
|
-
Request.send('post', uri_path("quotes",id.to_s,"update_signature"), {}, env, headers,nil, false, jsonKeys, options,
|
|
256
|
+
Request.send('post', uri_path("quotes",id.to_s,"update_signature"), {}, env, headers,nil, false, jsonKeys, options, "quote", "updateSignature")
|
|
257
257
|
end
|
|
258
258
|
|
|
259
259
|
# @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -263,7 +263,7 @@ module ChargeBee
|
|
|
263
263
|
options = {
|
|
264
264
|
:isIdempotent => true
|
|
265
265
|
}
|
|
266
|
-
Request.send('post', uri_path("quotes",id.to_s,"update_signature_status"), params, env, headers,nil, false, jsonKeys, options,
|
|
266
|
+
Request.send('post', uri_path("quotes",id.to_s,"update_signature_status"), params, env, headers,nil, false, jsonKeys, options, "quote", "updateSignatureStatus")
|
|
267
267
|
end
|
|
268
268
|
|
|
269
269
|
# @deprecated This method is deprecated and will be removed in a future version.
|
|
@@ -273,7 +273,7 @@ module ChargeBee
|
|
|
273
273
|
options = {
|
|
274
274
|
:isIdempotent => true
|
|
275
275
|
}
|
|
276
|
-
Request.send('post', uri_path("quotes",id.to_s,"refresh_signature_link"), {}, env, headers,nil, false, jsonKeys, options,
|
|
276
|
+
Request.send('post', uri_path("quotes",id.to_s,"refresh_signature_link"), {}, env, headers,nil, false, jsonKeys, options, "quote", "refreshSignatureLink")
|
|
277
277
|
end
|
|
278
278
|
|
|
279
279
|
end # ~Quote
|
|
@@ -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, :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 LineItemDiscount < Model
|
|
@@ -2,7 +2,7 @@ module ChargeBee
|
|
|
2
2
|
class QuotedCharge < Model
|
|
3
3
|
|
|
4
4
|
class Charge < Model
|
|
5
|
-
attr_accessor :amount, :amount_in_decimal, :description, :service_period_in_days, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type
|
|
5
|
+
attr_accessor :amount, :amount_in_decimal, :description, :entity_description, :service_period_in_days, :avalara_sale_type, :avalara_transaction_type, :avalara_service_type
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
class Addon < Model
|
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
class InvoiceItem < Model
|
|
13
|
-
attr_accessor :item_price_id, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :service_period_days
|
|
13
|
+
attr_accessor :item_price_id, :quantity, :quantity_in_decimal, :unit_price, :unit_price_in_decimal, :description, :entity_description, :service_period_days
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
class ItemTier < Model
|
|
@@ -14,7 +14,7 @@ module ChargeBee
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
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
|
|
17
|
+
attr_accessor :id, :invoice_name, :type, :percentage, :amount, :quantity, :duration_type, :period, :period_unit, :included_in_mrr, :apply_on, :item_price_id, :created_at
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
class ItemTier < Model
|
|
@@ -42,7 +42,7 @@ module ChargeBee
|
|
|
42
42
|
options = {
|
|
43
43
|
:isIdempotent => true
|
|
44
44
|
}
|
|
45
|
-
Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers,nil, false, jsonKeys, options,
|
|
45
|
+
Request.send('post', uri_path("subscriptions",id.to_s,"create_ramp"), params, env, headers,nil, false, jsonKeys, options, "ramp", "createForSubscription")
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
def self.update(id, params, env=nil, headers={})
|
|
@@ -51,14 +51,14 @@ module ChargeBee
|
|
|
51
51
|
options = {
|
|
52
52
|
:isIdempotent => true
|
|
53
53
|
}
|
|
54
|
-
Request.send('post', uri_path("ramps",id.to_s,"update"), params, env, headers,nil, false, jsonKeys, options,
|
|
54
|
+
Request.send('post', uri_path("ramps",id.to_s,"update"), params, env, headers,nil, false, jsonKeys, options, "ramp", "update")
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def self.retrieve(id, env=nil, headers={})
|
|
58
58
|
jsonKeys = {
|
|
59
59
|
}
|
|
60
60
|
options = {}
|
|
61
|
-
Request.send('get', uri_path("ramps",id.to_s), {}, env, headers,nil, false, jsonKeys, options,
|
|
61
|
+
Request.send('get', uri_path("ramps",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "ramp", "retrieve")
|
|
62
62
|
end
|
|
63
63
|
|
|
64
64
|
def self.delete(id, env=nil, headers={})
|
|
@@ -67,14 +67,14 @@ module ChargeBee
|
|
|
67
67
|
options = {
|
|
68
68
|
:isIdempotent => true
|
|
69
69
|
}
|
|
70
|
-
Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options,
|
|
70
|
+
Request.send('post', uri_path("ramps",id.to_s,"delete"), {}, env, headers,nil, false, jsonKeys, options, "ramp", "delete")
|
|
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("ramps"), params, env, headers,nil, false, jsonKeys, options,
|
|
77
|
+
Request.send_list_request('get', uri_path("ramps"), params, env, headers,nil, false, jsonKeys, options, "ramp", "list")
|
|
78
78
|
end
|
|
79
79
|
|
|
80
80
|
end # ~Ramp
|
|
@@ -25,14 +25,14 @@ module ChargeBee
|
|
|
25
25
|
options = {
|
|
26
26
|
:isIdempotent => true
|
|
27
27
|
}
|
|
28
|
-
Request.send('post', uri_path("recorded_purchases"), params, env, headers,nil, false, jsonKeys, options,
|
|
28
|
+
Request.send('post', uri_path("recorded_purchases"), params, env, headers,nil, false, jsonKeys, options, "recordedPurchase", "create")
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def self.retrieve(id, env=nil, headers={})
|
|
32
32
|
jsonKeys = {
|
|
33
33
|
}
|
|
34
34
|
options = {}
|
|
35
|
-
Request.send('get', uri_path("recorded_purchases",id.to_s), {}, env, headers,nil, false, jsonKeys, options,
|
|
35
|
+
Request.send('get', uri_path("recorded_purchases",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "recordedPurchase", "retrieve")
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
end # ~RecordedPurchase
|
|
@@ -10,7 +10,7 @@ module ChargeBee
|
|
|
10
10
|
jsonKeys = {
|
|
11
11
|
}
|
|
12
12
|
options = {}
|
|
13
|
-
Request.send('get', uri_path("resource_migrations","retrieve_latest"), params, env, headers,nil, false, jsonKeys, options,
|
|
13
|
+
Request.send('get', uri_path("resource_migrations","retrieve_latest"), params, env, headers,nil, false, jsonKeys, options, "resourceMigration", "retrieveLatest")
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
end # ~ResourceMigration
|
|
@@ -11,7 +11,7 @@ module ChargeBee
|
|
|
11
11
|
jsonKeys = {
|
|
12
12
|
}
|
|
13
13
|
options = {}
|
|
14
|
-
Request.send('get', uri_path("rules",id.to_s), {}, env, headers,nil, false, jsonKeys, options,
|
|
14
|
+
Request.send('get', uri_path("rules",id.to_s), {}, env, headers,nil, false, jsonKeys, options, "rule", "retrieve")
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
end # ~Rule
|
|
@@ -11,7 +11,7 @@ module ChargeBee
|
|
|
11
11
|
jsonKeys = {
|
|
12
12
|
}
|
|
13
13
|
options = {}
|
|
14
|
-
Request.send_list_request('get', uri_path("site_migration_details"), params, env, headers,nil, false, jsonKeys, options,
|
|
14
|
+
Request.send_list_request('get', uri_path("site_migration_details"), params, env, headers,nil, false, jsonKeys, options, "siteMigrationDetail", "list")
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
end # ~SiteMigrationDetail
|