lago_ruby 0.46.1.pre.beta → 0.49.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 +1 -1
- data/README.md +15 -10
- data/docs/AddOnBaseInput.md +2 -0
- data/docs/AddOnCreateInputAddOn.md +2 -0
- data/docs/AddOnObject.md +2 -0
- data/docs/BillableMetricBaseInput.md +3 -1
- data/docs/BillableMetricCreateInputBillableMetric.md +3 -1
- data/docs/BillableMetricObject.md +3 -1
- data/docs/ChargeObject.md +2 -0
- data/docs/CouponObject.md +3 -1
- data/docs/CreditNoteItemObjectFee.md +2 -0
- data/docs/CreditObjectItem.md +2 -2
- 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/EventInputEvent.md +2 -2
- data/docs/EventInputEventTimestamp.md +15 -0
- data/docs/EventObject.md +1 -1
- data/docs/FeeObject.md +2 -0
- data/docs/FeeObjectItem.md +2 -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/PlanUpdateInputPlan.md +3 -1
- data/docs/PlanUpdateInputPlanChargesInner.md +2 -0
- data/docs/SubscriptionCreateInputSubscription.md +2 -0
- data/docs/SubscriptionObject.md +2 -0
- data/docs/SubscriptionUpdateInputSubscription.md +2 -0
- data/docs/SubscriptionsApi.md +70 -0
- data/docs/WebhookEndpoint.md +18 -0
- data/docs/WebhookEndpointCreateInput.md +18 -0
- data/docs/WebhookEndpointCreateInputWebhookEndpoint.md +20 -0
- data/docs/WebhookEndpointObject.md +26 -0
- data/docs/WebhookEndpointUpdateInput.md +18 -0
- data/docs/WebhookEndpointsApi.md +28 -28
- data/docs/WebhookEndpointsPaginated.md +20 -0
- data/lago_ruby.gemspec +2 -2
- data/lib/lago_ruby/api/add_ons_api.rb +2 -2
- data/lib/lago_ruby/api/billable_metrics_api.rb +2 -2
- data/lib/lago_ruby/api/coupons_api.rb +2 -2
- data/lib/lago_ruby/api/credit_notes_api.rb +2 -2
- data/lib/lago_ruby/api/customers_api.rb +84 -2
- data/lib/lago_ruby/api/events_api.rb +2 -2
- data/lib/lago_ruby/api/fees_api.rb +2 -2
- data/lib/lago_ruby/api/invoices_api.rb +2 -2
- data/lib/lago_ruby/api/organizations_api.rb +2 -2
- data/lib/lago_ruby/api/plans_api.rb +2 -2
- data/lib/lago_ruby/api/subscriptions_api.rb +65 -2
- data/lib/lago_ruby/api/taxes_api.rb +2 -2
- data/lib/lago_ruby/api/wallets_api.rb +2 -2
- data/lib/lago_ruby/api/webhook_endpoints_api.rb +35 -35
- data/lib/lago_ruby/api/webhooks_api.rb +2 -2
- data/lib/lago_ruby/api_client.rb +4 -3
- data/lib/lago_ruby/api_error.rb +2 -2
- data/lib/lago_ruby/configuration.rb +3 -2
- 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 +29 -6
- data/lib/lago_ruby/models/billable_metric_create_input.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +29 -6
- data/lib/lago_ruby/models/billable_metric_group.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_group_values_inner.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_group_values_inner_one_of.rb +2 -2
- data/lib/lago_ruby/models/billable_metric_object.rb +29 -6
- 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 +2 -2
- 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 +16 -6
- 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 +2 -2
- data/lib/lago_ruby/models/credit_note_create_input_credit_note_items_inner.rb +2 -2
- data/lib/lago_ruby/models/credit_note_item_object.rb +2 -2
- data/lib/lago_ruby/models/credit_note_item_object_fee.rb +13 -3
- data/lib/lago_ruby/models/credit_note_object.rb +2 -2
- 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 +13 -13
- data/lib/lago_ruby/models/currency.rb +2 -2
- 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 +3 -4
- data/lib/lago_ruby/models/event_input_event_timestamp.rb +105 -0
- data/lib/lago_ruby/models/event_object.rb +2 -2
- 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 +13 -3
- data/lib/lago_ruby/models/fee_object_item.rb +13 -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_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 +2 -2
- data/lib/lago_ruby/models/subscription_create_input.rb +2 -2
- data/lib/lago_ruby/models/subscription_create_input_subscription.rb +13 -3
- data/lib/lago_ruby/models/subscription_object.rb +13 -3
- data/lib/lago_ruby/models/subscription_update_input.rb +2 -2
- data/lib/lago_ruby/models/subscription_update_input_subscription.rb +13 -3
- 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 +2 -2
- 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 +221 -0
- data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +214 -0
- data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +267 -0
- data/lib/lago_ruby/models/webhook_endpoint_object.rb +317 -0
- data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +214 -0
- data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +239 -0
- data/lib/lago_ruby/version.rb +3 -3
- data/lib/lago_ruby.rb +10 -7
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/customer_past_usage_spec.rb +42 -0
- data/spec/models/event_input_event_timestamp_spec.rb +21 -0
- data/spec/models/{create_webhook_endpoint_request_spec.rb → webhook_endpoint_create_input_spec.rb} +8 -8
- data/spec/models/{create_webhook_endpoint_request_webhook_endpoint_spec.rb → webhook_endpoint_create_input_webhook_endpoint_spec.rb} +8 -8
- data/spec/models/{create_webhook_endpoint200_response_webhook_endpoint_spec.rb → webhook_endpoint_object_spec.rb} +8 -8
- data/spec/models/{create_webhook_endpoint200_response_spec.rb → webhook_endpoint_spec.rb} +8 -8
- data/spec/models/webhook_endpoint_update_input_spec.rb +34 -0
- data/spec/models/{find_all_webhook_endpoints200_response_spec.rb → webhook_endpoints_paginated_spec.rb} +8 -8
- data/spec/spec_helper.rb +2 -2
- metadata +179 -157
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -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
|
|
@@ -133,6 +136,7 @@ module LagoAPI
|
|
133
136
|
:'lago_customer_id' => :'lago_customer_id',
|
134
137
|
:'external_customer_id' => :'external_customer_id',
|
135
138
|
:'external_subscription_id' => :'external_subscription_id',
|
139
|
+
:'invoice_display_name' => :'invoice_display_name',
|
136
140
|
:'amount_cents' => :'amount_cents',
|
137
141
|
:'amount_currency' => :'amount_currency',
|
138
142
|
:'taxes_amount_cents' => :'taxes_amount_cents',
|
@@ -173,6 +177,7 @@ module LagoAPI
|
|
173
177
|
:'lago_customer_id' => :'String',
|
174
178
|
:'external_customer_id' => :'String',
|
175
179
|
:'external_subscription_id' => :'String',
|
180
|
+
:'invoice_display_name' => :'String',
|
176
181
|
:'amount_cents' => :'Integer',
|
177
182
|
:'amount_currency' => :'Currency',
|
178
183
|
:'taxes_amount_cents' => :'Integer',
|
@@ -276,6 +281,10 @@ module LagoAPI
|
|
276
281
|
self.external_subscription_id = attributes[:'external_subscription_id']
|
277
282
|
end
|
278
283
|
|
284
|
+
if attributes.key?(:'invoice_display_name')
|
285
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
286
|
+
end
|
287
|
+
|
279
288
|
if attributes.key?(:'amount_cents')
|
280
289
|
self.amount_cents = attributes[:'amount_cents']
|
281
290
|
else
|
@@ -477,6 +486,7 @@ module LagoAPI
|
|
477
486
|
lago_customer_id == o.lago_customer_id &&
|
478
487
|
external_customer_id == o.external_customer_id &&
|
479
488
|
external_subscription_id == o.external_subscription_id &&
|
489
|
+
invoice_display_name == o.invoice_display_name &&
|
480
490
|
amount_cents == o.amount_cents &&
|
481
491
|
amount_currency == o.amount_currency &&
|
482
492
|
taxes_amount_cents == o.taxes_amount_cents &&
|
@@ -508,7 +518,7 @@ module LagoAPI
|
|
508
518
|
# Calculates hash code according to all attributes.
|
509
519
|
# @return [Integer] Hash code
|
510
520
|
def hash
|
511
|
-
[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
|
521
|
+
[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, 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
|
512
522
|
end
|
513
523
|
|
514
524
|
# Builds the object from hash
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,7 +17,7 @@ module LagoAPI
|
|
17
17
|
# The item attached to the credit.
|
18
18
|
class CreditObjectItem
|
19
19
|
# Unique identifier assigned to the credit item within the Lago application.
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :lago_item_id
|
21
21
|
|
22
22
|
# The type of credit applied. Possible values are `coupon` or `credit_note`.
|
23
23
|
attr_accessor :type
|
@@ -53,7 +53,7 @@ module LagoAPI
|
|
53
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
54
|
def self.attribute_map
|
55
55
|
{
|
56
|
-
:'
|
56
|
+
:'lago_item_id' => :'lago_item_id',
|
57
57
|
:'type' => :'type',
|
58
58
|
:'code' => :'code',
|
59
59
|
:'name' => :'name'
|
@@ -68,7 +68,7 @@ module LagoAPI
|
|
68
68
|
# Attribute type mapping.
|
69
69
|
def self.openapi_types
|
70
70
|
{
|
71
|
-
:'
|
71
|
+
:'lago_item_id' => :'String',
|
72
72
|
:'type' => :'String',
|
73
73
|
:'code' => :'String',
|
74
74
|
:'name' => :'String'
|
@@ -96,10 +96,10 @@ module LagoAPI
|
|
96
96
|
h[k.to_sym] = v
|
97
97
|
}
|
98
98
|
|
99
|
-
if attributes.key?(:'
|
100
|
-
self.
|
99
|
+
if attributes.key?(:'lago_item_id')
|
100
|
+
self.lago_item_id = attributes[:'lago_item_id']
|
101
101
|
else
|
102
|
-
self.
|
102
|
+
self.lago_item_id = nil
|
103
103
|
end
|
104
104
|
|
105
105
|
if attributes.key?(:'type')
|
@@ -126,8 +126,8 @@ module LagoAPI
|
|
126
126
|
def list_invalid_properties
|
127
127
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
128
128
|
invalid_properties = Array.new
|
129
|
-
if @
|
130
|
-
invalid_properties.push('invalid value for "
|
129
|
+
if @lago_item_id.nil?
|
130
|
+
invalid_properties.push('invalid value for "lago_item_id", lago_item_id cannot be nil.')
|
131
131
|
end
|
132
132
|
|
133
133
|
if @type.nil?
|
@@ -149,7 +149,7 @@ module LagoAPI
|
|
149
149
|
# @return true if the model is valid
|
150
150
|
def valid?
|
151
151
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
152
|
-
return false if @
|
152
|
+
return false if @lago_item_id.nil?
|
153
153
|
return false if @type.nil?
|
154
154
|
type_validator = EnumAttributeValidator.new('String', ["coupon", "credit_note"])
|
155
155
|
return false unless type_validator.valid?(@type)
|
@@ -173,7 +173,7 @@ module LagoAPI
|
|
173
173
|
def ==(o)
|
174
174
|
return true if self.equal?(o)
|
175
175
|
self.class == o.class &&
|
176
|
-
|
176
|
+
lago_item_id == o.lago_item_id &&
|
177
177
|
type == o.type &&
|
178
178
|
code == o.code &&
|
179
179
|
name == o.name
|
@@ -188,7 +188,7 @@ module LagoAPI
|
|
188
188
|
# Calculates hash code according to all attributes.
|
189
189
|
# @return [Integer] Hash code
|
190
190
|
def hash
|
191
|
-
[
|
191
|
+
[lago_item_id, type, code, name].hash
|
192
192
|
end
|
193
193
|
|
194
194
|
# Builds the object from hash
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,6 +18,9 @@ module LagoAPI
|
|
18
18
|
# The number of units consumed by the customer for a specific charge item.
|
19
19
|
attr_accessor :units
|
20
20
|
|
21
|
+
# The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts.
|
22
|
+
attr_accessor :events_count
|
23
|
+
|
21
24
|
# The amount in cents, tax excluded, consumed by the customer for a specific charge item.
|
22
25
|
attr_accessor :amount_cents
|
23
26
|
|
@@ -34,6 +37,7 @@ module LagoAPI
|
|
34
37
|
def self.attribute_map
|
35
38
|
{
|
36
39
|
:'units' => :'units',
|
40
|
+
:'events_count' => :'events_count',
|
37
41
|
:'amount_cents' => :'amount_cents',
|
38
42
|
:'amount_currency' => :'amount_currency',
|
39
43
|
:'charge' => :'charge',
|
@@ -51,6 +55,7 @@ module LagoAPI
|
|
51
55
|
def self.openapi_types
|
52
56
|
{
|
53
57
|
:'units' => :'String',
|
58
|
+
:'events_count' => :'Integer',
|
54
59
|
:'amount_cents' => :'Integer',
|
55
60
|
:'amount_currency' => :'Currency',
|
56
61
|
:'charge' => :'CustomerChargeUsageObjectCharge',
|
@@ -86,6 +91,12 @@ module LagoAPI
|
|
86
91
|
self.units = nil
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.key?(:'events_count')
|
95
|
+
self.events_count = attributes[:'events_count']
|
96
|
+
else
|
97
|
+
self.events_count = nil
|
98
|
+
end
|
99
|
+
|
89
100
|
if attributes.key?(:'amount_cents')
|
90
101
|
self.amount_cents = attributes[:'amount_cents']
|
91
102
|
else
|
@@ -133,6 +144,10 @@ module LagoAPI
|
|
133
144
|
invalid_properties.push("invalid value for \"units\", must conform to the pattern #{pattern}.")
|
134
145
|
end
|
135
146
|
|
147
|
+
if @events_count.nil?
|
148
|
+
invalid_properties.push('invalid value for "events_count", events_count cannot be nil.')
|
149
|
+
end
|
150
|
+
|
136
151
|
if @amount_cents.nil?
|
137
152
|
invalid_properties.push('invalid value for "amount_cents", amount_cents cannot be nil.')
|
138
153
|
end
|
@@ -162,6 +177,7 @@ module LagoAPI
|
|
162
177
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
163
178
|
return false if @units.nil?
|
164
179
|
return false if @units !~ Regexp.new(/^[0-9]+.?[0-9]*$/)
|
180
|
+
return false if @events_count.nil?
|
165
181
|
return false if @amount_cents.nil?
|
166
182
|
return false if @amount_currency.nil?
|
167
183
|
return false if @charge.nil?
|
@@ -191,6 +207,7 @@ module LagoAPI
|
|
191
207
|
return true if self.equal?(o)
|
192
208
|
self.class == o.class &&
|
193
209
|
units == o.units &&
|
210
|
+
events_count == o.events_count &&
|
194
211
|
amount_cents == o.amount_cents &&
|
195
212
|
amount_currency == o.amount_currency &&
|
196
213
|
charge == o.charge &&
|
@@ -207,7 +224,7 @@ module LagoAPI
|
|
207
224
|
# Calculates hash code according to all attributes.
|
208
225
|
# @return [Integer] Hash code
|
209
226
|
def hash
|
210
|
-
[units, amount_cents, amount_currency, charge, billable_metric, groups].hash
|
227
|
+
[units, events_count, amount_cents, amount_currency, charge, billable_metric, groups].hash
|
211
228
|
end
|
212
229
|
|
213
230
|
# Builds the object from hash
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -27,6 +27,9 @@ module LagoAPI
|
|
27
27
|
# The number of units consumed for a specific group related to a charge item.
|
28
28
|
attr_accessor :units
|
29
29
|
|
30
|
+
# The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts.
|
31
|
+
attr_accessor :events_count
|
32
|
+
|
30
33
|
# The amount in cents, tax excluded, consumed for a specific group related to a charge item.
|
31
34
|
attr_accessor :amount_cents
|
32
35
|
|
@@ -37,6 +40,7 @@ module LagoAPI
|
|
37
40
|
:'key' => :'key',
|
38
41
|
:'value' => :'value',
|
39
42
|
:'units' => :'units',
|
43
|
+
:'events_count' => :'events_count',
|
40
44
|
:'amount_cents' => :'amount_cents'
|
41
45
|
}
|
42
46
|
end
|
@@ -53,6 +57,7 @@ module LagoAPI
|
|
53
57
|
:'key' => :'String',
|
54
58
|
:'value' => :'String',
|
55
59
|
:'units' => :'String',
|
60
|
+
:'events_count' => :'Integer',
|
56
61
|
:'amount_cents' => :'Integer'
|
57
62
|
}
|
58
63
|
end
|
@@ -95,6 +100,10 @@ module LagoAPI
|
|
95
100
|
self.units = attributes[:'units']
|
96
101
|
end
|
97
102
|
|
103
|
+
if attributes.key?(:'events_count')
|
104
|
+
self.events_count = attributes[:'events_count']
|
105
|
+
end
|
106
|
+
|
98
107
|
if attributes.key?(:'amount_cents')
|
99
108
|
self.amount_cents = attributes[:'amount_cents']
|
100
109
|
end
|
@@ -145,6 +154,7 @@ module LagoAPI
|
|
145
154
|
key == o.key &&
|
146
155
|
value == o.value &&
|
147
156
|
units == o.units &&
|
157
|
+
events_count == o.events_count &&
|
148
158
|
amount_cents == o.amount_cents
|
149
159
|
end
|
150
160
|
|
@@ -157,7 +167,7 @@ module LagoAPI
|
|
157
167
|
# Calculates hash code according to all attributes.
|
158
168
|
# @return [Integer] Hash code
|
159
169
|
def hash
|
160
|
-
[lago_id, key, value, units, amount_cents].hash
|
170
|
+
[lago_id, key, value, units, events_count, amount_cents].hash
|
161
171
|
end
|
162
172
|
|
163
173
|
# Builds the object from hash
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
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.49.0-beta
|
7
7
|
Contact: tech@getlago.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 7.0
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|