lago_ruby 0.48.0.pre.beta → 0.49.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (214) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -5
  3. data/docs/AddOnBaseInput.md +2 -0
  4. data/docs/AddOnCreateInputAddOn.md +2 -0
  5. data/docs/AddOnObject.md +2 -0
  6. data/docs/BillableMetricBaseInput.md +1 -1
  7. data/docs/BillableMetricCreateInputBillableMetric.md +1 -1
  8. data/docs/BillableMetricObject.md +1 -1
  9. data/docs/ChargeObject.md +2 -0
  10. data/docs/CreditNoteItemObjectFee.md +2 -0
  11. data/docs/CustomerChargeUsageObject.md +2 -0
  12. data/docs/CustomerChargeUsageObjectGroupsInner.md +2 -0
  13. data/docs/CustomerPastUsage.md +20 -0
  14. data/docs/CustomerUsageObject.md +2 -0
  15. data/docs/CustomersApi.md +82 -0
  16. data/docs/FeeObject.md +2 -0
  17. data/docs/FeeObjectItem.md +2 -0
  18. data/docs/GroupPropertiesObject.md +2 -0
  19. data/docs/InvoiceOneOffCreateInputInvoiceFeesInner.md +2 -0
  20. data/docs/PlanCreateInputPlan.md +3 -1
  21. data/docs/PlanCreateInputPlanChargesInner.md +2 -0
  22. data/docs/PlanObject.md +3 -1
  23. data/docs/PlanUpdateInputPlan.md +3 -1
  24. data/docs/PlanUpdateInputPlanChargesInner.md +2 -0
  25. data/docs/SubscriptionsApi.md +70 -0
  26. data/lago_ruby.gemspec +1 -1
  27. data/lib/lago_ruby/api/add_ons_api.rb +1 -1
  28. data/lib/lago_ruby/api/billable_metrics_api.rb +1 -1
  29. data/lib/lago_ruby/api/coupons_api.rb +1 -1
  30. data/lib/lago_ruby/api/credit_notes_api.rb +1 -1
  31. data/lib/lago_ruby/api/customers_api.rb +83 -1
  32. data/lib/lago_ruby/api/events_api.rb +1 -1
  33. data/lib/lago_ruby/api/fees_api.rb +1 -1
  34. data/lib/lago_ruby/api/invoices_api.rb +1 -1
  35. data/lib/lago_ruby/api/organizations_api.rb +1 -1
  36. data/lib/lago_ruby/api/plans_api.rb +1 -1
  37. data/lib/lago_ruby/api/subscriptions_api.rb +64 -1
  38. data/lib/lago_ruby/api/taxes_api.rb +1 -1
  39. data/lib/lago_ruby/api/wallets_api.rb +1 -1
  40. data/lib/lago_ruby/api/webhook_endpoints_api.rb +1 -1
  41. data/lib/lago_ruby/api/webhooks_api.rb +1 -1
  42. data/lib/lago_ruby/api_client.rb +3 -2
  43. data/lib/lago_ruby/api_error.rb +1 -1
  44. data/lib/lago_ruby/configuration.rb +2 -1
  45. data/lib/lago_ruby/models/add_on.rb +1 -1
  46. data/lib/lago_ruby/models/add_on_base_input.rb +12 -2
  47. data/lib/lago_ruby/models/add_on_create_input.rb +1 -1
  48. data/lib/lago_ruby/models/add_on_create_input_add_on.rb +12 -2
  49. data/lib/lago_ruby/models/add_on_object.rb +12 -2
  50. data/lib/lago_ruby/models/add_on_update_input.rb +1 -1
  51. data/lib/lago_ruby/models/add_ons_paginated.rb +1 -1
  52. data/lib/lago_ruby/models/api_error_bad_request.rb +1 -1
  53. data/lib/lago_ruby/models/api_error_forbidden.rb +1 -1
  54. data/lib/lago_ruby/models/api_error_not_allowed.rb +1 -1
  55. data/lib/lago_ruby/models/api_error_not_found.rb +1 -1
  56. data/lib/lago_ruby/models/api_error_unauthorized.rb +1 -1
  57. data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +1 -1
  58. data/lib/lago_ruby/models/applied_coupon.rb +1 -1
  59. data/lib/lago_ruby/models/applied_coupon_input.rb +1 -1
  60. data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +1 -1
  61. data/lib/lago_ruby/models/applied_coupon_object.rb +1 -1
  62. data/lib/lago_ruby/models/applied_coupon_object_extended.rb +1 -1
  63. data/lib/lago_ruby/models/applied_coupons_paginated.rb +1 -1
  64. data/lib/lago_ruby/models/base_applied_tax.rb +1 -1
  65. data/lib/lago_ruby/models/billable_metric.rb +1 -1
  66. data/lib/lago_ruby/models/billable_metric_base_input.rb +4 -4
  67. data/lib/lago_ruby/models/billable_metric_create_input.rb +1 -1
  68. data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +4 -4
  69. data/lib/lago_ruby/models/billable_metric_group.rb +1 -1
  70. data/lib/lago_ruby/models/billable_metric_group_values_inner.rb +1 -1
  71. data/lib/lago_ruby/models/billable_metric_group_values_inner_one_of.rb +1 -1
  72. data/lib/lago_ruby/models/billable_metric_object.rb +4 -4
  73. data/lib/lago_ruby/models/billable_metric_update_input.rb +1 -1
  74. data/lib/lago_ruby/models/billable_metrics_paginated.rb +1 -1
  75. data/lib/lago_ruby/models/charge_object.rb +12 -2
  76. data/lib/lago_ruby/models/charge_object_properties.rb +1 -1
  77. data/lib/lago_ruby/models/charge_properties.rb +1 -1
  78. data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +1 -1
  79. data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +1 -1
  80. data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +1 -1
  81. data/lib/lago_ruby/models/country.rb +1 -1
  82. data/lib/lago_ruby/models/coupon.rb +1 -1
  83. data/lib/lago_ruby/models/coupon_base_input.rb +1 -1
  84. data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +1 -1
  85. data/lib/lago_ruby/models/coupon_create_input.rb +1 -1
  86. data/lib/lago_ruby/models/coupon_create_input_coupon.rb +1 -1
  87. data/lib/lago_ruby/models/coupon_object.rb +1 -1
  88. data/lib/lago_ruby/models/coupon_update_input.rb +1 -1
  89. data/lib/lago_ruby/models/coupons_paginated.rb +1 -1
  90. data/lib/lago_ruby/models/credit_note.rb +1 -1
  91. data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +1 -1
  92. data/lib/lago_ruby/models/credit_note_create_input.rb +1 -1
  93. data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +1 -1
  94. data/lib/lago_ruby/models/credit_note_create_input_credit_note_items_inner.rb +1 -1
  95. data/lib/lago_ruby/models/credit_note_item_object.rb +1 -1
  96. data/lib/lago_ruby/models/credit_note_item_object_fee.rb +12 -2
  97. data/lib/lago_ruby/models/credit_note_object.rb +1 -1
  98. data/lib/lago_ruby/models/credit_note_update_input.rb +1 -1
  99. data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +1 -1
  100. data/lib/lago_ruby/models/credit_notes.rb +1 -1
  101. data/lib/lago_ruby/models/credit_object.rb +1 -1
  102. data/lib/lago_ruby/models/credit_object_invoice.rb +1 -1
  103. data/lib/lago_ruby/models/credit_object_item.rb +1 -1
  104. data/lib/lago_ruby/models/currency.rb +1 -1
  105. data/lib/lago_ruby/models/customer.rb +1 -1
  106. data/lib/lago_ruby/models/customer_billing_configuration.rb +1 -1
  107. data/lib/lago_ruby/models/customer_charge_usage_object.rb +19 -2
  108. data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +1 -1
  109. data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +1 -1
  110. data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +12 -2
  111. data/lib/lago_ruby/models/customer_create_input.rb +1 -1
  112. data/lib/lago_ruby/models/customer_create_input_customer.rb +1 -1
  113. data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +1 -1
  114. data/lib/lago_ruby/models/customer_metadata.rb +1 -1
  115. data/lib/lago_ruby/models/customer_object.rb +1 -1
  116. data/lib/lago_ruby/models/customer_object_extended.rb +1 -1
  117. data/lib/lago_ruby/models/customer_past_usage.rb +239 -0
  118. data/lib/lago_ruby/models/customer_usage.rb +1 -1
  119. data/lib/lago_ruby/models/customer_usage_object.rb +13 -2
  120. data/lib/lago_ruby/models/customers_paginated.rb +1 -1
  121. data/lib/lago_ruby/models/event.rb +1 -1
  122. data/lib/lago_ruby/models/event_batch_input.rb +1 -1
  123. data/lib/lago_ruby/models/event_batch_input_event.rb +1 -1
  124. data/lib/lago_ruby/models/event_batch_input_event_properties.rb +1 -1
  125. data/lib/lago_ruby/models/event_estimate_fees_input.rb +1 -1
  126. data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +1 -1
  127. data/lib/lago_ruby/models/event_input.rb +1 -1
  128. data/lib/lago_ruby/models/event_input_event.rb +1 -1
  129. data/lib/lago_ruby/models/event_input_event_timestamp.rb +1 -1
  130. data/lib/lago_ruby/models/event_object.rb +1 -1
  131. data/lib/lago_ruby/models/event_object_properties.rb +1 -1
  132. data/lib/lago_ruby/models/fee.rb +1 -1
  133. data/lib/lago_ruby/models/fee_applied_tax_object.rb +1 -1
  134. data/lib/lago_ruby/models/fee_object.rb +12 -2
  135. data/lib/lago_ruby/models/fee_object_item.rb +12 -2
  136. data/lib/lago_ruby/models/fee_update_input.rb +1 -1
  137. data/lib/lago_ruby/models/fee_update_input_fee.rb +1 -1
  138. data/lib/lago_ruby/models/fees.rb +1 -1
  139. data/lib/lago_ruby/models/fees_paginated.rb +1 -1
  140. data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +1 -1
  141. data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +1 -1
  142. data/lib/lago_ruby/models/group_object.rb +1 -1
  143. data/lib/lago_ruby/models/group_properties_object.rb +12 -2
  144. data/lib/lago_ruby/models/group_properties_object_values.rb +1 -1
  145. data/lib/lago_ruby/models/groups_paginated.rb +1 -1
  146. data/lib/lago_ruby/models/invoice.rb +1 -1
  147. data/lib/lago_ruby/models/invoice_applied_tax_object.rb +1 -1
  148. data/lib/lago_ruby/models/invoice_metadata_object.rb +1 -1
  149. data/lib/lago_ruby/models/invoice_object.rb +1 -1
  150. data/lib/lago_ruby/models/invoice_object_customer.rb +1 -1
  151. data/lib/lago_ruby/models/invoice_object_extended.rb +1 -1
  152. data/lib/lago_ruby/models/invoice_one_off_create_input.rb +1 -1
  153. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +1 -1
  154. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +12 -2
  155. data/lib/lago_ruby/models/invoice_update_input.rb +1 -1
  156. data/lib/lago_ruby/models/invoice_update_input_invoice.rb +1 -1
  157. data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +1 -1
  158. data/lib/lago_ruby/models/invoices_paginated.rb +1 -1
  159. data/lib/lago_ruby/models/organization.rb +1 -1
  160. data/lib/lago_ruby/models/organization_billing_configuration.rb +1 -1
  161. data/lib/lago_ruby/models/organization_object.rb +1 -1
  162. data/lib/lago_ruby/models/organization_update_input.rb +1 -1
  163. data/lib/lago_ruby/models/organization_update_input_organization.rb +1 -1
  164. data/lib/lago_ruby/models/pagination_meta.rb +1 -1
  165. data/lib/lago_ruby/models/plan.rb +1 -1
  166. data/lib/lago_ruby/models/plan_create_input.rb +1 -1
  167. data/lib/lago_ruby/models/plan_create_input_plan.rb +12 -2
  168. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +12 -2
  169. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +1 -1
  170. data/lib/lago_ruby/models/plan_object.rb +12 -2
  171. data/lib/lago_ruby/models/plan_update_input.rb +1 -1
  172. data/lib/lago_ruby/models/plan_update_input_plan.rb +12 -2
  173. data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +12 -2
  174. data/lib/lago_ruby/models/plans_paginated.rb +1 -1
  175. data/lib/lago_ruby/models/subscription.rb +1 -1
  176. data/lib/lago_ruby/models/subscription_create_input.rb +1 -1
  177. data/lib/lago_ruby/models/subscription_create_input_subscription.rb +1 -1
  178. data/lib/lago_ruby/models/subscription_object.rb +1 -1
  179. data/lib/lago_ruby/models/subscription_update_input.rb +1 -1
  180. data/lib/lago_ruby/models/subscription_update_input_subscription.rb +1 -1
  181. data/lib/lago_ruby/models/subscriptions_paginated.rb +1 -1
  182. data/lib/lago_ruby/models/tax.rb +1 -1
  183. data/lib/lago_ruby/models/tax_base_input.rb +1 -1
  184. data/lib/lago_ruby/models/tax_create_input.rb +1 -1
  185. data/lib/lago_ruby/models/tax_create_input_tax.rb +1 -1
  186. data/lib/lago_ruby/models/tax_object.rb +1 -1
  187. data/lib/lago_ruby/models/tax_update_input.rb +1 -1
  188. data/lib/lago_ruby/models/taxes_paginated.rb +1 -1
  189. data/lib/lago_ruby/models/timezone.rb +1 -1
  190. data/lib/lago_ruby/models/wallet.rb +1 -1
  191. data/lib/lago_ruby/models/wallet_create_input.rb +1 -1
  192. data/lib/lago_ruby/models/wallet_create_input_wallet.rb +1 -1
  193. data/lib/lago_ruby/models/wallet_object.rb +1 -1
  194. data/lib/lago_ruby/models/wallet_transaction_create_input.rb +1 -1
  195. data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +1 -1
  196. data/lib/lago_ruby/models/wallet_transaction_object.rb +1 -1
  197. data/lib/lago_ruby/models/wallet_transactions.rb +1 -1
  198. data/lib/lago_ruby/models/wallet_transactions_paginated.rb +1 -1
  199. data/lib/lago_ruby/models/wallet_update_input.rb +1 -1
  200. data/lib/lago_ruby/models/wallet_update_input_wallet.rb +1 -1
  201. data/lib/lago_ruby/models/wallets_paginated.rb +1 -1
  202. data/lib/lago_ruby/models/webhook_endpoint.rb +1 -1
  203. data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +1 -1
  204. data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +1 -1
  205. data/lib/lago_ruby/models/webhook_endpoint_object.rb +1 -1
  206. data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +1 -1
  207. data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +1 -1
  208. data/lib/lago_ruby/version.rb +2 -2
  209. data/lib/lago_ruby.rb +2 -1
  210. data/spec/api_client_spec.rb +1 -1
  211. data/spec/configuration_spec.rb +1 -1
  212. data/spec/models/customer_past_usage_spec.rb +42 -0
  213. data/spec/spec_helper.rb +1 -1
  214. metadata +155 -151
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -30,7 +30,7 @@ module LagoAPI
30
30
  # Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`.
