lago_ruby 0.46.0.pre.beta → 0.46.1.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +10 -14
  4. data/docs/AddOnsApi.md +0 -70
  5. data/docs/EventInputEvent.md +2 -2
  6. data/docs/EventInputEventProperties.md +18 -0
  7. data/docs/EventObject.md +1 -1
  8. data/docs/EventObjectProperties.md +18 -0
  9. data/lago_ruby.gemspec +1 -1
  10. data/lib/lago_ruby/api/add_ons_api.rb +1 -69
  11. data/lib/lago_ruby/api/billable_metrics_api.rb +1 -1
  12. data/lib/lago_ruby/api/coupons_api.rb +1 -1
  13. data/lib/lago_ruby/api/credit_notes_api.rb +1 -1
  14. data/lib/lago_ruby/api/customers_api.rb +1 -1
  15. data/lib/lago_ruby/api/events_api.rb +1 -1
  16. data/lib/lago_ruby/api/fees_api.rb +1 -1
  17. data/lib/lago_ruby/api/invoices_api.rb +1 -1
  18. data/lib/lago_ruby/api/organizations_api.rb +1 -1
  19. data/lib/lago_ruby/api/plans_api.rb +1 -1
  20. data/lib/lago_ruby/api/subscriptions_api.rb +1 -1
  21. data/lib/lago_ruby/api/taxes_api.rb +1 -1
  22. data/lib/lago_ruby/api/wallets_api.rb +1 -1
  23. data/lib/lago_ruby/api/webhook_endpoints_api.rb +1 -1
  24. data/lib/lago_ruby/api/webhooks_api.rb +1 -1
  25. data/lib/lago_ruby/api_client.rb +1 -1
  26. data/lib/lago_ruby/api_error.rb +1 -1
  27. data/lib/lago_ruby/configuration.rb +1 -1
  28. data/lib/lago_ruby/models/add_on.rb +1 -1
  29. data/lib/lago_ruby/models/add_on_base_input.rb +1 -1
  30. data/lib/lago_ruby/models/add_on_create_input.rb +1 -1
  31. data/lib/lago_ruby/models/add_on_create_input_add_on.rb +1 -1
  32. data/lib/lago_ruby/models/add_on_object.rb +1 -1
  33. data/lib/lago_ruby/models/add_on_update_input.rb +1 -1
  34. data/lib/lago_ruby/models/add_ons_paginated.rb +1 -1
  35. data/lib/lago_ruby/models/api_error_bad_request.rb +1 -1
  36. data/lib/lago_ruby/models/api_error_forbidden.rb +1 -1
  37. data/lib/lago_ruby/models/api_error_not_allowed.rb +1 -1
  38. data/lib/lago_ruby/models/api_error_not_found.rb +1 -1
  39. data/lib/lago_ruby/models/api_error_unauthorized.rb +1 -1
  40. data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +1 -1
  41. data/lib/lago_ruby/models/applied_add_on.rb +1 -1
  42. data/lib/lago_ruby/models/applied_add_on_input.rb +1 -1
  43. data/lib/lago_ruby/models/applied_add_on_input_applied_add_on.rb +1 -1
  44. data/lib/lago_ruby/models/applied_add_on_object.rb +1 -1
  45. data/lib/lago_ruby/models/applied_coupon.rb +1 -1
  46. data/lib/lago_ruby/models/applied_coupon_input.rb +1 -1
  47. data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +1 -1
  48. data/lib/lago_ruby/models/applied_coupon_object.rb +1 -1
  49. data/lib/lago_ruby/models/applied_coupon_object_extended.rb +1 -1
  50. data/lib/lago_ruby/models/applied_coupons_paginated.rb +1 -1
  51. data/lib/lago_ruby/models/base_applied_tax.rb +1 -1
  52. data/lib/lago_ruby/models/billable_metric.rb +1 -1
  53. data/lib/lago_ruby/models/billable_metric_base_input.rb +1 -1
  54. data/lib/lago_ruby/models/billable_metric_create_input.rb +1 -1
  55. data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +1 -1
  56. data/lib/lago_ruby/models/billable_metric_group.rb +1 -1
  57. data/lib/lago_ruby/models/billable_metric_group_values_inner.rb +1 -1
  58. data/lib/lago_ruby/models/billable_metric_group_values_inner_one_of.rb +1 -1
  59. data/lib/lago_ruby/models/billable_metric_object.rb +1 -1
  60. data/lib/lago_ruby/models/billable_metric_update_input.rb +1 -1
  61. data/lib/lago_ruby/models/billable_metrics_paginated.rb +1 -1
  62. data/lib/lago_ruby/models/charge_object.rb +1 -1
  63. data/lib/lago_ruby/models/charge_object_properties.rb +1 -1
  64. data/lib/lago_ruby/models/charge_properties.rb +1 -1
  65. data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +1 -1
  66. data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +1 -1
  67. data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +1 -1
  68. data/lib/lago_ruby/models/country.rb +1 -1
  69. data/lib/lago_ruby/models/coupon.rb +1 -1
  70. data/lib/lago_ruby/models/coupon_base_input.rb +1 -1
  71. data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +1 -1
  72. data/lib/lago_ruby/models/coupon_create_input.rb +1 -1
  73. data/lib/lago_ruby/models/coupon_create_input_coupon.rb +1 -1
  74. data/lib/lago_ruby/models/coupon_object.rb +1 -1
  75. data/lib/lago_ruby/models/coupon_update_input.rb +1 -1
  76. data/lib/lago_ruby/models/coupons_paginated.rb +1 -1
  77. data/lib/lago_ruby/models/create_webhook_endpoint200_response.rb +1 -1
  78. data/lib/lago_ruby/models/create_webhook_endpoint200_response_webhook_endpoint.rb +1 -1
  79. data/lib/lago_ruby/models/create_webhook_endpoint_request.rb +1 -1
  80. data/lib/lago_ruby/models/create_webhook_endpoint_request_webhook_endpoint.rb +1 -1
  81. data/lib/lago_ruby/models/credit_note.rb +1 -1
  82. data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +1 -1
  83. data/lib/lago_ruby/models/credit_note_create_input.rb +1 -1
  84. data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +1 -1
  85. data/lib/lago_ruby/models/credit_note_create_input_credit_note_items_inner.rb +1 -1
  86. data/lib/lago_ruby/models/credit_note_item_object.rb +1 -1
  87. data/lib/lago_ruby/models/credit_note_item_object_fee.rb +1 -1
  88. data/lib/lago_ruby/models/credit_note_object.rb +1 -1
  89. data/lib/lago_ruby/models/credit_note_update_input.rb +1 -1
  90. data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +1 -1
  91. data/lib/lago_ruby/models/credit_notes.rb +1 -1
  92. data/lib/lago_ruby/models/credit_object.rb +1 -1
  93. data/lib/lago_ruby/models/credit_object_invoice.rb +1 -1
  94. data/lib/lago_ruby/models/credit_object_item.rb +1 -1
  95. data/lib/lago_ruby/models/currency.rb +1 -1
  96. data/lib/lago_ruby/models/customer.rb +1 -1
  97. data/lib/lago_ruby/models/customer_billing_configuration.rb +1 -1
  98. data/lib/lago_ruby/models/customer_charge_usage_object.rb +1 -1
  99. data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +1 -1
  100. data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +1 -1
  101. data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +1 -1
  102. data/lib/lago_ruby/models/customer_create_input.rb +1 -1
  103. data/lib/lago_ruby/models/customer_create_input_customer.rb +1 -1
  104. data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +1 -1
  105. data/lib/lago_ruby/models/customer_metadata.rb +1 -1
  106. data/lib/lago_ruby/models/customer_object.rb +1 -1
  107. data/lib/lago_ruby/models/customer_object_extended.rb +1 -1
  108. data/lib/lago_ruby/models/customer_usage.rb +1 -1
  109. data/lib/lago_ruby/models/customer_usage_object.rb +1 -1
  110. data/lib/lago_ruby/models/customers_paginated.rb +1 -1
  111. data/lib/lago_ruby/models/event.rb +1 -1
  112. data/lib/lago_ruby/models/event_batch_input.rb +1 -1
  113. data/lib/lago_ruby/models/event_batch_input_event.rb +1 -1
  114. data/lib/lago_ruby/models/event_batch_input_event_properties.rb +1 -1
  115. data/lib/lago_ruby/models/event_estimate_fees_input.rb +1 -1
  116. data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +1 -1
  117. data/lib/lago_ruby/models/event_input.rb +1 -1
  118. data/lib/lago_ruby/models/event_input_event.rb +6 -3
  119. data/lib/lago_ruby/models/event_object.rb +2 -2
  120. data/lib/lago_ruby/models/event_object_properties.rb +250 -0
  121. data/lib/lago_ruby/models/fee.rb +1 -1
  122. data/lib/lago_ruby/models/fee_applied_tax_object.rb +1 -1
  123. data/lib/lago_ruby/models/fee_object.rb +1 -1
  124. data/lib/lago_ruby/models/fee_object_item.rb +1 -1
  125. data/lib/lago_ruby/models/fee_update_input.rb +1 -1
  126. data/lib/lago_ruby/models/fee_update_input_fee.rb +1 -1
  127. data/lib/lago_ruby/models/fees.rb +1 -1
  128. data/lib/lago_ruby/models/fees_paginated.rb +1 -1
  129. data/lib/lago_ruby/models/find_all_webhook_endpoints200_response.rb +1 -1
  130. data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +1 -1
  131. data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +1 -1
  132. data/lib/lago_ruby/models/group_object.rb +1 -1
  133. data/lib/lago_ruby/models/group_properties_object.rb +1 -1
  134. data/lib/lago_ruby/models/group_properties_object_values.rb +1 -1
  135. data/lib/lago_ruby/models/groups_paginated.rb +1 -1
  136. data/lib/lago_ruby/models/invoice.rb +1 -1
  137. data/lib/lago_ruby/models/invoice_applied_tax_object.rb +1 -1
  138. data/lib/lago_ruby/models/invoice_metadata_object.rb +1 -1
  139. data/lib/lago_ruby/models/invoice_object.rb +1 -1
  140. data/lib/lago_ruby/models/invoice_object_customer.rb +1 -1
  141. data/lib/lago_ruby/models/invoice_object_extended.rb +1 -1
  142. data/lib/lago_ruby/models/invoice_one_off_create_input.rb +1 -1
  143. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +1 -1
  144. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +1 -1
  145. data/lib/lago_ruby/models/invoice_update_input.rb +1 -1
  146. data/lib/lago_ruby/models/invoice_update_input_invoice.rb +1 -1
  147. data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +1 -1
  148. data/lib/lago_ruby/models/invoices_paginated.rb +1 -1
  149. data/lib/lago_ruby/models/organization.rb +1 -1
  150. data/lib/lago_ruby/models/organization_billing_configuration.rb +1 -1
  151. data/lib/lago_ruby/models/organization_object.rb +1 -1
  152. data/lib/lago_ruby/models/organization_update_input.rb +1 -1
  153. data/lib/lago_ruby/models/organization_update_input_organization.rb +1 -1
  154. data/lib/lago_ruby/models/pagination_meta.rb +1 -1
  155. data/lib/lago_ruby/models/plan.rb +1 -1
  156. data/lib/lago_ruby/models/plan_create_input.rb +1 -1
  157. data/lib/lago_ruby/models/plan_create_input_plan.rb +1 -1
  158. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +1 -1
  159. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +1 -1
  160. data/lib/lago_ruby/models/plan_object.rb +1 -1
  161. data/lib/lago_ruby/models/plan_update_input.rb +1 -1
  162. data/lib/lago_ruby/models/plan_update_input_plan.rb +1 -1
  163. data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +1 -1
  164. data/lib/lago_ruby/models/plans_paginated.rb +1 -1
  165. data/lib/lago_ruby/models/subscription.rb +1 -1
  166. data/lib/lago_ruby/models/subscription_create_input.rb +1 -1
  167. data/lib/lago_ruby/models/subscription_create_input_subscription.rb +1 -1
  168. data/lib/lago_ruby/models/subscription_object.rb +1 -1
  169. data/lib/lago_ruby/models/subscription_update_input.rb +1 -1
  170. data/lib/lago_ruby/models/subscription_update_input_subscription.rb +1 -1
  171. data/lib/lago_ruby/models/subscriptions_paginated.rb +1 -1
  172. data/lib/lago_ruby/models/tax.rb +1 -1
  173. data/lib/lago_ruby/models/tax_base_input.rb +1 -1
  174. data/lib/lago_ruby/models/tax_create_input.rb +1 -1
  175. data/lib/lago_ruby/models/tax_create_input_tax.rb +1 -1
  176. data/lib/lago_ruby/models/tax_object.rb +1 -1
  177. data/lib/lago_ruby/models/tax_update_input.rb +1 -1
  178. data/lib/lago_ruby/models/taxes_paginated.rb +1 -1
  179. data/lib/lago_ruby/models/timezone.rb +1 -1
  180. data/lib/lago_ruby/models/wallet.rb +1 -1
  181. data/lib/lago_ruby/models/wallet_create_input.rb +1 -1
  182. data/lib/lago_ruby/models/wallet_create_input_wallet.rb +1 -1
  183. data/lib/lago_ruby/models/wallet_object.rb +1 -1
  184. data/lib/lago_ruby/models/wallet_transaction_create_input.rb +1 -1
  185. data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +1 -1
  186. data/lib/lago_ruby/models/wallet_transaction_object.rb +1 -1
  187. data/lib/lago_ruby/models/wallet_transactions.rb +1 -1
  188. data/lib/lago_ruby/models/wallet_transactions_paginated.rb +1 -1
  189. data/lib/lago_ruby/models/wallet_update_input.rb +1 -1
  190. data/lib/lago_ruby/models/wallet_update_input_wallet.rb +1 -1
  191. data/lib/lago_ruby/models/wallets_paginated.rb +1 -1
  192. data/lib/lago_ruby/version.rb +2 -2
  193. data/lib/lago_ruby.rb +2 -5
  194. data/spec/api_client_spec.rb +1 -1
  195. data/spec/configuration_spec.rb +1 -1
  196. data/spec/models/event_object_properties_spec.rb +38 -0
  197. data/spec/spec_helper.rb +1 -1
  198. metadata +7 -10
  199. data/spec/models/applied_add_on_input_applied_add_on_spec.rb +0 -52
  200. data/spec/models/applied_add_on_input_spec.rb +0 -34
  201. data/spec/models/applied_add_on_object_spec.rb +0 -76
  202. data/spec/models/applied_add_on_spec.rb +0 -34
