lago_ruby 0.51.0.pre.beta → 0.52.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/README.md +18 -4
- data/docs/AddOnCreateInputAddOn.md +1 -1
- data/docs/AnalyticsApi.md +299 -0
- data/docs/CreditNoteItemObjectFee.md +4 -4
- data/docs/CustomerChargeUsageObjectCharge.md +3 -1
- data/docs/CustomersApi.md +70 -0
- data/docs/FeeObject.md +4 -4
- data/docs/GenerateCustomerCheckoutURL200Response.md +24 -0
- data/docs/GrossRevenueObject.md +22 -0
- data/docs/GrossRevenues.md +18 -0
- data/docs/InvoicedUsageObject.md +24 -0
- data/docs/InvoicedUsages.md +18 -0
- data/docs/MrrObject.md +22 -0
- data/docs/Mrrs.md +18 -0
- data/docs/OrganizationObject.md +2 -0
- data/docs/OrganizationUpdateInputOrganization.md +2 -0
- data/docs/OutstandingInvoiceObject.md +26 -0
- data/docs/OutstandingInvoices.md +18 -0
- data/docs/PlanOverridesObjectChargesInner.md +2 -0
- data/lago_ruby.gemspec +1 -1
- data/lib/lago_ruby/api/add_ons_api.rb +1 -1
- data/lib/lago_ruby/api/analytics_api.rb +268 -0
- 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 +1 -1
- data/lib/lago_ruby/api/customers_api.rb +64 -1
- data/lib/lago_ruby/api/events_api.rb +1 -1
- 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 +1 -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 +1 -1
- data/lib/lago_ruby/api_error.rb +1 -1
- data/lib/lago_ruby/configuration.rb +1 -1
- data/lib/lago_ruby/models/add_on.rb +1 -1
- data/lib/lago_ruby/models/add_on_base_input.rb +1 -1
- data/lib/lago_ruby/models/add_on_create_input.rb +1 -1
- data/lib/lago_ruby/models/add_on_create_input_add_on.rb +1 -1
- data/lib/lago_ruby/models/add_on_object.rb +1 -1
- data/lib/lago_ruby/models/add_on_update_input.rb +1 -1
- data/lib/lago_ruby/models/add_ons_paginated.rb +1 -1
- data/lib/lago_ruby/models/api_error_bad_request.rb +1 -1
- data/lib/lago_ruby/models/api_error_forbidden.rb +1 -1
- data/lib/lago_ruby/models/api_error_not_allowed.rb +1 -1
- data/lib/lago_ruby/models/api_error_not_found.rb +1 -1
- data/lib/lago_ruby/models/api_error_unauthorized.rb +1 -1
- data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +1 -1
- data/lib/lago_ruby/models/applied_coupon.rb +1 -1
- data/lib/lago_ruby/models/applied_coupon_input.rb +1 -1
- data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +1 -1
- data/lib/lago_ruby/models/applied_coupon_object.rb +1 -1
- data/lib/lago_ruby/models/applied_coupon_object_extended.rb +1 -1
- data/lib/lago_ruby/models/applied_coupons_paginated.rb +1 -1
- data/lib/lago_ruby/models/base_applied_tax.rb +1 -1
- data/lib/lago_ruby/models/billable_metric.rb +1 -1
- data/lib/lago_ruby/models/billable_metric_base_input.rb +1 -1
- data/lib/lago_ruby/models/billable_metric_create_input.rb +1 -1
- data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +1 -1
- data/lib/lago_ruby/models/billable_metric_group.rb +1 -1
- 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 +1 -1
- data/lib/lago_ruby/models/billable_metric_object.rb +1 -1
- data/lib/lago_ruby/models/billable_metric_update_input.rb +1 -1
- data/lib/lago_ruby/models/billable_metrics_paginated.rb +1 -1
- data/lib/lago_ruby/models/charge_object.rb +1 -1
- data/lib/lago_ruby/models/charge_object_properties.rb +1 -1
- data/lib/lago_ruby/models/charge_properties.rb +1 -1
- data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +1 -1
- data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +1 -1
- data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +1 -1
- data/lib/lago_ruby/models/country.rb +1 -1
- data/lib/lago_ruby/models/coupon.rb +1 -1
- data/lib/lago_ruby/models/coupon_base_input.rb +1 -1
- data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +1 -1
- data/lib/lago_ruby/models/coupon_create_input.rb +1 -1
- data/lib/lago_ruby/models/coupon_create_input_coupon.rb +1 -1
- data/lib/lago_ruby/models/coupon_object.rb +1 -1
- data/lib/lago_ruby/models/coupon_update_input.rb +1 -1
- data/lib/lago_ruby/models/coupons_paginated.rb +1 -1
- data/lib/lago_ruby/models/credit_note.rb +1 -1
- data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +1 -1
- data/lib/lago_ruby/models/credit_note_create_input.rb +1 -1
- data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimate_input.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimate_input_credit_note.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimate_input_credit_note_items_inner.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimated.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner.rb +1 -1
- data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner.rb +1 -1
- data/lib/lago_ruby/models/credit_note_item_object.rb +1 -1
- data/lib/lago_ruby/models/credit_note_item_object_fee.rb +5 -5
- data/lib/lago_ruby/models/credit_note_object.rb +1 -1
- data/lib/lago_ruby/models/credit_note_update_input.rb +1 -1
- data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +1 -1
- data/lib/lago_ruby/models/credit_notes.rb +1 -1
- data/lib/lago_ruby/models/credit_object.rb +1 -1
- data/lib/lago_ruby/models/credit_object_invoice.rb +1 -1
- data/lib/lago_ruby/models/credit_object_item.rb +1 -1
- data/lib/lago_ruby/models/currency.rb +1 -1
- data/lib/lago_ruby/models/customer.rb +1 -1
- data/lib/lago_ruby/models/customer_billing_configuration.rb +1 -1
- data/lib/lago_ruby/models/customer_charge_usage_object.rb +1 -1
- data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +1 -1
- data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +15 -5
- data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +1 -1
- data/lib/lago_ruby/models/customer_create_input.rb +1 -1
- data/lib/lago_ruby/models/customer_create_input_customer.rb +1 -1
- data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +1 -1
- data/lib/lago_ruby/models/customer_metadata.rb +1 -1
- data/lib/lago_ruby/models/customer_object.rb +1 -1
- data/lib/lago_ruby/models/customer_object_extended.rb +1 -1
- data/lib/lago_ruby/models/customer_past_usage.rb +1 -1
- data/lib/lago_ruby/models/customer_usage.rb +1 -1
- data/lib/lago_ruby/models/customer_usage_object.rb +1 -1
- data/lib/lago_ruby/models/customers_paginated.rb +1 -1
- data/lib/lago_ruby/models/event.rb +1 -1
- data/lib/lago_ruby/models/event_batch_input.rb +1 -1
- data/lib/lago_ruby/models/event_batch_input_event.rb +1 -1
- data/lib/lago_ruby/models/event_batch_input_event_properties.rb +1 -1
- data/lib/lago_ruby/models/event_estimate_fees_input.rb +1 -1
- data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +1 -1
- data/lib/lago_ruby/models/event_input.rb +1 -1
- data/lib/lago_ruby/models/event_input_event.rb +1 -1
- data/lib/lago_ruby/models/event_input_event_timestamp.rb +1 -1
- data/lib/lago_ruby/models/event_object.rb +1 -1
- data/lib/lago_ruby/models/event_object_properties.rb +1 -1
- data/lib/lago_ruby/models/fee.rb +1 -1
- data/lib/lago_ruby/models/fee_applied_tax_object.rb +1 -1
- data/lib/lago_ruby/models/fee_object.rb +5 -5
- data/lib/lago_ruby/models/fee_object_item.rb +1 -1
- data/lib/lago_ruby/models/fee_update_input.rb +1 -1
- data/lib/lago_ruby/models/fee_update_input_fee.rb +1 -1
- data/lib/lago_ruby/models/fees.rb +1 -1
- data/lib/lago_ruby/models/fees_paginated.rb +1 -1
- data/lib/lago_ruby/models/generate_customer_checkout_url200_response.rb +246 -0
- data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +1 -1
- data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +1 -1
- data/lib/lago_ruby/models/gross_revenue_object.rb +241 -0
- data/lib/lago_ruby/models/gross_revenues.rb +223 -0
- data/lib/lago_ruby/models/group_object.rb +1 -1
- data/lib/lago_ruby/models/group_properties_object.rb +1 -1
- data/lib/lago_ruby/models/group_properties_object_values.rb +1 -1
- data/lib/lago_ruby/models/groups_paginated.rb +1 -1
- data/lib/lago_ruby/models/invoice.rb +1 -1
- data/lib/lago_ruby/models/invoice_applied_tax_object.rb +1 -1
- data/lib/lago_ruby/models/invoice_metadata_object.rb +1 -1
- data/lib/lago_ruby/models/invoice_object.rb +1 -1
- data/lib/lago_ruby/models/invoice_object_customer.rb +1 -1
- data/lib/lago_ruby/models/invoice_object_extended.rb +1 -1
- data/lib/lago_ruby/models/invoice_one_off_create_input.rb +1 -1
- data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +1 -1
- data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +1 -1
- data/lib/lago_ruby/models/invoice_update_input.rb +1 -1
- data/lib/lago_ruby/models/invoice_update_input_invoice.rb +1 -1
- data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +1 -1
- data/lib/lago_ruby/models/invoiced_usage_object.rb +265 -0
- data/lib/lago_ruby/models/invoiced_usages.rb +223 -0
- data/lib/lago_ruby/models/invoices_paginated.rb +1 -1
- data/lib/lago_ruby/models/mrr_object.rb +241 -0
- data/lib/lago_ruby/models/mrrs.rb +223 -0
- data/lib/lago_ruby/models/organization.rb +1 -1
- data/lib/lago_ruby/models/organization_billing_configuration.rb +1 -1
- data/lib/lago_ruby/models/organization_object.rb +11 -2
- data/lib/lago_ruby/models/organization_update_input.rb +1 -1
- data/lib/lago_ruby/models/organization_update_input_organization.rb +11 -2
- data/lib/lago_ruby/models/outstanding_invoice_object.rb +309 -0
- data/lib/lago_ruby/models/outstanding_invoices.rb +223 -0
- data/lib/lago_ruby/models/pagination_meta.rb +1 -1
- data/lib/lago_ruby/models/plan.rb +1 -1
- data/lib/lago_ruby/models/plan_create_input.rb +1 -1
- data/lib/lago_ruby/models/plan_create_input_plan.rb +1 -1
- data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +1 -1
- data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +1 -1
- data/lib/lago_ruby/models/plan_object.rb +1 -1
- data/lib/lago_ruby/models/plan_overrides_object.rb +1 -1
- data/lib/lago_ruby/models/plan_overrides_object_charges_inner.rb +12 -2
- data/lib/lago_ruby/models/plan_update_input.rb +1 -1
- data/lib/lago_ruby/models/plan_update_input_plan.rb +1 -1
- data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +1 -1
- data/lib/lago_ruby/models/plans_paginated.rb +1 -1
- data/lib/lago_ruby/models/subscription.rb +1 -1
- data/lib/lago_ruby/models/subscription_create_input.rb +1 -1
- data/lib/lago_ruby/models/subscription_create_input_subscription.rb +1 -1
- data/lib/lago_ruby/models/subscription_object.rb +1 -1
- data/lib/lago_ruby/models/subscription_object_extended.rb +1 -1
- data/lib/lago_ruby/models/subscription_update_input.rb +1 -1
- data/lib/lago_ruby/models/subscription_update_input_subscription.rb +1 -1
- data/lib/lago_ruby/models/subscriptions_paginated.rb +1 -1
- data/lib/lago_ruby/models/tax.rb +1 -1
- data/lib/lago_ruby/models/tax_base_input.rb +1 -1
- data/lib/lago_ruby/models/tax_create_input.rb +1 -1
- data/lib/lago_ruby/models/tax_create_input_tax.rb +1 -1
- data/lib/lago_ruby/models/tax_object.rb +1 -1
- data/lib/lago_ruby/models/tax_update_input.rb +1 -1
- data/lib/lago_ruby/models/taxes_paginated.rb +1 -1
- data/lib/lago_ruby/models/timezone.rb +1 -1
- data/lib/lago_ruby/models/wallet.rb +1 -1
- data/lib/lago_ruby/models/wallet_create_input.rb +1 -1
- data/lib/lago_ruby/models/wallet_create_input_wallet.rb +1 -1
- data/lib/lago_ruby/models/wallet_object.rb +1 -1
- data/lib/lago_ruby/models/wallet_transaction_create_input.rb +1 -1
- data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +1 -1
- data/lib/lago_ruby/models/wallet_transaction_object.rb +1 -1
- data/lib/lago_ruby/models/wallet_transactions.rb +1 -1
- data/lib/lago_ruby/models/wallet_transactions_paginated.rb +1 -1
- data/lib/lago_ruby/models/wallet_update_input.rb +1 -1
- data/lib/lago_ruby/models/wallet_update_input_wallet.rb +1 -1
- data/lib/lago_ruby/models/wallets_paginated.rb +1 -1
- data/lib/lago_ruby/models/webhook_endpoint.rb +1 -1
- data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +1 -1
- data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +1 -1
- data/lib/lago_ruby/models/webhook_endpoint_object.rb +1 -1
- data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +1 -1
- data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +1 -1
- data/lib/lago_ruby/version.rb +2 -2
- data/lib/lago_ruby.rb +11 -1
- data/spec/api/analytics_api_spec.rb +85 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/generate_customer_checkout_url200_response_spec.rb +54 -0
- data/spec/models/gross_revenue_object_spec.rb +48 -0
- data/spec/models/gross_revenues_spec.rb +36 -0
- data/spec/models/invoiced_usage_object_spec.rb +54 -0
- data/spec/models/invoiced_usages_spec.rb +36 -0
- data/spec/models/mrr_object_spec.rb +48 -0
- data/spec/models/mrrs_spec.rb +36 -0
- data/spec/models/outstanding_invoice_object_spec.rb +64 -0
- data/spec/models/outstanding_invoices_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- metadata +204 -164
@@ -6,7 +6,7 @@
|
|
6
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
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,6 +22,9 @@ module LagoAPI
|
|
22
22
|
# The pricing model applied to this charge. Possible values are standard, `graduated`, `percentage`, `package` or `volume`.
|
23
23
|
attr_accessor :charge_model
|
24
24
|
|
25
|
+
# 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.
|
26
|
+
attr_accessor :invoice_display_name
|
27
|
+
|
25
28
|
class EnumAttributeValidator
|
26
29
|
attr_reader :datatype
|
27
30
|
attr_reader :allowable_values
|
@@ -48,7 +51,8 @@ module LagoAPI
|
|
48
51
|
def self.attribute_map
|
49
52
|
{
|
50
53
|
:'lago_id' => :'lago_id',
|
51
|
-
:'charge_model' => :'charge_model'
|
54
|
+
:'charge_model' => :'charge_model',
|
55
|
+
:'invoice_display_name' => :'invoice_display_name'
|
52
56
|
}
|
53
57
|
end
|
54
58
|
|
@@ -61,7 +65,8 @@ module LagoAPI
|
|
61
65
|
def self.openapi_types
|
62
66
|
{
|
63
67
|
:'lago_id' => :'String',
|
64
|
-
:'charge_model' => :'String'
|
68
|
+
:'charge_model' => :'String',
|
69
|
+
:'invoice_display_name' => :'String'
|
65
70
|
}
|
66
71
|
end
|
67
72
|
|
@@ -97,6 +102,10 @@ module LagoAPI
|
|
97
102
|
else
|
98
103
|
self.charge_model = nil
|
99
104
|
end
|
105
|
+
|
106
|
+
if attributes.key?(:'invoice_display_name')
|
107
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
108
|
+
end
|
100
109
|
end
|
101
110
|
|
102
111
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -142,7 +151,8 @@ module LagoAPI
|
|
142
151
|
return true if self.equal?(o)
|
143
152
|
self.class == o.class &&
|
144
153
|
lago_id == o.lago_id &&
|
145
|
-
charge_model == o.charge_model
|
154
|
+
charge_model == o.charge_model &&
|
155
|
+
invoice_display_name == o.invoice_display_name
|
146
156
|
end
|
147
157
|
|
148
158
|
# @see the `==` method
|
@@ -154,7 +164,7 @@ module LagoAPI
|
|
154
164
|
# Calculates hash code according to all attributes.
|
155
165
|
# @return [Integer] Hash code
|
156
166
|
def hash
|
157
|
-
[lago_id, charge_model].hash
|
167
|
+
[lago_id, charge_model, invoice_display_name].hash
|
158
168
|
end
|
159
169
|
|
160
170
|
# Builds the object from hash
|
data/lib/lago_ruby/models/fee.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
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
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -30,16 +30,16 @@ module LagoAPI
|
|
30
30
|
# Unique identifier assigned to the parent fee on which the true-up fee is assigned. This identifier establishes the relationship between the parent fee and the associated true-up fee.
|
31
31
|
attr_accessor :lago_true_up_parent_fee_id
|
32
32
|
|
33
|
-
# Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge
|
33
|
+
# Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription.
|
34
34
|
attr_accessor :lago_subscription_id
|
35
35
|
|
36
|
-
# Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge
|
36
|
+
# Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription.
|
37
37
|
attr_accessor :lago_customer_id
|
38
38
|
|
39
|
-
# Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge
|
39
|
+
# Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription.
|
40
40
|
attr_accessor :external_customer_id
|
41
41
|
|
42
|
-
# Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge
|
42
|
+
# Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription.
|
43
43
|
attr_accessor :external_subscription_id
|
44
44
|
|
45
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.
|