31
31
  attr_accessor :field_name
32
32
 
33
- # Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`.
33
+ # Aggregation method used to compute usage for this billable metric.
34
34
  attr_accessor :aggregation_type
35
35
 
36
36
  # Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`.
@@ -162,7 +162,7 @@ module LagoAPI
162
162
  # @return true if the model is valid
163
163
  def valid?
164
164
  warn '[DEPRECATED] the `valid?` method is obsolete'
165
- aggregation_type_validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg"])
165
+ aggregation_type_validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg", "latest_agg"])
166
166
  return false unless aggregation_type_validator.valid?(@aggregation_type)
167
167
  weighted_interval_validator = EnumAttributeValidator.new('String', ["seconds"])
168
168
  return false unless weighted_interval_validator.valid?(@weighted_interval)
@@ -172,7 +172,7 @@ module LagoAPI
172
172
  # Custom attribute writer method checking allowed values (enum).
173
173
  # @param [Object] aggregation_type Object to be assigned
174
174
  def aggregation_type=(aggregation_type)
175
- validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg"])
175
+ validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg", "latest_agg"])
176
176
  unless validator.valid?(aggregation_type)
177
177
  fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}."
178
178
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -30,7 +30,7 @@ module LagoAPI
30
30
  # Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`.
31
31
  attr_accessor :field_name
