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
@@ -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,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
@@ -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,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
@@ -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,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
@@ -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,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,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,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
@@ -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