@@ -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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-SNAPSHOT
@@ -30,6 +30,7 @@ module LagoAPI
30
30
  # This field captures the Unix timestamp in seconds indicating the occurrence of the event in Coordinated Universal Time (UTC). If this timestamp is not provided, the API will automatically set it to the time of event reception.
31
31
  attr_accessor :timestamp
32
32
 
33
+ # This field represents additional properties associated with the event, which are utilized in the calculation of the final fee. This object becomes mandatory when the targeted billable metric employs a `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However, when using a simple `count_agg`, this object is not required.
33
34
  attr_accessor :properties
34
35
 
35
36
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -57,7 +58,7 @@ module LagoAPI
57
58
  :'external_subscription_id' => :'String',
58
59
  :'code' => :'String',
59
60
  :'timestamp' => :'Integer',
60
- :'properties' => :'EventBatchInputEventProperties'
61
+ :'properties' => :'Hash<String, String>'
61
62
  }
62
63
  end
63
64
 
@@ -107,7 +108,9 @@ module LagoAPI
107
108
  end
108
109
 
109
110
  if attributes.key?(:'properties')
110
- self.properties = attributes[:'properties']
111
+ if (value = attributes[:'properties']).is_a?(Hash)
112
+ self.properties = value
113
+ end
111
114
  end