32
32
 
33
- # Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`.
33
+ # Aggregation method used to compute usage for this billable metric.
34
34
  attr_accessor :aggregation_type
35
35
 
36
36
  # Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`.
@@ -190,7 +190,7 @@ module LagoAPI
190
190
  return false if @name.nil?
191
191
  return false if @code.nil?
192
192
  return false if @aggregation_type.nil?
193
- aggregation_type_validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg"])
193
+ aggregation_type_validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg", "latest_agg"])
194
194
  return false unless aggregation_type_validator.valid?(@aggregation_type)
195
195
  weighted_interval_validator = EnumAttributeValidator.new('String', ["seconds"])
196
196
  return false unless weighted_interval_validator.valid?(@weighted_interval)
@@ -200,7 +200,7 @@ module LagoAPI
200
200
  # Custom attribute writer method checking allowed values (enum).
201
201
  # @param [Object] aggregation_type Object to be assigned
202
202
  def aggregation_type=(aggregation_type)
203
- validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg"])
203
+ validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg", "latest_agg"])
204
204
  unless validator.valid?(aggregation_type)
205
205
  fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}."
206
206
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -36,7 +36,7 @@ module LagoAPI
36
36
  # Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`.
37
37
  attr_accessor :field_name
38
38
 
39
- # Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`.
39
+ # Aggregation method used to compute usage for this billable metric.
40
40
  attr_accessor :aggregation_type
