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
|
|
@@ -18,6 +18,9 @@ module LagoAPI
|
|
18
18
|
# The name of the plan.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name.
|
22
|
+
attr_accessor :invoice_display_name
|
23
|
+
|
21
24
|
# The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance.
|
22
25
|
attr_accessor :code
|
23
26
|
|
@@ -73,6 +76,7 @@ module LagoAPI
|
|
73
76
|
def self.attribute_map
|
74
77
|
{
|
75
78
|
:'name' => :'name',
|
79
|
+
:'invoice_display_name' => :'invoice_display_name',
|
76
80
|
:'code' => :'code',
|
77
81
|
:'interval' => :'interval',
|
78
82
|
:'description' => :'description',
|
@@ -95,6 +99,7 @@ module LagoAPI
|
|
95
99
|
def self.openapi_types
|
96
100
|
{
|
97
101
|
:'name' => :'String',
|
102
|
+
:'invoice_display_name' => :'String',
|
98
103
|
:'code' => :'String',
|
99
104
|
:'interval' => :'String',
|
100
105
|
:'description' => :'String',
|
@@ -134,6 +139,10 @@ module LagoAPI
|
|
134
139
|
self.name = attributes[:'name']
|
135
140
|
end
|
136
141
|
|
142
|
+
if attributes.key?(:'invoice_display_name')
|
143
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
144
|
+
end
|
145
|
+
|
137
146
|
if attributes.key?(:'code')
|
138
147
|
self.code = attributes[:'code']
|
139
148
|
end
|
@@ -212,6 +221,7 @@ module LagoAPI
|
|
212
221
|
return true if self.equal?(o)
|
213
222
|
self.class == o.class &&
|
214
223
|
name == o.name &&
|
224
|
+
invoice_display_name == o.invoice_display_name &&
|
215
225
|
code == o.code &&
|
216
226
|
interval == o.interval &&
|
217
227
|
description == o.description &&
|
@@ -233,7 +243,7 @@ module LagoAPI
|
|
233
243
|
# Calculates hash code according to all attributes.
|
234
244
|
# @return [Integer] Hash code
|
235
245
|
def hash
|
236
|
-
[name, code, interval, description, amount_cents, amount_currency, trial_period, pay_in_advance, bill_charges_monthly, tax_codes, charges].hash
|
246
|
+
[name, invoice_display_name, code, interval, description, amount_cents, amount_currency, trial_period, pay_in_advance, bill_charges_monthly, tax_codes, charges].hash
|
237
247
|
end
|
238
248
|
|
239
249
|
# 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
|
|
@@ -27,6 +27,9 @@ module LagoAPI
|
|
27
27
|
# This field specifies whether the charge should be included in a proper invoice. If set to false, no invoice will be issued for this charge. You can only set it to `false` when `pay_in_advance` is `true`.
|
28
28
|
attr_accessor :invoiceable
|
29
29
|
|
30
|
+
# 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.
|
31
|
+
attr_accessor :invoice_display_name
|
32
|
+
|
30
33
|
# Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to `true`, the charge is prorated based on the remaining days in the current billing period. - If set to `false`, the charge is billed in full. - If not defined in the request, default value is `false`.
|
31
34
|
attr_accessor :prorated
|
32
35
|
|
@@ -70,6 +73,7 @@ module LagoAPI
|
|
70
73
|
:'charge_model' => :'charge_model',
|
71
74
|
:'pay_in_advance' => :'pay_in_advance',
|
72
75
|
:'invoiceable' => :'invoiceable',
|
76
|
+
:'invoice_display_name' => :'invoice_display_name',
|
73
77
|
:'prorated' => :'prorated',
|
74
78
|
:'min_amount_cents' => :'min_amount_cents',
|
75
79
|
:'properties' => :'properties',
|
@@ -90,6 +94,7 @@ module LagoAPI
|
|
90
94
|
:'charge_model' => :'String',
|
91
95
|
:'pay_in_advance' => :'Boolean',
|
92
96
|
:'invoiceable' => :'Boolean',
|
97
|
+
:'invoice_display_name' => :'String',
|
93
98
|
:'prorated' => :'Boolean',
|
94
99
|
:'min_amount_cents' => :'Integer',
|
95
100
|
:'properties' => :'ChargeObjectProperties',
|
@@ -135,6 +140,10 @@ module LagoAPI
|
|
135
140
|
self.invoiceable = attributes[:'invoiceable']
|
136
141
|
end
|
137
142
|
|
143
|
+
if attributes.key?(:'invoice_display_name')
|
144
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
145
|
+
end
|
146
|
+
|
138
147
|
if attributes.key?(:'prorated')
|
139
148
|
self.prorated = attributes[:'prorated']
|
140
149
|
end
|
@@ -196,6 +205,7 @@ module LagoAPI
|
|
196
205
|
charge_model == o.charge_model &&
|
197
206
|
pay_in_advance == o.pay_in_advance &&
|
198
207
|
invoiceable == o.invoiceable &&
|
208
|
+
invoice_display_name == o.invoice_display_name &&
|
199
209
|
prorated == o.prorated &&
|
200
210
|
min_amount_cents == o.min_amount_cents &&
|
201
211
|
properties == o.properties &&
|
@@ -212,7 +222,7 @@ module LagoAPI
|
|
212
222
|
# Calculates hash code according to all attributes.
|
213
223
|
# @return [Integer] Hash code
|
214
224
|
def hash
|
215
|
-
[billable_metric_id, charge_model, pay_in_advance, invoiceable, prorated, min_amount_cents, properties, group_properties, tax_codes].hash
|
225
|
+
[billable_metric_id, charge_model, pay_in_advance, invoiceable, invoice_display_name, prorated, min_amount_cents, properties, group_properties, tax_codes].hash
|
216
226
|
end
|
217
227
|
|
218
228
|
# 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
|
|
@@ -21,6 +21,9 @@ module LagoAPI
|
|
21
21
|
# The name of the plan.
|
22
22
|
attr_accessor :name
|
23
23
|
|
24
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name.
|
25
|
+
attr_accessor :invoice_display_name
|
26
|
+
|
24
27
|
# The date and time when the plan was created. It is expressed in UTC format according to the ISO 8601 datetime standard. This field provides the timestamp for the exact moment when the plan was initially created.
|
25
28
|
attr_accessor :created_at
|
26
29
|
|
@@ -86,6 +89,7 @@ module LagoAPI
|
|
86
89
|
{
|
87
90
|
:'lago_id' => :'lago_id',
|
88
91
|
:'name' => :'name',
|
92
|
+
:'invoice_display_name' => :'invoice_display_name',
|
89
93
|
:'created_at' => :'created_at',
|
90
94
|
:'code' => :'code',
|
91
95
|
:'interval' => :'interval',
|
@@ -112,6 +116,7 @@ module LagoAPI
|
|
112
116
|
{
|
113
117
|
:'lago_id' => :'String',
|
114
118
|
:'name' => :'String',
|
119
|
+
:'invoice_display_name' => :'String',
|
115
120
|
:'created_at' => :'Time',
|
116
121
|
:'code' => :'String',
|
117
122
|
:'interval' => :'String',
|
@@ -162,6 +167,10 @@ module LagoAPI
|
|
162
167
|
self.name = nil
|
163
168
|
end
|
164
169
|
|
170
|
+
if attributes.key?(:'invoice_display_name')
|
171
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
172
|
+
end
|
173
|
+
|
165
174
|
if attributes.key?(:'created_at')
|
166
175
|
self.created_at = attributes[:'created_at']
|
167
176
|
else
|
@@ -312,6 +321,7 @@ module LagoAPI
|
|
312
321
|
self.class == o.class &&
|
313
322
|
lago_id == o.lago_id &&
|
314
323
|
name == o.name &&
|
324
|
+
invoice_display_name == o.invoice_display_name &&
|
315
325
|
created_at == o.created_at &&
|
316
326
|
code == o.code &&
|
317
327
|
interval == o.interval &&
|
@@ -336,7 +346,7 @@ module LagoAPI
|
|
336
346
|
# Calculates hash code according to all attributes.
|
337
347
|
# @return [Integer] Hash code
|
338
348
|
def hash
|
339
|
-
[lago_id, name, created_at, code, interval, description, amount_cents, amount_currency, trial_period, pay_in_advance, bill_charges_monthly, active_subscriptions_count, draft_invoices_count, charges, taxes].hash
|
349
|
+
[lago_id, name, invoice_display_name, created_at, code, interval, description, amount_cents, amount_currency, trial_period, pay_in_advance, bill_charges_monthly, active_subscriptions_count, draft_invoices_count, charges, taxes].hash
|
340
350
|
end
|
341
351
|
|
342
352
|
# 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
|
|
@@ -18,6 +18,9 @@ module LagoAPI
|
|
18
18
|
# The name of the plan.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
+
# Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the plan will be used as the default display name.
|
22
|
+
attr_accessor :invoice_display_name
|
23
|
+
|
21
24
|
# The code of the plan. It serves as a unique identifier associated with a particular plan. The code is typically used for internal or system-level identification purposes, like assigning a subscription, for instance.
|
22
25
|
attr_accessor :code
|
23
26
|
|
@@ -73,6 +76,7 @@ module LagoAPI
|
|
73
76
|
def self.attribute_map
|
74
77
|
{
|
75
78
|
:'name' => :'name',
|
79
|
+
:'invoice_display_name' => :'invoice_display_name',
|
76
80
|
:'code' => :'code',
|
77
81
|
:'interval' => :'interval',
|
78
82
|
:'description' => :'description',
|
@@ -95,6 +99,7 @@ module LagoAPI
|
|
95
99
|
def self.openapi_types
|
96
100
|
{
|
97
101
|
:'name' => :'String',
|
102
|
+
:'invoice_display_name' => :'String',
|
98
103
|
:'code' => :'String',
|
99
104
|
:'interval' => :'String',
|
100
105
|
:'description' => :'String',
|
@@ -134,6 +139,10 @@ module LagoAPI
|
|
134
139
|
self.name = attributes[:'name']
|
135
140
|
end
|
136
141
|
|
142
|
+
if attributes.key?(:'invoice_display_name')
|
143
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
144
|
+
end
|
145
|
+
|
137
146
|
if attributes.key?(:'code')
|
138
147
|
self.code = attributes[:'code']
|
139
148
|
end
|
@@ -212,6 +221,7 @@ module LagoAPI
|
|
212
221
|
return true if self.equal?(o)
|
213
222
|
self.class == o.class &&
|
214
223
|
name == o.name &&
|
224
|
+
invoice_display_name == o.invoice_display_name &&
|
215
225
|
code == o.code &&
|
216
226
|
interval == o.interval &&
|
217
227
|
description == o.description &&
|
@@ -233,7 +243,7 @@ module LagoAPI
|
|
233
243
|
# Calculates hash code according to all attributes.
|
234
244
|
# @return [Integer] Hash code
|
235
245
|
def hash
|
236
|
-
[name, code, interval, description, amount_cents, amount_currency, trial_period, pay_in_advance, bill_charges_monthly, tax_codes, charges].hash
|
246
|
+
[name, invoice_display_name, code, interval, description, amount_cents, amount_currency, trial_period, pay_in_advance, bill_charges_monthly, tax_codes, charges].hash
|
237
247
|
end
|
238
248
|
|
239
249
|
# 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
|
|
@@ -30,6 +30,9 @@ module LagoAPI
|
|
30
30
|
# This field specifies whether the charge should be included in a proper invoice. If set to false, no invoice will be issued for this charge. You can only set it to `false` when `pay_in_advance` is `true`.
|
31
31
|
attr_accessor :invoiceable
|
32
32
|
|
33
|
+
# 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.
|
34
|
+
attr_accessor :invoice_display_name
|
35
|
+
|
33
36
|
# Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to `true`, the charge is prorated based on the remaining days in the current billing period. - If set to `false`, the charge is billed in full. - If not defined in the request, default value is `false`.
|
34
37
|
attr_accessor :prorated
|
35
38
|
|
@@ -74,6 +77,7 @@ module LagoAPI
|
|
74
77
|
:'charge_model' => :'charge_model',
|
75
78
|
:'pay_in_advance' => :'pay_in_advance',
|
76
79
|
:'invoiceable' => :'invoiceable',
|
80
|
+
:'invoice_display_name' => :'invoice_display_name',
|
77
81
|
:'prorated' => :'prorated',
|
78
82
|
:'min_amount_cents' => :'min_amount_cents',
|
79
83
|
:'properties' => :'properties',
|
@@ -95,6 +99,7 @@ module LagoAPI
|
|
95
99
|
:'charge_model' => :'String',
|
96
100
|
:'pay_in_advance' => :'Boolean',
|
97
101
|
:'invoiceable' => :'Boolean',
|
102
|
+
:'invoice_display_name' => :'String',
|
98
103
|
:'prorated' => :'Boolean',
|
99
104
|
:'min_amount_cents' => :'Integer',
|
100
105
|
:'properties' => :'ChargeObjectProperties',
|
@@ -144,6 +149,10 @@ module LagoAPI
|
|
144
149
|
self.invoiceable = attributes[:'invoiceable']
|
145
150
|
end
|
146
151
|
|
152
|
+
if attributes.key?(:'invoice_display_name')
|
153
|
+
self.invoice_display_name = attributes[:'invoice_display_name']
|
154
|
+
end
|
155
|
+
|
147
156
|
if attributes.key?(:'prorated')
|
148
157
|
self.prorated = attributes[:'prorated']
|
149
158
|
end
|
@@ -206,6 +215,7 @@ module LagoAPI
|
|
206
215
|
charge_model == o.charge_model &&
|
207
216
|
pay_in_advance == o.pay_in_advance &&
|
208
217
|
invoiceable == o.invoiceable &&
|
218
|
+
invoice_display_name == o.invoice_display_name &&
|
209
219
|
prorated == o.prorated &&
|
210
220
|
min_amount_cents == o.min_amount_cents &&
|
211
221
|
properties == o.properties &&
|
@@ -222,7 +232,7 @@ module LagoAPI
|
|
222
232
|
# Calculates hash code according to all attributes.
|
223
233
|
# @return [Integer] Hash code
|
224
234
|
def hash
|
225
|
-
[id, billable_metric_id, charge_model, pay_in_advance, invoiceable, prorated, min_amount_cents, properties, group_properties, tax_codes].hash
|
235
|
+
[id, billable_metric_id, charge_model, pay_in_advance, invoiceable, invoice_display_name, prorated, min_amount_cents, properties, group_properties, tax_codes].hash
|
226
236
|
end
|
227
237
|
|
228
238
|
# 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
|
|
@@ -30,6 +30,9 @@ module LagoAPI
|
|
30
30
|
# The billing time for the subscription, which can be set as either `anniversary` or `calendar`. If not explicitly provided, it will default to `calendar`. The billing time determines the timing of recurring billing cycles for the subscription. By specifying `anniversary`, the billing cycle will be based on the specific date the subscription started (billed fully), while `calendar` sets the billing cycle at the first day of the week/month/year (billed with proration).
|
31
31
|
attr_accessor :billing_time
|
32
32
|
|
33
|
+
# The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC).
|
34
|
+
attr_accessor :ending_at
|
35
|
+
|
33
36
|
# The start date for the subscription, allowing for the creation of subscriptions that can begin in the past or future. Please note that it cannot be used to update the start date of a pending subscription or schedule an upgrade/downgrade. The start_date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).
|
34
37
|
attr_accessor :subscription_at
|
35
38
|
|
@@ -63,6 +66,7 @@ module LagoAPI
|
|
63
66
|
:'name' => :'name',
|
64
67
|
:'external_id' => :'external_id',
|
65
68
|
:'billing_time' => :'billing_time',
|
69
|
+
:'ending_at' => :'ending_at',
|
66
70
|
:'subscription_at' => :'subscription_at'
|
67
71
|
}
|
68
72
|
end
|
@@ -80,6 +84,7 @@ module LagoAPI
|
|
80
84
|
:'name' => :'String',
|
81
85
|
:'external_id' => :'String',
|
82
86
|
:'billing_time' => :'String',
|
87
|
+
:'ending_at' => :'Time',
|
83
88
|
:'subscription_at' => :'Time'
|
84
89
|
}
|
85
90
|
end
|
@@ -131,6 +136,10 @@ module LagoAPI
|
|
131
136
|
self.billing_time = attributes[:'billing_time']
|
132
137
|
end
|
133
138
|
|
139
|
+
if attributes.key?(:'ending_at')
|
140
|
+
self.ending_at = attributes[:'ending_at']
|
141
|
+
end
|
142
|
+
|
134
143
|
if attributes.key?(:'subscription_at')
|
135
144
|
self.subscription_at = attributes[:'subscription_at']
|
136
145
|
end
|
@@ -188,6 +197,7 @@ module LagoAPI
|
|
188
197
|
name == o.name &&
|
189
198
|
external_id == o.external_id &&
|
190
199
|
billing_time == o.billing_time &&
|
200
|
+
ending_at == o.ending_at &&
|
191
201
|
subscription_at == o.subscription_at
|
192
202
|
end
|
193
203
|
|
@@ -200,7 +210,7 @@ module LagoAPI
|
|
200
210
|
# Calculates hash code according to all attributes.
|
201
211
|
# @return [Integer] Hash code
|
202
212
|
def hash
|
203
|
-
[external_customer_id, plan_code, name, external_id, billing_time, subscription_at].hash
|
213
|
+
[external_customer_id, plan_code, name, external_id, billing_time, ending_at, subscription_at].hash
|
204
214
|
end
|
205
215
|
|
206
216
|
# 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
|
|
@@ -48,6 +48,9 @@ module LagoAPI
|
|
48
48
|
# The effective start date of the subscription. This field can be null if the subscription is `pending` or `canceled`. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).
|
49
49
|
attr_accessor :started_at
|
50
50
|
|
51
|
+
# The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC).
|
52
|
+
attr_accessor :ending_at
|
53
|
+
|
51
54
|
# The anniversary date and time of the initial subscription. This date serves as the basis for billing subscriptions with `anniversary` billing time. The `anniversary_date` should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).
|
52
55
|
attr_accessor :subscription_at
|
53
56
|
|
@@ -99,6 +102,7 @@ module LagoAPI
|
|
99
102
|
:'created_at' => :'created_at',
|
100
103
|
:'canceled_at' => :'canceled_at',
|
101
104
|
:'started_at' => :'started_at',
|
105
|
+
:'ending_at' => :'ending_at',
|
102
106
|
:'subscription_at' => :'subscription_at',
|
103
107
|
:'terminated_at' => :'terminated_at',
|
104
108
|
:'previous_plan_code' => :'previous_plan_code',
|
@@ -126,6 +130,7 @@ module LagoAPI
|
|
126
130
|
:'created_at' => :'Time',
|
127
131
|
:'canceled_at' => :'Time',
|
128
132
|
:'started_at' => :'Time',
|
133
|
+
:'ending_at' => :'Time',
|
129
134
|
:'subscription_at' => :'Time',
|
130
135
|
:'terminated_at' => :'Time',
|
131
136
|
:'previous_plan_code' => :'String',
|
@@ -222,6 +227,10 @@ module LagoAPI
|
|
222
227
|
self.started_at = attributes[:'started_at']
|
223
228
|
end
|
224
229
|
|
230
|
+
if attributes.key?(:'ending_at')
|
231
|
+
self.ending_at = attributes[:'ending_at']
|
232
|
+
end
|
233
|
+
|
225
234
|
if attributes.key?(:'subscription_at')
|
226
235
|
self.subscription_at = attributes[:'subscription_at']
|
227
236
|
else
|
@@ -345,6 +354,7 @@ module LagoAPI
|
|
345
354
|
created_at == o.created_at &&
|
346
355
|
canceled_at == o.canceled_at &&
|
347
356
|
started_at == o.started_at &&
|
357
|
+
ending_at == o.ending_at &&
|
348
358
|
subscription_at == o.subscription_at &&
|
349
359
|
terminated_at == o.terminated_at &&
|
350
360
|
previous_plan_code == o.previous_plan_code &&
|
@@ -361,7 +371,7 @@ module LagoAPI
|
|
361
371
|
# Calculates hash code according to all attributes.
|
362
372
|
# @return [Integer] Hash code
|
363
373
|
def hash
|
364
|
-
[lago_id, external_id, lago_customer_id, external_customer_id, billing_time, name, plan_code, status, created_at, canceled_at, started_at, subscription_at, terminated_at, previous_plan_code, next_plan_code, downgrade_plan_date].hash
|
374
|
+
[lago_id, external_id, lago_customer_id, external_customer_id, billing_time, name, plan_code, status, created_at, canceled_at, started_at, ending_at, subscription_at, terminated_at, previous_plan_code, next_plan_code, downgrade_plan_date].hash
|
365
375
|
end
|
366
376
|
|
367
377
|
# 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
|
|
@@ -18,6 +18,9 @@ module LagoAPI
|
|
18
18
|
# The display name of the subscription on an invoice. This field allows for customization of the subscription's name for billing purposes, especially useful when a single customer has multiple subscriptions using the same plan.
|
19
19
|
attr_accessor :name
|
20
20
|
|
21
|
+
# The effective end date of the subscription. If this field is set to null, the subscription will automatically renew. This date should be provided in ISO 8601 datetime format, and use Coordinated Universal Time (UTC).
|
22
|
+
attr_accessor :ending_at
|
23
|
+
|
21
24
|
# The start date and time of the subscription. This field can only be modified for pending subscriptions that have not yet started. This date should be provided in ISO 8601 datetime format and expressed in Coordinated Universal Time (UTC).
|
22
25
|
attr_accessor :subscription_at
|
23
26
|
|
@@ -25,6 +28,7 @@ module LagoAPI
|
|
25
28
|
def self.attribute_map
|
26
29
|
{
|
27
30
|
:'name' => :'name',
|
31
|
+
:'ending_at' => :'ending_at',
|
28
32
|
:'subscription_at' => :'subscription_at'
|
29
33
|
}
|
30
34
|
end
|
@@ -38,6 +42,7 @@ module LagoAPI
|
|
38
42
|
def self.openapi_types
|
39
43
|
{
|
40
44
|
:'name' => :'String',
|
45
|
+
:'ending_at' => :'Time',
|
41
46
|
:'subscription_at' => :'Time'
|
42
47
|
}
|
43
48
|
end
|
@@ -68,6 +73,10 @@ module LagoAPI
|
|
68
73
|
self.name = attributes[:'name']
|
69
74
|
end
|
70
75
|
|
76
|
+
if attributes.key?(:'ending_at')
|
77
|
+
self.ending_at = attributes[:'ending_at']
|
78
|
+
end
|
79
|
+
|
71
80
|
if attributes.key?(:'subscription_at')
|
72
81
|
self.subscription_at = attributes[:'subscription_at']
|
73
82
|
end
|
@@ -94,6 +103,7 @@ module LagoAPI
|
|
94
103
|
return true if self.equal?(o)
|
95
104
|
self.class == o.class &&
|
96
105
|
name == o.name &&
|
106
|
+
ending_at == o.ending_at &&
|
97
107
|
subscription_at == o.subscription_at
|
98
108
|
end
|
99
109
|
|
@@ -106,7 +116,7 @@ module LagoAPI
|
|
106
116
|
# Calculates hash code according to all attributes.
|
107
117
|
# @return [Integer] Hash code
|
108
118
|
def hash
|
109
|
-
[name, subscription_at].hash
|
119
|
+
[name, ending_at, subscription_at].hash
|
110
120
|
end
|
111
121
|
|
112
122
|
# 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
|
|
data/lib/lago_ruby/models/tax.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.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
|
|