112
115
  end
113
116
 
@@ -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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-SNAPSHOT
@@ -74,7 +74,7 @@ module LagoAPI
74
74
  :'external_customer_id' => :'String',
75
75
  :'code' => :'String',
76
76
  :'timestamp' => :'Time',
77
- :'properties' => :'EventBatchInputEventProperties',
77
+ :'properties' => :'EventObjectProperties',
78
78
  :'lago_subscription_id' => :'String',
79
79
  :'external_subscription_id' => :'String',
80
80
  :'created_at' => :'Time'
@@ -0,0 +1,250 @@
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.46.1-beta
7
+ Contact: tech@getlago.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module LagoAPI
17
+ # This field represents additional properties associated with the event, which are utilized in the calculation of the final fee. This object becomes mandatory when the targeted billable metric employs a `sum_agg`, `max_agg`, or `unique_count_agg` aggregation method. However, when using a simple `count_agg`, this object is not required.
18
+ class EventObjectProperties
19
+ # The `operation_type` field is only necessary when adding or removing a specific unit when the targeted billable metric adopts a `unique_count_agg` aggregation method. In other cases, the `operation_type` field is not required. The valid values for the `operation_type` field are `add` or `remove`, which indicate whether the unit is being added or removed from the unique count aggregation, respectively.
20
+ attr_accessor :operation_type
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'operation_type' => :'operation_type'
48
+ }
49
+ end
50
+
51
+ # Returns all the JSON keys this model knows about
52
+ def self.acceptable_attributes
53
+ attribute_map.values
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.openapi_types
58
+ {
59
+ :'operation_type' => :'String'
60
+ }
61
+ end
62
+
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `LagoAPI::EventObjectProperties` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `LagoAPI::EventObjectProperties`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'operation_type')
85
+ self.operation_type = attributes[:'operation_type']
86
+ end
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properties with the reasons
91
+ def list_invalid_properties
92
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
+ invalid_properties = Array.new
94
+ invalid_properties
95
+ end
96
+
97
+ # Check to see if the all the properties in the model are valid
98
+ # @return true if the model is valid
99
+ def valid?
100
+ warn '[DEPRECATED] the `valid?` method is obsolete'
101
+ operation_type_validator = EnumAttributeValidator.new('String', ["add", "remove"])
102
+ return false unless operation_type_validator.valid?(@operation_type)
103
+ true
104
+ end
105
+
106
+ # Custom attribute writer method checking allowed values (enum).
107
+ # @param [Object] operation_type Object to be assigned
108
+ def operation_type=(operation_type)
109
+ validator = EnumAttributeValidator.new('String', ["add", "remove"])
110
+ unless validator.valid?(operation_type)
111
+ fail ArgumentError, "invalid value for \"operation_type\", must be one of #{validator.allowable_values}."
112
+ end
113
+ @operation_type = operation_type
114
+ end
115
+
116
+ # Checks equality by comparing each attribute.
117
+ # @param [Object] Object to be compared
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ operation_type == o.operation_type
122
+ end
123
+
124
+ # @see the `==` method
125
+ # @param [Object] Object to be compared
126
+ def eql?(o)
127
+ self == o
128
+ end
129
+
130
+ # Calculates hash code according to all attributes.
131
+ # @return [Integer] Hash code
132
+ def hash
133
+ [operation_type].hash
134
+ end
135
+
136
+ # Builds the object from hash
137
+ # @param [Hash] attributes Model attributes in the form of hash
138
+ # @return [Object] Returns the model itself
139
+ def self.build_from_hash(attributes)
140
+ return nil unless attributes.is_a?(Hash)
141
+ attributes = attributes.transform_keys(&:to_sym)
142
+ transformed_hash = {}
143
+ openapi_types.each_pair do |key, type|
144
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
145
+ transformed_hash["#{key}"] = nil
146
+ elsif type =~ /\AArray<(.*)>/i
147
+ # check to ensure the input is an array given that the attribute
148
+ # is documented as an array but the input is not
149
+ if attributes[attribute_map[key]].is_a?(Array)
150
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
151
+ end
152
+ elsif !attributes[attribute_map[key]].nil?
153
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
154
+ end
155
+ end
156
+ new(transformed_hash)
157
+ end
158
+
159
+ # Deserializes the data based on type
160
+ # @param string type Data type
161
+ # @param string value Value to be deserialized
162
+ # @return [Object] Deserialized data
163
+ def self._deserialize(type, value)
164
+ case type.to_sym
165
+ when :Time
166
+ Time.parse(value)
167
+ when :Date
168
+ Date.parse(value)
169
+ when :String
170
+ value.to_s
171
+ when :Integer
172
+ value.to_i
173
+ when :Float
174
+ value.to_f
175
+ when :Boolean
176
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
177
+ true
178
+ else
179
+ false
180
+ end
181
+ when :Object
182
+ # generic object (usually a Hash), return directly
183
+ value
184
+ when /\AArray<(?<inner_type>.+)>\z/
185
+ inner_type = Regexp.last_match[:inner_type]
186
+ value.map { |v| _deserialize(inner_type, v) }
187
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
188
+ k_type = Regexp.last_match[:k_type]
189
+ v_type = Regexp.last_match[:v_type]
190
+ {}.tap do |hash|
191
+ value.each do |k, v|
192
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
193
+ end
194
+ end
195
+ else # model
196
+ # models (e.g. Pet) or oneOf
197
+ klass = LagoAPI.const_get(type)
198
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
199
+ end
200
+ end
201
+
202
+ # Returns the string representation of the object
203
+ # @return [String] String presentation of the object
204
+ def to_s
205
+ to_hash.to_s
206
+ end
207
+
208
+ # to_body is an alias to to_hash (backward compatibility)
209
+ # @return [Hash] Returns the object in the form of hash
210
+ def to_body
211
+ to_hash
212
+ end
213
+
214
+ # Returns the object in the form of hash
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_hash
217
+ hash = {}
218
+ self.class.attribute_map.each_pair do |attr, param|
219
+ value = self.send(attr)
220
+ if value.nil?
221
+ is_nullable = self.class.openapi_nullable.include?(attr)
222
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
223
+ end
224
+
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+
250
+ 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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-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.46.0-beta
6
+ The version of the OpenAPI document: 0.46.1-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 7.0.1-SNAPSHOT