lago_ruby 0.48.0.pre.beta → 0.51.0.pre.beta
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +19 -6
- data/docs/AddOnBaseInput.md +2 -0
- data/docs/AddOnCreateInputAddOn.md +2 -0
- data/docs/AddOnObject.md +2 -0
- data/docs/BillableMetricBaseInput.md +1 -1
- data/docs/BillableMetricCreateInputBillableMetric.md +1 -1
- data/docs/BillableMetricObject.md +1 -1
- data/docs/ChargeObject.md +2 -0
- data/docs/CreditNoteCreateInputCreditNote.md +1 -1
- data/docs/CreditNoteEstimateInput.md +18 -0
- data/docs/CreditNoteEstimateInputCreditNote.md +20 -0
- data/docs/CreditNoteEstimateInputCreditNoteItemsInner.md +20 -0
- data/docs/CreditNoteEstimated.md +18 -0
- data/docs/CreditNoteEstimatedEstimatedCreditNote.md +38 -0
- data/docs/CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.md +32 -0
- data/docs/CreditNoteEstimatedEstimatedCreditNoteItemsInner.md +20 -0
- data/docs/CreditNoteItemObjectFee.md +4 -0
- data/docs/CreditNoteObject.md +2 -2
- data/docs/CreditNotesApi.md +72 -0
- data/docs/CustomerChargeUsageObject.md +2 -0
- data/docs/CustomerChargeUsageObjectGroupsInner.md +2 -0
- data/docs/CustomerPastUsage.md +20 -0
- data/docs/CustomerUsageObject.md +2 -0
- data/docs/CustomersApi.md +82 -0
- data/docs/EventsApi.md +7 -6
- data/docs/FeeObject.md +4 -0
- data/docs/FeeObjectItem.md +4 -0
- data/docs/GroupPropertiesObject.md +2 -0
- data/docs/InvoiceOneOffCreateInputInvoiceFeesInner.md +2 -0
- data/docs/PlanCreateInputPlan.md +3 -1
- data/docs/PlanCreateInputPlanChargesInner.md +2 -0
- data/docs/PlanObject.md +3 -1
- data/docs/PlanOverridesObject.md +32 -0
- data/docs/PlanOverridesObjectChargesInner.md +28 -0
- data/docs/PlanUpdateInputPlan.md +3 -1
- data/docs/PlanUpdateInputPlanChargesInner.md +2 -0
- data/docs/Subscription.md +1 -1
- data/docs/SubscriptionCreateInputSubscription.md +3 -1
- data/docs/SubscriptionObjectExtended.md +52 -0
- data/docs/SubscriptionUpdateInputSubscription.md +3 -1
- data/docs/SubscriptionsApi.md +70 -0
- data/lago_ruby.gemspec +1 -1
- data/lib/lago_ruby/api/add_ons_api.rb +1 -1
- data/lib/lago_ruby/api/billable_metrics_api.rb +1 -1
- data/lib/lago_ruby/api/coupons_api.rb +1 -1
- data/lib/lago_ruby/api/credit_notes_api.rb +65 -1
- data/lib/lago_ruby/api/customers_api.rb +83 -1
- data/lib/lago_ruby/api/events_api.rb +6 -6
- data/lib/lago_ruby/api/fees_api.rb +1 -1
- data/lib/lago_ruby/api/invoices_api.rb +1 -1
- data/lib/lago_ruby/api/organizations_api.rb +1 -1
- data/lib/lago_ruby/api/plans_api.rb +1 -1
- data/lib/lago_ruby/api/subscriptions_api.rb +64 -1
- data/lib/lago_ruby/api/taxes_api.rb +1 -1
- data/lib/lago_ruby/api/wallets_api.rb +1 -1
- data/lib/lago_ruby/api/webhook_endpoints_api.rb +1 -1
- data/lib/lago_ruby/api/webhooks_api.rb +1 -1
- data/lib/lago_ruby/api_client.rb +13 -13
- data/lib/lago_ruby/api_error.rb +1 -1
- data/lib/lago_ruby/configuration.rb +2 -1
- data/lib/lago_ruby/models/add_on.rb +2 -2
- data/lib/lago_ruby/models/add_on_base_input.rb +13 -3
- data/lib/lago_ruby/models/add_on_create_input.rb +2 -2
- data/lib/lago_ruby/models/add_on_create_input_add_on.rb +13 -3
- data/lib/lago_ruby/models/add_on_object.rb +13 -3
- data/lib/lago_ruby/models/add_on_update_input.rb +2 -2
- data/lib/lago_ruby/models/add_ons_paginated.rb +2 -2
- data/lib/lago_ruby/models/api_error_bad_request.rb +2 -2
- data/lib/lago_ruby/models/api_error_forbidden.rb +2 -2
- data/lib/lago_ruby/models/api_error_not_allowed.rb +2 -2
- data/lib/lago_ruby/models/api_error_not_found.rb +2 -2
- data/lib/lago_ruby/models/api_error_unauthorized.rb +2 -2
- data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +2 -2
- data/lib/lago_ruby/models/applied_coupon.rb +2 -2
- data/lib/lago_ruby/models/applied_coupon_input.rb +2 -2
- data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +2 -2
- data/lib/lago_ruby/models/applied_coupon_object.rb +2 -2
- data/lib/lago_ruby/models/applied_coupon_object_extended.rb +2 -2
- data/lib/lago_ruby/models/applied_coupons_paginated.rb +2 -2
- data/lib/lago_ruby/models/base_applied_tax.rb +2 -2
- data/lib/lago_ruby/models/billable_metric.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_base_input.rb +5 -5
- data/lib/lago_ruby/models/billable_metric_create_input.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +5 -5
- data/lib/lago_ruby/models/billable_metric_group.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_group_values_inner.rb +1 -1
- data/lib/lago_ruby/models/billable_metric_group_values_inner_one_of.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_object.rb +5 -5
- data/lib/lago_ruby/models/billable_metric_update_input.rb +2 -2
- data/lib/lago_ruby/models/billable_metrics_paginated.rb +2 -2
- data/lib/lago_ruby/models/charge_object.rb +13 -3
- data/lib/lago_ruby/models/charge_object_properties.rb +2 -2
- data/lib/lago_ruby/models/charge_properties.rb +2 -2
- data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +2 -2
- data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +2 -2
- data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +2 -2
- data/lib/lago_ruby/models/country.rb +1 -1
- data/lib/lago_ruby/models/coupon.rb +2 -2
- data/lib/lago_ruby/models/coupon_base_input.rb +2 -2
- data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +2 -2
- data/lib/lago_ruby/models/coupon_create_input.rb +2 -2
- data/lib/lago_ruby/models/coupon_create_input_coupon.rb +2 -2
- data/lib/lago_ruby/models/coupon_object.rb +2 -2
- data/lib/lago_ruby/models/coupon_update_input.rb +2 -2
- data/lib/lago_ruby/models/coupons_paginated.rb +2 -2
- data/lib/lago_ruby/models/credit_note.rb +2 -2
- data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +2 -2
- data/lib/lago_ruby/models/credit_note_create_input.rb +2 -2
- data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +3 -3
- data/lib/lago_ruby/models/credit_note_create_input_credit_note_items_inner.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimate_input.rb +221 -0
- data/lib/lago_ruby/models/credit_note_estimate_input_credit_note.rb +241 -0
- data/lib/lago_ruby/models/credit_note_estimate_input_credit_note_items_inner.rb +239 -0
- data/lib/lago_ruby/models/credit_note_estimated.rb +221 -0
- data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note.rb +387 -0
- data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner.rb +283 -0
- data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner.rb +235 -0
- data/lib/lago_ruby/models/credit_note_item_object.rb +2 -2
- data/lib/lago_ruby/models/credit_note_item_object_fee.rb +30 -3
- data/lib/lago_ruby/models/credit_note_object.rb +13 -13
- data/lib/lago_ruby/models/credit_note_update_input.rb +2 -2
- data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +2 -2
- data/lib/lago_ruby/models/credit_notes.rb +2 -2
- data/lib/lago_ruby/models/credit_object.rb +2 -2
- data/lib/lago_ruby/models/credit_object_invoice.rb +2 -2
- data/lib/lago_ruby/models/credit_object_item.rb +2 -2
- data/lib/lago_ruby/models/currency.rb +1 -1
- data/lib/lago_ruby/models/customer.rb +2 -2
- data/lib/lago_ruby/models/customer_billing_configuration.rb +2 -2
- data/lib/lago_ruby/models/customer_charge_usage_object.rb +20 -3
- data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +2 -2
- data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +2 -2
- data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +13 -3
- data/lib/lago_ruby/models/customer_create_input.rb +2 -2
- data/lib/lago_ruby/models/customer_create_input_customer.rb +2 -2
- data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +2 -2
- data/lib/lago_ruby/models/customer_metadata.rb +2 -2
- data/lib/lago_ruby/models/customer_object.rb +2 -2
- data/lib/lago_ruby/models/customer_object_extended.rb +2 -2
- data/lib/lago_ruby/models/customer_past_usage.rb +239 -0
- data/lib/lago_ruby/models/customer_usage.rb +2 -2
- data/lib/lago_ruby/models/customer_usage_object.rb +14 -3
- data/lib/lago_ruby/models/customers_paginated.rb +2 -2
- data/lib/lago_ruby/models/event.rb +2 -2
- data/lib/lago_ruby/models/event_batch_input.rb +2 -2
- data/lib/lago_ruby/models/event_batch_input_event.rb +2 -2
- data/lib/lago_ruby/models/event_batch_input_event_properties.rb +2 -2
- data/lib/lago_ruby/models/event_estimate_fees_input.rb +2 -2
- data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +2 -2
- data/lib/lago_ruby/models/event_input.rb +2 -2
- data/lib/lago_ruby/models/event_input_event.rb +2 -2
- data/lib/lago_ruby/models/event_input_event_timestamp.rb +1 -1
- data/lib/lago_ruby/models/event_object.rb +6 -22
- data/lib/lago_ruby/models/event_object_properties.rb +2 -2
- data/lib/lago_ruby/models/fee.rb +2 -2
- data/lib/lago_ruby/models/fee_applied_tax_object.rb +2 -2
- data/lib/lago_ruby/models/fee_object.rb +30 -3
- data/lib/lago_ruby/models/fee_object_item.rb +23 -3
- data/lib/lago_ruby/models/fee_update_input.rb +2 -2
- data/lib/lago_ruby/models/fee_update_input_fee.rb +2 -2
- data/lib/lago_ruby/models/fees.rb +2 -2
- data/lib/lago_ruby/models/fees_paginated.rb +2 -2
- data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +2 -2
- data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +2 -2
- data/lib/lago_ruby/models/group_object.rb +2 -2
- data/lib/lago_ruby/models/group_properties_object.rb +13 -3
- data/lib/lago_ruby/models/group_properties_object_values.rb +2 -2
- data/lib/lago_ruby/models/groups_paginated.rb +2 -2
- data/lib/lago_ruby/models/invoice.rb +2 -2
- data/lib/lago_ruby/models/invoice_applied_tax_object.rb +2 -2
- data/lib/lago_ruby/models/invoice_metadata_object.rb +2 -2
- data/lib/lago_ruby/models/invoice_object.rb +2 -2
- data/lib/lago_ruby/models/invoice_object_customer.rb +2 -2
- data/lib/lago_ruby/models/invoice_object_extended.rb +2 -2
- data/lib/lago_ruby/models/invoice_one_off_create_input.rb +2 -2
- data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +2 -2
- data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +13 -3
- data/lib/lago_ruby/models/invoice_update_input.rb +2 -2
- data/lib/lago_ruby/models/invoice_update_input_invoice.rb +2 -2
- data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +2 -2
- data/lib/lago_ruby/models/invoices_paginated.rb +2 -2
- data/lib/lago_ruby/models/organization.rb +2 -2
- data/lib/lago_ruby/models/organization_billing_configuration.rb +2 -2
- data/lib/lago_ruby/models/organization_object.rb +2 -2
- data/lib/lago_ruby/models/organization_update_input.rb +2 -2
- data/lib/lago_ruby/models/organization_update_input_organization.rb +2 -2
- data/lib/lago_ruby/models/pagination_meta.rb +2 -2
- data/lib/lago_ruby/models/plan.rb +2 -2
- data/lib/lago_ruby/models/plan_create_input.rb +2 -2
- data/lib/lago_ruby/models/plan_create_input_plan.rb +13 -3
- data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +13 -3
- data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +2 -2
- data/lib/lago_ruby/models/plan_object.rb +13 -3
- data/lib/lago_ruby/models/plan_overrides_object.rb +289 -0
- data/lib/lago_ruby/models/plan_overrides_object_charges_inner.rb +268 -0
- data/lib/lago_ruby/models/plan_update_input.rb +2 -2
- data/lib/lago_ruby/models/plan_update_input_plan.rb +13 -3
- data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +13 -3
- data/lib/lago_ruby/models/plans_paginated.rb +2 -2
- data/lib/lago_ruby/models/subscription.rb +3 -3
- data/lib/lago_ruby/models/subscription_create_input.rb +2 -2
- data/lib/lago_ruby/models/subscription_create_input_subscription.rb +15 -6
- data/lib/lago_ruby/models/subscription_object.rb +2 -2
- data/lib/lago_ruby/models/subscription_object_extended.rb +507 -0
- data/lib/lago_ruby/models/subscription_update_input.rb +2 -2
- data/lib/lago_ruby/models/subscription_update_input_subscription.rb +15 -6
- data/lib/lago_ruby/models/subscriptions_paginated.rb +2 -2
- data/lib/lago_ruby/models/tax.rb +2 -2
- data/lib/lago_ruby/models/tax_base_input.rb +2 -2
- data/lib/lago_ruby/models/tax_create_input.rb +2 -2
- data/lib/lago_ruby/models/tax_create_input_tax.rb +2 -2
- data/lib/lago_ruby/models/tax_object.rb +2 -2
- data/lib/lago_ruby/models/tax_update_input.rb +2 -2
- data/lib/lago_ruby/models/taxes_paginated.rb +2 -2
- data/lib/lago_ruby/models/timezone.rb +1 -1
- data/lib/lago_ruby/models/wallet.rb +2 -2
- data/lib/lago_ruby/models/wallet_create_input.rb +2 -2
- data/lib/lago_ruby/models/wallet_create_input_wallet.rb +2 -2
- data/lib/lago_ruby/models/wallet_object.rb +2 -2
- data/lib/lago_ruby/models/wallet_transaction_create_input.rb +2 -2
- data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +2 -2
- data/lib/lago_ruby/models/wallet_transaction_object.rb +2 -2
- data/lib/lago_ruby/models/wallet_transactions.rb +2 -2
- data/lib/lago_ruby/models/wallet_transactions_paginated.rb +2 -2
- data/lib/lago_ruby/models/wallet_update_input.rb +2 -2
- data/lib/lago_ruby/models/wallet_update_input_wallet.rb +2 -2
- data/lib/lago_ruby/models/wallets_paginated.rb +2 -2
- data/lib/lago_ruby/models/webhook_endpoint.rb +2 -2
- data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +2 -2
- data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +2 -2
- data/lib/lago_ruby/models/webhook_endpoint_object.rb +2 -2
- data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +2 -2
- data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +2 -2
- data/lib/lago_ruby/version.rb +2 -2
- data/lib/lago_ruby.rb +12 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{credit_note_create_input_credit_note_items_inner_spec.rb → credit_note_estimate_input_credit_note_items_inner_spec.rb} +10 -8
- data/spec/models/credit_note_estimate_input_credit_note_spec.rb +42 -0
- data/spec/models/credit_note_estimate_input_spec.rb +36 -0
- data/spec/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner_spec.rb +78 -0
- data/spec/models/credit_note_estimated_estimated_credit_note_items_inner_spec.rb +42 -0
- data/spec/models/credit_note_estimated_estimated_credit_note_spec.rb +96 -0
- data/spec/models/credit_note_estimated_spec.rb +36 -0
- data/spec/models/customer_past_usage_spec.rb +42 -0
- data/spec/models/plan_overrides_object_charges_inner_spec.rb +66 -0
- data/spec/models/plan_overrides_object_spec.rb +78 -0
- data/spec/models/subscription_object_extended_spec.rb +146 -0
- data/spec/spec_helper.rb +1 -1
- metadata +194 -152
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -42,6 +42,9 @@ module LagoAPI
|
|
42
42
|
# Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true).
|
43
43
|
attr_accessor :external_subscription_id
|
44
44
|
|
45
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name.
|
46
|
+
attr_accessor :invoice_display_name
|
47
|
+
|
45
48
|
# The cost of this specific fee, excluding any applicable taxes.
|
46
49
|
attr_accessor :amount_cents
|
47
50
|
|
@@ -56,6 +59,9 @@ module LagoAPI
|
|
56
59
|
# The number of units used to charge the customer. This field indicates the quantity or count of units consumed or utilized in the context of the charge. It helps in determining the basis for calculating the fee or cost associated with the usage of the service or product provided to the customer.
|
57
60
|
attr_accessor :units
|
58
61
|
|
62
|
+
# The unit amount of the fee per unit, with precision.
|
63
|
+
attr_accessor :precise_unit_amount
|
64
|
+
|
59
65
|
# The cost of this specific fee, including any applicable taxes.
|
60
66
|
attr_accessor :total_amount_cents
|
61
67
|
|
@@ -133,11 +139,13 @@ module LagoAPI
|
|
133
139
|
:'lago_customer_id' => :'lago_customer_id',
|
134
140
|
:'external_customer_id' => :'external_customer_id',
|
135
141
|
:'external_subscription_id' => :'external_subscription_id',
|
142
|
+
:'invoice_display_name' => :'invoice_display_name',
|
136
143
|
:'amount_cents' => :'amount_cents',
|
137
144
|
:'amount_currency' => :'amount_currency',
|
138
145
|
:'taxes_amount_cents' => :'taxes_amount_cents',
|
139
146
|
:'taxes_rate' => :'taxes_rate',
|
140
147
|
:'units' => :'units',
|
148
|
+
:'precise_unit_amount' => :'precise_unit_amount',
|
141
149
|
:'total_amount_cents' => :'total_amount_cents',
|
142
150
|
:'total_amount_currency' => :'total_amount_currency',
|
143
151
|
:'events_count' => :'events_count',
|
@@ -173,11 +181,13 @@ module LagoAPI
|
|
173
181
|
:'lago_customer_id' => :'String',
|
174
182
|
:'external_customer_id' => :'String',
|
175
183
|
:'external_subscription_id' => :'String',
|
184
|
+
:'invoice_display_name' => :'String',
|
176
185
|
:'amount_cents' => :'Integer',
|
177
186
|
:'amount_currency' => :'Currency',
|
178
187
|
:'taxes_amount_cents' => :'Integer',
|
179
188
|
:'taxes_rate' => :'Float',
|
180
189
|
:'units' => :'String',
|
190
|
+
:'precise_unit_amount' => :'String',
|
181
191
|
:'total_amount_cents' => :'Integer',
|
182
192
|
:'total_amount_currency' => :'Currency',
|
183
193
|
:'events_count' => :'Integer',
|
@@ -269,6 +279,10 @@ module LagoAPI
|
|
269
279
|
self.external_subscription_id = attributes[:'external_subscription_id']
|
270
280
|
end
|
271
281
|
|
282
|
+
if attributes.key?(:'invoice_display_name')
|
283
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
284
|
+
end
|
285
|
+
|
272
286
|
if attributes.key?(:'amount_cents')
|
273
287
|
self.amount_cents = attributes[:'amount_cents']
|
274
288
|
else
|
@@ -299,6 +313,12 @@ module LagoAPI
|
|
299
313
|
self.units = nil
|
300
314
|
end
|
301
315
|
|
316
|
+
if attributes.key?(:'precise_unit_amount')
|
317
|
+
self.precise_unit_amount = attributes[:'precise_unit_amount']
|
318
|
+
else
|
319
|
+
self.precise_unit_amount = nil
|
320
|
+
end
|
321
|
+
|
302
322
|
if attributes.key?(:'total_amount_cents')
|
303
323
|
self.total_amount_cents = attributes[:'total_amount_cents']
|
304
324
|
else
|
@@ -399,6 +419,10 @@ module LagoAPI
|
|
399
419
|
invalid_properties.push('invalid value for "units", units cannot be nil.')
|
400
420
|
end
|
401
421
|
|
422
|
+
if @precise_unit_amount.nil?
|
423
|
+
invalid_properties.push('invalid value for "precise_unit_amount", precise_unit_amount cannot be nil.')
|
424
|
+
end
|
425
|
+
|
402
426
|
if @total_amount_cents.nil?
|
403
427
|
invalid_properties.push('invalid value for "total_amount_cents", total_amount_cents cannot be nil.')
|
404
428
|
end
|
@@ -435,6 +459,7 @@ module LagoAPI
|
|
435
459
|
return false if @taxes_amount_cents.nil?
|
436
460
|
return false if @taxes_rate.nil?
|
437
461
|
return false if @units.nil?
|
462
|
+
return false if @precise_unit_amount.nil?
|
438
463
|
return false if @total_amount_cents.nil?
|
439
464
|
return false if @total_amount_currency.nil?
|
440
465
|
return false if @pay_in_advance.nil?
|
@@ -470,11 +495,13 @@ module LagoAPI
|
|
470
495
|
lago_customer_id == o.lago_customer_id &&
|
471
496
|
external_customer_id == o.external_customer_id &&
|
472
497
|
external_subscription_id == o.external_subscription_id &&
|
498
|
+
invoice_display_name == o.invoice_display_name &&
|
473
499
|
amount_cents == o.amount_cents &&
|
474
500
|
amount_currency == o.amount_currency &&
|
475
501
|
taxes_amount_cents == o.taxes_amount_cents &&
|
476
502
|
taxes_rate == o.taxes_rate &&
|
477
503
|
units == o.units &&
|
504
|
+
precise_unit_amount == o.precise_unit_amount &&
|
478
505
|
total_amount_cents == o.total_amount_cents &&
|
479
506
|
total_amount_currency == o.total_amount_currency &&
|
480
507
|
events_count == o.events_count &&
|
@@ -501,7 +528,7 @@ module LagoAPI
|
|
501
528
|
# Calculates hash code according to all attributes.
|
502
529
|
# @return [Integer] Hash code
|
503
530
|
def hash
|
504
|
-
[lago_id, lago_group_id, lago_invoice_id, lago_true_up_fee_id, lago_true_up_parent_fee_id, lago_subscription_id, lago_customer_id, external_customer_id, external_subscription_id, amount_cents, amount_currency, taxes_amount_cents, taxes_rate, units, total_amount_cents, total_amount_currency, events_count, pay_in_advance, invoiceable, from_date, to_date, payment_status, created_at, succeeded_at, failed_at, refunded_at, event_transaction_id, item, applied_taxes].hash
|
531
|
+
[lago_id, lago_group_id, lago_invoice_id, lago_true_up_fee_id, lago_true_up_parent_fee_id, lago_subscription_id, lago_customer_id, external_customer_id, external_subscription_id, invoice_display_name, amount_cents, amount_currency, taxes_amount_cents, taxes_rate, units, precise_unit_amount, total_amount_cents, total_amount_currency, events_count, pay_in_advance, invoiceable, from_date, to_date, payment_status, created_at, succeeded_at, failed_at, refunded_at, event_transaction_id, item, applied_taxes].hash
|
505
532
|
end
|
506
533
|
|
507
534
|
# Builds the object from hash
|
@@ -566,7 +593,7 @@ module LagoAPI
|
|
566
593
|
else # model
|
567
594
|
# models (e.g. Pet) or oneOf
|
568
595
|
klass = LagoAPI.const_get(type)
|
569
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
596
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
570
597
|
end
|
571
598
|
end
|
572
599
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -25,6 +25,12 @@ module LagoAPI
|
|
25
25
|
# The name of the fee item. It can be the name of the `add-on`, the name of the `charge`, the name of the `credit` or the name of the `subscription`.
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name.
|
29
|
+
attr_accessor :invoice_display_name
|
30
|
+
|
31
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name.
|
32
|
+
attr_accessor :group_invoice_display_name
|
33
|
+
|
28
34
|
# Unique identifier of the fee item, created by Lago. It can be the identifier of the `add-on`, the identifier of the `charge`, the identifier of the `credit` or the identifier of the `subscription`.
|
29
35
|
attr_accessor :lago_item_id
|
30
36
|
|
@@ -59,6 +65,8 @@ module LagoAPI
|
|
59
65
|
:'type' => :'type',
|
60
66
|
:'code' => :'code',
|
61
67
|
:'name' => :'name',
|
68
|
+
:'invoice_display_name' => :'invoice_display_name',
|
69
|
+
:'group_invoice_display_name' => :'group_invoice_display_name',
|
62
70
|
:'lago_item_id' => :'lago_item_id',
|
63
71
|
:'item_type' => :'item_type'
|
64
72
|
}
|
@@ -75,6 +83,8 @@ module LagoAPI
|
|
75
83
|
:'type' => :'String',
|
76
84
|
:'code' => :'String',
|
77
85
|
:'name' => :'String',
|
86
|
+
:'invoice_display_name' => :'String',
|
87
|
+
:'group_invoice_display_name' => :'String',
|
78
88
|
:'lago_item_id' => :'String',
|
79
89
|
:'item_type' => :'String'
|
80
90
|
}
|
@@ -119,6 +129,14 @@ module LagoAPI
|
|
119
129
|
self.name = nil
|
120
130
|
end
|
121
131
|
|
132
|
+
if attributes.key?(:'invoice_display_name')
|
133
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'group_invoice_display_name')
|
137
|
+
self.group_invoice_display_name = attributes[:'group_invoice_display_name']
|
138
|
+
end
|
139
|
+
|
122
140
|
if attributes.key?(:'lago_item_id')
|
123
141
|
self.lago_item_id = attributes[:'lago_item_id']
|
124
142
|
else
|
@@ -204,6 +222,8 @@ module LagoAPI
|
|
204
222
|
type == o.type &&
|
205
223
|
code == o.code &&
|
206
224
|
name == o.name &&
|
225
|
+
invoice_display_name == o.invoice_display_name &&
|
226
|
+
group_invoice_display_name == o.group_invoice_display_name &&
|
207
227
|
lago_item_id == o.lago_item_id &&
|
208
228
|
item_type == o.item_type
|
209
229
|
end
|
@@ -217,7 +237,7 @@ module LagoAPI
|
|
217
237
|
# Calculates hash code according to all attributes.
|
218
238
|
# @return [Integer] Hash code
|
219
239
|
def hash
|
220
|
-
[type, code, name, lago_item_id, item_type].hash
|
240
|
+
[type, code, name, invoice_display_name, group_invoice_display_name, lago_item_id, item_type].hash
|
221
241
|
end
|
222
242
|
|
223
243
|
# Builds the object from hash
|
@@ -282,7 +302,7 @@ module LagoAPI
|
|
282
302
|
else # model
|
283
303
|
# models (e.g. Pet) or oneOf
|
284
304
|
klass = LagoAPI.const_get(type)
|
285
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
305
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
286
306
|
end
|
287
307
|
end
|
288
308
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -166,7 +166,7 @@ module LagoAPI
|
|
166
166
|
else # model
|
167
167
|
# models (e.g. Pet) or oneOf
|
168
168
|
klass = LagoAPI.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -201,7 +201,7 @@ module LagoAPI
|
|
201
201
|
else # model
|
202
202
|
# models (e.g. Pet) or oneOf
|
203
203
|
klass = LagoAPI.const_get(type)
|
204
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
204
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -168,7 +168,7 @@ module LagoAPI
|
|
168
168
|
else # model
|
169
169
|
# models (e.g. Pet) or oneOf
|
170
170
|
klass = LagoAPI.const_get(type)
|
171
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
171
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
172
|
end
|
173
173
|
end
|
174
174
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -191,7 +191,7 @@ module LagoAPI
|
|
191
191
|
else # model
|
192
192
|
# models (e.g. Pet) or oneOf
|
193
193
|
klass = LagoAPI.const_get(type)
|
194
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
194
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
195
195
|
end
|
196
196
|
end
|
197
197
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -166,7 +166,7 @@ module LagoAPI
|
|
166
166
|
else # model
|
167
167
|
# models (e.g. Pet) or oneOf
|
168
168
|
klass = LagoAPI.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -167,7 +167,7 @@ module LagoAPI
|
|
167
167
|
else # model
|
168
168
|
# models (e.g. Pet) or oneOf
|
169
169
|
klass = LagoAPI.const_get(type)
|
170
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -201,7 +201,7 @@ module LagoAPI
|
|
201
201
|
else # model
|
202
202
|
# models (e.g. Pet) or oneOf
|
203
203
|
klass = LagoAPI.const_get(type)
|
204
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
204
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
205
205
|
end
|
206
206
|
end
|
207
207
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -18,12 +18,16 @@ module LagoAPI
|
|
18
18
|
# Unique identifier of a billable metric group, created by Lago.
|
19
19
|
attr_accessor :group_id
|
20
20
|
|
21
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual group will be used as the default display name.
|
22
|
+
attr_accessor :invoice_display_name
|
23
|
+
|
21
24
|
attr_accessor :values
|
22
25
|
|
23
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
27
|
def self.attribute_map
|
25
28
|
{
|
26
29
|
:'group_id' => :'group_id',
|
30
|
+
:'invoice_display_name' => :'invoice_display_name',
|
27
31
|
:'values' => :'values'
|
28
32
|
}
|
29
33
|
end
|
@@ -37,6 +41,7 @@ module LagoAPI
|
|
37
41
|
def self.openapi_types
|
38
42
|
{
|
39
43
|
:'group_id' => :'String',
|
44
|
+
:'invoice_display_name' => :'String',
|
40
45
|
:'values' => :'GroupPropertiesObjectValues'
|
41
46
|
}
|
42
47
|
end
|
@@ -68,6 +73,10 @@ module LagoAPI
|
|
68
73
|
self.group_id = nil
|
69
74
|
end
|
70
75
|
|
76
|
+
if attributes.key?(:'invoice_display_name')
|
77
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
78
|
+
end
|
79
|
+
|
71
80
|
if attributes.key?(:'values')
|
72
81
|
self.values = attributes[:'values']
|
73
82
|
else
|
@@ -106,6 +115,7 @@ module LagoAPI
|
|
106
115
|
return true if self.equal?(o)
|
107
116
|
self.class == o.class &&
|
108
117
|
group_id == o.group_id &&
|
118
|
+
invoice_display_name == o.invoice_display_name &&
|
109
119
|
values == o.values
|
110
120
|
end
|
111
121
|
|
@@ -118,7 +128,7 @@ module LagoAPI
|
|
118
128
|
# Calculates hash code according to all attributes.
|
119
129
|
# @return [Integer] Hash code
|
120
130
|
def hash
|
121
|
-
[group_id, values].hash
|
131
|
+
[group_id, invoice_display_name, values].hash
|
122
132
|
end
|
123
133
|
|
124
134
|
# Builds the object from hash
|
@@ -183,7 +193,7 @@ module LagoAPI
|
|
183
193
|
else # model
|
184
194
|
# models (e.g. Pet) or oneOf
|
185
195
|
klass = LagoAPI.const_get(type)
|
186
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
196
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
197
|
end
|
188
198
|
end
|
189
199
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -367,7 +367,7 @@ module LagoAPI
|
|
367
367
|
else # model
|
368
368
|
# models (e.g. Pet) or oneOf
|
369
369
|
klass = LagoAPI.const_get(type)
|
370
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
370
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
371
371
|
end
|
372
372
|
end
|
373
373
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -184,7 +184,7 @@ module LagoAPI
|
|
184
184
|
else # model
|
185
185
|
# models (e.g. Pet) or oneOf
|
186
186
|
klass = LagoAPI.const_get(type)
|
187
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
187
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
188
188
|
end
|
189
189
|
end
|
190
190
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -166,7 +166,7 @@ module LagoAPI
|
|
166
166
|
else # model
|
167
167
|
# models (e.g. Pet) or oneOf
|
168
168
|
klass = LagoAPI.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -266,7 +266,7 @@ module LagoAPI
|
|
266
266
|
else # model
|
267
267
|
# models (e.g. Pet) or oneOf
|
268
268
|
klass = LagoAPI.const_get(type)
|
269
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
269
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
270
270
|
end
|
271
271
|
end
|
272
272
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -190,7 +190,7 @@ module LagoAPI
|
|
190
190
|
else # model
|
191
191
|
# models (e.g. Pet) or oneOf
|
192
192
|
klass = LagoAPI.const_get(type)
|
193
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
193
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
194
194
|
end
|
195
195
|
end
|
196
196
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -556,7 +556,7 @@ module LagoAPI
|
|
556
556
|
else # model
|
557
557
|
# models (e.g. Pet) or oneOf
|
558
558
|
klass = LagoAPI.const_get(type)
|
559
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
559
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
560
560
|
end
|
561
561
|
end
|
562
562
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -469,7 +469,7 @@ module LagoAPI
|
|
469
469
|
else # model
|
470
470
|
# models (e.g. Pet) or oneOf
|
471
471
|
klass = LagoAPI.const_get(type)
|
472
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
472
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
473
473
|
end
|
474
474
|
end
|
475
475
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -596,7 +596,7 @@ module LagoAPI
|
|
596
596
|
else # model
|
597
597
|
# models (e.g. Pet) or oneOf
|
598
598
|
klass = LagoAPI.const_get(type)
|
599
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
599
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
600
600
|
end
|
601
601
|
end
|
602
602
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -166,7 +166,7 @@ module LagoAPI
|
|
166
166
|
else # model
|
167
167
|
# models (e.g. Pet) or oneOf
|
168
168
|
klass = LagoAPI.const_get(type)
|
169
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
169
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
170
170
|
end
|
171
171
|
end
|
172
172
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -194,7 +194,7 @@ module LagoAPI
|
|
194
194
|
else # model
|
195
195
|
# models (e.g. Pet) or oneOf
|
196
196
|
klass = LagoAPI.const_get(type)
|
197
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
197
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
198
198
|
end
|
199
199
|
end
|
200
200
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 0.
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
@@ -18,6 +18,9 @@ module LagoAPI
|
|
18
18
|
# The code of the add-on used as invoice item.
|
19
19
|
attr_accessor :add_on_code
|
20
20
|
|
21
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual charge will be used as the default display name.
|
22
|
+
attr_accessor :invoice_display_name
|
23
|
+
|
21
24
|
# The amount of the fee per unit, expressed in cents. By default, the amount of the add-on is used.
|
22
25
|
attr_accessor :unit_amount_cents
|
23
26
|
|
@@ -34,6 +37,7 @@ module LagoAPI
|
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
36
39
|
:'add_on_code' => :'add_on_code',
|
40
|
+
:'invoice_display_name' => :'invoice_display_name',
|
37
41
|
:'unit_amount_cents' => :'unit_amount_cents',
|
38
42
|
:'units' => :'units',
|
39
43
|
:'description' => :'description',
|
@@ -50,6 +54,7 @@ module LagoAPI
|
|
50
54
|
def self.openapi_types
|
51
55
|
{
|
52
56
|
:'add_on_code' => :'String',
|
57
|
+
:'invoice_display_name' => :'String',
|
53
58
|
:'unit_amount_cents' => :'Integer',
|
54
59
|
:'units' => :'String',
|
55
60
|
:'description' => :'String',
|
@@ -87,6 +92,10 @@ module LagoAPI
|
|
87
92
|
self.add_on_code = nil
|
88
93
|
end
|
89
94
|
|
95
|
+
if attributes.key?(:'invoice_display_name')
|
96
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
97
|
+
end
|
98
|
+
|
90
99
|
if attributes.key?(:'unit_amount_cents')
|
91
100
|
self.unit_amount_cents = attributes[:'unit_amount_cents']
|
92
101
|
end
|
@@ -149,6 +158,7 @@ module LagoAPI
|
|
149
158
|
return true if self.equal?(o)
|
150
159
|
self.class == o.class &&
|
151
160
|
add_on_code == o.add_on_code &&
|
161
|
+
invoice_display_name == o.invoice_display_name &&
|
152
162
|
unit_amount_cents == o.unit_amount_cents &&
|
153
163
|
units == o.units &&
|
154
164
|
description == o.description &&
|
@@ -164,7 +174,7 @@ module LagoAPI
|
|
164
174
|
# Calculates hash code according to all attributes.
|
165
175
|
# @return [Integer] Hash code
|
166
176
|
def hash
|
167
|
-
[add_on_code, unit_amount_cents, units, description, tax_codes].hash
|
177
|
+
[add_on_code, invoice_display_name, unit_amount_cents, units, description, tax_codes].hash
|
168
178
|
end
|
169
179
|
|
170
180
|
# Builds the object from hash
|
@@ -229,7 +239,7 @@ module LagoAPI
|
|
229
239
|
else # model
|
230
240
|
# models (e.g. Pet) or oneOf
|
231
241
|
klass = LagoAPI.const_get(type)
|
232
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
242
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
233
243
|
end
|
234
244
|
end
|
235
245
|
|