lago_ruby 0.49.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/Gemfile.lock +2 -2
- data/README.md +30 -6
- data/docs/AddOnCreateInputAddOn.md +1 -1
- data/docs/AnalyticsApi.md +299 -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 +6 -4
- data/docs/CreditNoteObject.md +2 -2
- data/docs/CreditNotesApi.md +72 -0
- data/docs/CustomerChargeUsageObjectCharge.md +3 -1
- data/docs/CustomersApi.md +70 -0
- data/docs/EventsApi.md +7 -6
- data/docs/FeeObject.md +6 -4
- data/docs/FeeObjectItem.md +2 -0
- 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/PlanOverridesObject.md +32 -0
- data/docs/PlanOverridesObjectChargesInner.md +30 -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/lago_ruby.gemspec +2 -2
- data/lib/lago_ruby/api/add_ons_api.rb +2 -2
- data/lib/lago_ruby/api/analytics_api.rb +268 -0
- 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 +66 -2
- data/lib/lago_ruby/api/customers_api.rb +65 -2
- data/lib/lago_ruby/api/events_api.rb +7 -7
- 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 +2 -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 +2 -2
- data/lib/lago_ruby/api/webhooks_api.rb +2 -2
- data/lib/lago_ruby/api_client.rb +12 -13
- data/lib/lago_ruby/api_error.rb +2 -2
- data/lib/lago_ruby/configuration.rb +2 -2
- data/lib/lago_ruby/models/add_on.rb +3 -3
- data/lib/lago_ruby/models/add_on_base_input.rb +3 -3
- data/lib/lago_ruby/models/add_on_create_input.rb +3 -3
- data/lib/lago_ruby/models/add_on_create_input_add_on.rb +3 -3
- data/lib/lago_ruby/models/add_on_object.rb +3 -3
- data/lib/lago_ruby/models/add_on_update_input.rb +3 -3
- data/lib/lago_ruby/models/add_ons_paginated.rb +3 -3
- data/lib/lago_ruby/models/api_error_bad_request.rb +3 -3
- data/lib/lago_ruby/models/api_error_forbidden.rb +3 -3
- data/lib/lago_ruby/models/api_error_not_allowed.rb +3 -3
- data/lib/lago_ruby/models/api_error_not_found.rb +3 -3
- data/lib/lago_ruby/models/api_error_unauthorized.rb +3 -3
- data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +3 -3
- data/lib/lago_ruby/models/applied_coupon.rb +3 -3
- data/lib/lago_ruby/models/applied_coupon_input.rb +3 -3
- data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +3 -3
- data/lib/lago_ruby/models/applied_coupon_object.rb +3 -3
- data/lib/lago_ruby/models/applied_coupon_object_extended.rb +3 -3
- data/lib/lago_ruby/models/applied_coupons_paginated.rb +3 -3
- data/lib/lago_ruby/models/base_applied_tax.rb +3 -3
- data/lib/lago_ruby/models/billable_metric.rb +3 -3
- data/lib/lago_ruby/models/billable_metric_base_input.rb +3 -3
- data/lib/lago_ruby/models/billable_metric_create_input.rb +3 -3
- data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +3 -3
- data/lib/lago_ruby/models/billable_metric_group.rb +3 -3
- 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 +3 -3
- data/lib/lago_ruby/models/billable_metric_object.rb +3 -3
- data/lib/lago_ruby/models/billable_metric_update_input.rb +3 -3
- data/lib/lago_ruby/models/billable_metrics_paginated.rb +3 -3
- data/lib/lago_ruby/models/charge_object.rb +3 -3
- data/lib/lago_ruby/models/charge_object_properties.rb +3 -3
- data/lib/lago_ruby/models/charge_properties.rb +3 -3
- data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +3 -3
- data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +3 -3
- data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +3 -3
- data/lib/lago_ruby/models/country.rb +2 -2
- data/lib/lago_ruby/models/coupon.rb +3 -3
- data/lib/lago_ruby/models/coupon_base_input.rb +3 -3
- data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +3 -3
- data/lib/lago_ruby/models/coupon_create_input.rb +3 -3
- data/lib/lago_ruby/models/coupon_create_input_coupon.rb +3 -3
- data/lib/lago_ruby/models/coupon_object.rb +3 -3
- data/lib/lago_ruby/models/coupon_update_input.rb +3 -3
- data/lib/lago_ruby/models/coupons_paginated.rb +3 -3
- data/lib/lago_ruby/models/credit_note.rb +3 -3
- data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +3 -3
- data/lib/lago_ruby/models/credit_note_create_input.rb +3 -3
- data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +4 -4
- 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 +3 -3
- data/lib/lago_ruby/models/credit_note_item_object_fee.rb +25 -8
- data/lib/lago_ruby/models/credit_note_object.rb +14 -14
- data/lib/lago_ruby/models/credit_note_update_input.rb +3 -3
- data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +3 -3
- data/lib/lago_ruby/models/credit_notes.rb +3 -3
- data/lib/lago_ruby/models/credit_object.rb +3 -3
- data/lib/lago_ruby/models/credit_object_invoice.rb +3 -3
- data/lib/lago_ruby/models/credit_object_item.rb +3 -3
- data/lib/lago_ruby/models/currency.rb +2 -2
- data/lib/lago_ruby/models/customer.rb +3 -3
- data/lib/lago_ruby/models/customer_billing_configuration.rb +3 -3
- data/lib/lago_ruby/models/customer_charge_usage_object.rb +3 -3
- data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +3 -3
- data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +17 -7
- data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +3 -3
- data/lib/lago_ruby/models/customer_create_input.rb +3 -3
- data/lib/lago_ruby/models/customer_create_input_customer.rb +3 -3
- data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +3 -3
- data/lib/lago_ruby/models/customer_metadata.rb +3 -3
- data/lib/lago_ruby/models/customer_object.rb +3 -3
- data/lib/lago_ruby/models/customer_object_extended.rb +3 -3
- data/lib/lago_ruby/models/customer_past_usage.rb +3 -3
- data/lib/lago_ruby/models/customer_usage.rb +3 -3
- data/lib/lago_ruby/models/customer_usage_object.rb +3 -3
- data/lib/lago_ruby/models/customers_paginated.rb +3 -3
- data/lib/lago_ruby/models/event.rb +3 -3
- data/lib/lago_ruby/models/event_batch_input.rb +3 -3
- data/lib/lago_ruby/models/event_batch_input_event.rb +3 -3
- data/lib/lago_ruby/models/event_batch_input_event_properties.rb +3 -3
- data/lib/lago_ruby/models/event_estimate_fees_input.rb +3 -3
- data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +3 -3
- data/lib/lago_ruby/models/event_input.rb +3 -3
- data/lib/lago_ruby/models/event_input_event.rb +3 -3
- data/lib/lago_ruby/models/event_input_event_timestamp.rb +2 -2
- data/lib/lago_ruby/models/event_object.rb +7 -23
- data/lib/lago_ruby/models/event_object_properties.rb +3 -3
- data/lib/lago_ruby/models/fee.rb +3 -3
- data/lib/lago_ruby/models/fee_applied_tax_object.rb +3 -3
- data/lib/lago_ruby/models/fee_object.rb +25 -8
- data/lib/lago_ruby/models/fee_object_item.rb +14 -4
- data/lib/lago_ruby/models/fee_update_input.rb +3 -3
- data/lib/lago_ruby/models/fee_update_input_fee.rb +3 -3
- data/lib/lago_ruby/models/fees.rb +3 -3
- data/lib/lago_ruby/models/fees_paginated.rb +3 -3
- data/lib/lago_ruby/models/generate_customer_checkout_url200_response.rb +246 -0
- data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +3 -3
- data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +3 -3
- 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 +3 -3
- data/lib/lago_ruby/models/group_properties_object.rb +3 -3
- data/lib/lago_ruby/models/group_properties_object_values.rb +3 -3
- data/lib/lago_ruby/models/groups_paginated.rb +3 -3
- data/lib/lago_ruby/models/invoice.rb +3 -3
- data/lib/lago_ruby/models/invoice_applied_tax_object.rb +3 -3
- data/lib/lago_ruby/models/invoice_metadata_object.rb +3 -3
- data/lib/lago_ruby/models/invoice_object.rb +3 -3
- data/lib/lago_ruby/models/invoice_object_customer.rb +3 -3
- data/lib/lago_ruby/models/invoice_object_extended.rb +3 -3
- data/lib/lago_ruby/models/invoice_one_off_create_input.rb +3 -3
- data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +3 -3
- data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +3 -3
- data/lib/lago_ruby/models/invoice_update_input.rb +3 -3
- data/lib/lago_ruby/models/invoice_update_input_invoice.rb +3 -3
- data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +3 -3
- 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 +3 -3
- 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 +3 -3
- data/lib/lago_ruby/models/organization_billing_configuration.rb +3 -3
- data/lib/lago_ruby/models/organization_object.rb +13 -4
- data/lib/lago_ruby/models/organization_update_input.rb +3 -3
- data/lib/lago_ruby/models/organization_update_input_organization.rb +13 -4
- 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 +3 -3
- data/lib/lago_ruby/models/plan.rb +3 -3
- data/lib/lago_ruby/models/plan_create_input.rb +3 -3
- data/lib/lago_ruby/models/plan_create_input_plan.rb +3 -3
- data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +3 -3
- data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +3 -3
- data/lib/lago_ruby/models/plan_object.rb +3 -3
- data/lib/lago_ruby/models/plan_overrides_object.rb +289 -0
- data/lib/lago_ruby/models/plan_overrides_object_charges_inner.rb +278 -0
- data/lib/lago_ruby/models/plan_update_input.rb +3 -3
- data/lib/lago_ruby/models/plan_update_input_plan.rb +3 -3
- data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +3 -3
- data/lib/lago_ruby/models/plans_paginated.rb +3 -3
- data/lib/lago_ruby/models/subscription.rb +4 -4
- data/lib/lago_ruby/models/subscription_create_input.rb +3 -3
- data/lib/lago_ruby/models/subscription_create_input_subscription.rb +16 -7
- data/lib/lago_ruby/models/subscription_object.rb +3 -3
- data/lib/lago_ruby/models/subscription_object_extended.rb +507 -0
- data/lib/lago_ruby/models/subscription_update_input.rb +3 -3
- data/lib/lago_ruby/models/subscription_update_input_subscription.rb +16 -7
- data/lib/lago_ruby/models/subscriptions_paginated.rb +3 -3
- data/lib/lago_ruby/models/tax.rb +3 -3
- data/lib/lago_ruby/models/tax_base_input.rb +3 -3
- data/lib/lago_ruby/models/tax_create_input.rb +3 -3
- data/lib/lago_ruby/models/tax_create_input_tax.rb +3 -3
- data/lib/lago_ruby/models/tax_object.rb +3 -3
- data/lib/lago_ruby/models/tax_update_input.rb +3 -3
- data/lib/lago_ruby/models/taxes_paginated.rb +3 -3
- data/lib/lago_ruby/models/timezone.rb +2 -2
- data/lib/lago_ruby/models/wallet.rb +3 -3
- data/lib/lago_ruby/models/wallet_create_input.rb +3 -3
- data/lib/lago_ruby/models/wallet_create_input_wallet.rb +3 -3
- data/lib/lago_ruby/models/wallet_object.rb +3 -3
- data/lib/lago_ruby/models/wallet_transaction_create_input.rb +3 -3
- data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +3 -3
- data/lib/lago_ruby/models/wallet_transaction_object.rb +3 -3
- data/lib/lago_ruby/models/wallet_transactions.rb +3 -3
- data/lib/lago_ruby/models/wallet_transactions_paginated.rb +3 -3
- data/lib/lago_ruby/models/wallet_update_input.rb +3 -3
- data/lib/lago_ruby/models/wallet_update_input_wallet.rb +3 -3
- data/lib/lago_ruby/models/wallets_paginated.rb +3 -3
- data/lib/lago_ruby/models/webhook_endpoint.rb +3 -3
- data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +3 -3
- data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +3 -3
- data/lib/lago_ruby/models/webhook_endpoint_object.rb +3 -3
- data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +3 -3
- data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +3 -3
- data/lib/lago_ruby/version.rb +3 -3
- data/lib/lago_ruby.rb +22 -3
- data/spec/api/analytics_api_spec.rb +85 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- 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/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/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 +2 -2
- metadata +237 -159
@@ -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.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
|
|
@@ -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
|
|
data/lib/lago_ruby/version.rb
CHANGED
@@ -3,13 +3,13 @@
|
|
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
|
-
OpenAPI Generator version: 7.
|
9
|
+
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module LagoAPI
|
14
|
-
VERSION = '0.
|
14
|
+
VERSION = '0.52.0-beta'
|
15
15
|
end
|
data/lib/lago_ruby.rb
CHANGED
@@ -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.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
|
|
@@ -66,7 +66,13 @@ require 'lago_ruby/models/credit_note'
|
|
66
66
|
require 'lago_ruby/models/credit_note_applied_tax_object'
|
67
67
|
require 'lago_ruby/models/credit_note_create_input'
|
68
68
|
require 'lago_ruby/models/credit_note_create_input_credit_note'
|
69
|
-
require 'lago_ruby/models/
|
69
|
+
require 'lago_ruby/models/credit_note_estimate_input'
|
70
|
+
require 'lago_ruby/models/credit_note_estimate_input_credit_note'
|
71
|
+
require 'lago_ruby/models/credit_note_estimate_input_credit_note_items_inner'
|
72
|
+
require 'lago_ruby/models/credit_note_estimated'
|
73
|
+
require 'lago_ruby/models/credit_note_estimated_estimated_credit_note'
|
74
|
+
require 'lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner'
|
75
|
+
require 'lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner'
|
70
76
|
require 'lago_ruby/models/credit_note_item_object'
|
71
77
|
require 'lago_ruby/models/credit_note_item_object_fee'
|
72
78
|
require 'lago_ruby/models/credit_note_object'
|
@@ -112,8 +118,11 @@ require 'lago_ruby/models/fee_update_input'
|
|
112
118
|
require 'lago_ruby/models/fee_update_input_fee'
|
113
119
|
require 'lago_ruby/models/fees'
|
114
120
|
require 'lago_ruby/models/fees_paginated'
|
121
|
+
require 'lago_ruby/models/generate_customer_checkout_url200_response'
|
115
122
|
require 'lago_ruby/models/get_customer_portal_url200_response'
|
116
123
|
require 'lago_ruby/models/get_customer_portal_url200_response_customer'
|
124
|
+
require 'lago_ruby/models/gross_revenue_object'
|
125
|
+
require 'lago_ruby/models/gross_revenues'
|
117
126
|
require 'lago_ruby/models/group_object'
|
118
127
|
require 'lago_ruby/models/group_properties_object'
|
119
128
|
require 'lago_ruby/models/group_properties_object_values'
|
@@ -130,12 +139,18 @@ require 'lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner'
|
|
130
139
|
require 'lago_ruby/models/invoice_update_input'
|
131
140
|
require 'lago_ruby/models/invoice_update_input_invoice'
|
132
141
|
require 'lago_ruby/models/invoice_update_input_invoice_metadata_inner'
|
142
|
+
require 'lago_ruby/models/invoiced_usage_object'
|
143
|
+
require 'lago_ruby/models/invoiced_usages'
|
133
144
|
require 'lago_ruby/models/invoices_paginated'
|
145
|
+
require 'lago_ruby/models/mrr_object'
|
146
|
+
require 'lago_ruby/models/mrrs'
|
134
147
|
require 'lago_ruby/models/organization'
|
135
148
|
require 'lago_ruby/models/organization_billing_configuration'
|
136
149
|
require 'lago_ruby/models/organization_object'
|
137
150
|
require 'lago_ruby/models/organization_update_input'
|
138
151
|
require 'lago_ruby/models/organization_update_input_organization'
|
152
|
+
require 'lago_ruby/models/outstanding_invoice_object'
|
153
|
+
require 'lago_ruby/models/outstanding_invoices'
|
139
154
|
require 'lago_ruby/models/pagination_meta'
|
140
155
|
require 'lago_ruby/models/plan'
|
141
156
|
require 'lago_ruby/models/plan_create_input'
|
@@ -143,6 +158,8 @@ require 'lago_ruby/models/plan_create_input_plan'
|
|
143
158
|
require 'lago_ruby/models/plan_create_input_plan_charges_inner'
|
144
159
|
require 'lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner'
|
145
160
|
require 'lago_ruby/models/plan_object'
|
161
|
+
require 'lago_ruby/models/plan_overrides_object'
|
162
|
+
require 'lago_ruby/models/plan_overrides_object_charges_inner'
|
146
163
|
require 'lago_ruby/models/plan_update_input'
|
147
164
|
require 'lago_ruby/models/plan_update_input_plan'
|
148
165
|
require 'lago_ruby/models/plan_update_input_plan_charges_inner'
|
@@ -151,6 +168,7 @@ require 'lago_ruby/models/subscription'
|
|
151
168
|
require 'lago_ruby/models/subscription_create_input'
|
152
169
|
require 'lago_ruby/models/subscription_create_input_subscription'
|
153
170
|
require 'lago_ruby/models/subscription_object'
|
171
|
+
require 'lago_ruby/models/subscription_object_extended'
|
154
172
|
require 'lago_ruby/models/subscription_update_input'
|
155
173
|
require 'lago_ruby/models/subscription_update_input_subscription'
|
156
174
|
require 'lago_ruby/models/subscriptions_paginated'
|
@@ -183,6 +201,7 @@ require 'lago_ruby/models/webhook_endpoints_paginated'
|
|
183
201
|
|
184
202
|
# APIs
|
185
203
|
require 'lago_ruby/api/add_ons_api'
|
204
|
+
require 'lago_ruby/api/analytics_api'
|
186
205
|
require 'lago_ruby/api/billable_metrics_api'
|
187
206
|
require 'lago_ruby/api/coupons_api'
|
188
207
|
require 'lago_ruby/api/credit_notes_api'
|
@@ -0,0 +1,85 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for LagoAPI::AnalyticsApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AnalyticsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = LagoAPI::AnalyticsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AnalyticsApi' do
|
30
|
+
it 'should create an instance of AnalyticsApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(LagoAPI::AnalyticsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for find_all_gross_revenues
|
36
|
+
# List gross revenue
|
37
|
+
# Gross revenue is the sum of monthly `finalized` invoice payments and fees paid in advance that are not invoiceable. This total is calculated after deducting taxes and discounts.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [Currency] :currency Currency of revenue analytics. Format must be ISO 4217.
|
40
|
+
# @option opts [String] :external_customer_id The customer external unique identifier (provided by your own application). Use it to filter revenue analytics at the customer level.
|
41
|
+
# @return [GrossRevenues]
|
42
|
+
describe 'find_all_gross_revenues test' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# unit tests for find_all_invoiced_usages
|
49
|
+
# List usage revenue
|
50
|
+
# Reports a monthly analysis focused on the revenue generated from all usage-based fees. It exclusively accounts for revenue that has been formally invoiced. Importantly, this report does not include revenue related to the usage in the current billing period, limiting its scope to previously invoiced amounts.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @option opts [Currency] :currency The currency of invoiced usage analytics. Format must be ISO 4217.
|
53
|
+
# @return [InvoicedUsages]
|
54
|
+
describe 'find_all_invoiced_usages test' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for find_all_mrrs
|
61
|
+
# List MRR
|
62
|
+
# This endpoint is used to list MRR.
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @option opts [Currency] :currency Quantifies the revenue generated from `subscription` fees on a monthly basis. This figure is calculated post-application of applicable taxes and prior to the deduction of any applicable discounts. The method of calculation varies based on the subscription billing cycle: - Revenue from `monthly` subscription invoices is included in the MRR for the month in which the invoice is issued. - Revenue from `quarterly` subscription invoices is distributed evenly over three months. This distribution applies to fees paid in advance (allocated to the next three months) as well as to fees paid in arrears (allocated to the preceding three months). - Revenue from `yearly` subscription invoices is distributed evenly over twelve months. This allocation is applicable for fees paid in advance (spread over the next twelve months) and for fees paid in arrears (spread over the previous twelve months). - Revenue from `weekly` subscription invoices, the total revenue from all invoices issued within a month is summed up. This total is then divided by the number of invoices issued during that month, and the result is multiplied by 4.33, representing the average number of weeks in a month.
|
65
|
+
# @option opts [Integer] :months Show data only for given number of months.
|
66
|
+
# @return [Mrrs]
|
67
|
+
describe 'find_all_mrrs test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# unit tests for find_all_outstanding_invoices
|
74
|
+
# List outstanding invoices
|
75
|
+
# Represents a monthly aggregation, detailing both the total count and the cumulative amount of invoices that have been marked as `finalized`. This report sorts invoices categorically based on their `payment_status`.
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @option opts [Currency] :currency The currency of revenue analytics. Format must be ISO 4217.
|
78
|
+
# @return [OutstandingInvoices]
|
79
|
+
describe 'find_all_outstanding_invoices test' do
|
80
|
+
it 'should work' do
|
81
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -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.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
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -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.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
|
|
@@ -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.51.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
|
|
@@ -14,17 +14,19 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for LagoAPI::
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe LagoAPI::
|
21
|
-
let(:instance) { LagoAPI::
|
20
|
+
describe LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner.new }
|
22
22
|
|
23
|
-
describe 'test an instance of
|
24
|
-
it 'should create an instance of
|
25
|
-
|
23
|
+
describe 'test an instance of CreditNoteEstimateInputCreditNoteItemsInner' do
|
24
|
+
it 'should create an instance of CreditNoteEstimateInputCreditNoteItemsInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimateInputCreditNoteItemsInner)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "fee_id"' do
|
29
31
|
it 'should work' do
|
30
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimateInputCreditNote
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::CreditNoteEstimateInputCreditNote do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimateInputCreditNote.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditNoteEstimateInputCreditNote' do
|
24
|
+
it 'should create an instance of CreditNoteEstimateInputCreditNote' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimateInputCreditNote)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "invoice_id"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "items"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimateInput
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::CreditNoteEstimateInput do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimateInput.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditNoteEstimateInput' do
|
24
|
+
it 'should create an instance of CreditNoteEstimateInput' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimateInput)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "credit_note"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner' do
|
24
|
+
it 'should create an instance of CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimatedEstimatedCreditNoteAppliedTaxesInner)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "lago_tax_id"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "tax_name"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "tax_code"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "tax_rate"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "tax_description"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "base_amount_cents"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "amount_cents"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "amount_currency"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditNoteEstimatedEstimatedCreditNoteItemsInner' do
|
24
|
+
it 'should create an instance of CreditNoteEstimatedEstimatedCreditNoteItemsInner' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimatedEstimatedCreditNoteItemsInner)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "amount_cents"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "lago_fee_id"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimatedEstimatedCreditNote
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::CreditNoteEstimatedEstimatedCreditNote do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimatedEstimatedCreditNote.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditNoteEstimatedEstimatedCreditNote' do
|
24
|
+
it 'should create an instance of CreditNoteEstimatedEstimatedCreditNote' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimatedEstimatedCreditNote)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "lago_invoice_id"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "invoice_number"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "currency"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "taxes_amount_cents"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "taxes_rate"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "sub_total_excluding_taxes_amount_cents"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "max_creditable_amount_cents"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "max_refundable_amount_cents"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "coupons_adjustment_amount_cents"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
describe 'test attribute "items"' do
|
85
|
+
it 'should work' do
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
describe 'test attribute "applied_taxes"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.1.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::CreditNoteEstimated
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::CreditNoteEstimated do
|
21
|
+
let(:instance) { LagoAPI::CreditNoteEstimated.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditNoteEstimated' do
|
24
|
+
it 'should create an instance of CreditNoteEstimated' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::CreditNoteEstimated)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "estimated_credit_note"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
=begin
|
2
|
+
#Lago API documentation
|
3
|
+
|
4
|
+
#Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 0.51.0-beta
|
7
|
+
Contact: tech@getlago.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 7.2.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for LagoAPI::GenerateCustomerCheckoutURL200Response
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe LagoAPI::GenerateCustomerCheckoutURL200Response do
|
21
|
+
let(:instance) { LagoAPI::GenerateCustomerCheckoutURL200Response.new }
|
22
|
+
|
23
|
+
describe 'test an instance of GenerateCustomerCheckoutURL200Response' do
|
24
|
+
it 'should create an instance of GenerateCustomerCheckoutURL200Response' do
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(LagoAPI::GenerateCustomerCheckoutURL200Response)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test attribute "lago_customer_id"' do
|
31
|
+
it 'should work' do
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
describe 'test attribute "external_customer_id"' do
|
37
|
+
it 'should work' do
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
describe 'test attribute "payment_provider"' do
|
43
|
+
it 'should work' do
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'test attribute "checkout_url"' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|