41
41
 
42
42
  # Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`.
@@ -267,7 +267,7 @@ module LagoAPI
267
267
  return false if @recurring.nil?
268
268
  return false if @created_at.nil?
269
269
  return false if @aggregation_type.nil?
270
- aggregation_type_validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg"])
270
+ aggregation_type_validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg", "latest_agg"])
271
271
  return false unless aggregation_type_validator.valid?(@aggregation_type)
272
272
  weighted_interval_validator = EnumAttributeValidator.new('String', ["seconds"])
273
273
  return false unless weighted_interval_validator.valid?(@weighted_interval)
@@ -280,7 +280,7 @@ module LagoAPI
280
280
  # Custom attribute writer method checking allowed values (enum).
281
281
  # @param [Object] aggregation_type Object to be assigned
282
282
  def aggregation_type=(aggregation_type)
283
- validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg"])
283
+ validator = EnumAttributeValidator.new('String', ["count_agg", "sum_agg", "max_agg", "unique_count_agg", "weighted_sum_agg", "latest_agg"])
284
284
  unless validator.valid?(aggregation_type)
285
285
  fail ArgumentError, "invalid value for \"aggregation_type\", must be one of #{validator.allowable_values}."
286
286
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -24,6 +24,9 @@ module LagoAPI
24
24
  # Unique code identifying a billable metric.
25
25
  attr_accessor :billable_metric_code
26
26
 
27
+ # 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.
28
+ attr_accessor :invoice_display_name
29
+
27
30
  # The date and time when the charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard.
28
31
  attr_accessor :created_at
29
32
 
@@ -78,6 +81,7 @@ module LagoAPI
78
81
  :'lago_id' => :'lago_id',
79
82
  :'lago_billable_metric_id' => :'lago_billable_metric_id',
80
83
  :'billable_metric_code' => :'billable_metric_code',
84
+ :'invoice_display_name' => :'invoice_display_name',
81
85
  :'created_at' => :'created_at',
82
86
  :'charge_model' => :'charge_model',
83
87
  :'pay_in_advance' => :'pay_in_advance',
@@ -101,6 +105,7 @@ module LagoAPI
101
105
  :'lago_id' => :'String',
102
106
  :'lago_billable_metric_id' => :'String',
103
107
  :'billable_metric_code' => :'String',
108
+ :'invoice_display_name' => :'String',
104
109
  :'created_at' => :'Time',
105
110
  :'charge_model' => :'String',
106
111
  :'pay_in_advance' => :'Boolean',
@@ -152,6 +157,10 @@ module LagoAPI
152
157
  self.billable_metric_code = nil
153
158
  end
154
159
 
160
+ if attributes.key?(:'invoice_display_name')
161
+ self.invoice_display_name = attributes[:'invoice_display_name']
162
+ end
163
+
155
164
  if attributes.key?(:'created_at')
156
165
  self.created_at = attributes[:'created_at']
157
166
  else
@@ -257,6 +266,7 @@ module LagoAPI
257
266
  lago_id == o.lago_id &&
258
267
  lago_billable_metric_id == o.lago_billable_metric_id &&
259
268
  billable_metric_code == o.billable_metric_code &&
269
+ invoice_display_name == o.invoice_display_name &&
260
270
  created_at == o.created_at &&
261
271
  charge_model == o.charge_model &&
262
272
  pay_in_advance == o.pay_in_advance &&
@@ -277,7 +287,7 @@ module LagoAPI
277
287
  # Calculates hash code according to all attributes.
278
288
  # @return [Integer] Hash code
279
289
  def hash
280
- [lago_id, lago_billable_metric_id, billable_metric_code, created_at, charge_model, pay_in_advance, invoiceable, prorated, min_amount_cents, properties, group_properties, taxes].hash
290
+ [lago_id, lago_billable_metric_id, billable_metric_code, invoice_display_name, created_at, charge_model, pay_in_advance, invoiceable, prorated, min_amount_cents, properties, group_properties, taxes].hash
281
291
  end
282
292
 
283
293
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Lago API allows your application to push customer information and metrics (events) from your application to the billing application.
5
5
 
6
- The version of the OpenAPI document: 0.48.0-beta
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
9
  OpenAPI Generator version: 7.1.0-SNAPSHOT