lago_ruby 0.51.0.pre.beta → 0.52.0.pre.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (237) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -4
  3. data/docs/AddOnCreateInputAddOn.md +1 -1
  4. data/docs/AnalyticsApi.md +299 -0
  5. data/docs/CreditNoteItemObjectFee.md +4 -4
  6. data/docs/CustomerChargeUsageObjectCharge.md +3 -1
  7. data/docs/CustomersApi.md +70 -0
  8. data/docs/FeeObject.md +4 -4
  9. data/docs/GenerateCustomerCheckoutURL200Response.md +24 -0
  10. data/docs/GrossRevenueObject.md +22 -0
  11. data/docs/GrossRevenues.md +18 -0
  12. data/docs/InvoicedUsageObject.md +24 -0
  13. data/docs/InvoicedUsages.md +18 -0
  14. data/docs/MrrObject.md +22 -0
  15. data/docs/Mrrs.md +18 -0
  16. data/docs/OrganizationObject.md +2 -0
  17. data/docs/OrganizationUpdateInputOrganization.md +2 -0
  18. data/docs/OutstandingInvoiceObject.md +26 -0
  19. data/docs/OutstandingInvoices.md +18 -0
  20. data/docs/PlanOverridesObjectChargesInner.md +2 -0
  21. data/lago_ruby.gemspec +1 -1
  22. data/lib/lago_ruby/api/add_ons_api.rb +1 -1
  23. data/lib/lago_ruby/api/analytics_api.rb +268 -0
  24. data/lib/lago_ruby/api/billable_metrics_api.rb +1 -1
  25. data/lib/lago_ruby/api/coupons_api.rb +1 -1
  26. data/lib/lago_ruby/api/credit_notes_api.rb +1 -1
  27. data/lib/lago_ruby/api/customers_api.rb +64 -1
  28. data/lib/lago_ruby/api/events_api.rb +1 -1
  29. data/lib/lago_ruby/api/fees_api.rb +1 -1
  30. data/lib/lago_ruby/api/invoices_api.rb +1 -1
  31. data/lib/lago_ruby/api/organizations_api.rb +1 -1
  32. data/lib/lago_ruby/api/plans_api.rb +1 -1
  33. data/lib/lago_ruby/api/subscriptions_api.rb +1 -1
  34. data/lib/lago_ruby/api/taxes_api.rb +1 -1
  35. data/lib/lago_ruby/api/wallets_api.rb +1 -1
  36. data/lib/lago_ruby/api/webhook_endpoints_api.rb +1 -1
  37. data/lib/lago_ruby/api/webhooks_api.rb +1 -1
  38. data/lib/lago_ruby/api_client.rb +1 -1
  39. data/lib/lago_ruby/api_error.rb +1 -1
  40. data/lib/lago_ruby/configuration.rb +1 -1
  41. data/lib/lago_ruby/models/add_on.rb +1 -1
  42. data/lib/lago_ruby/models/add_on_base_input.rb +1 -1
  43. data/lib/lago_ruby/models/add_on_create_input.rb +1 -1
  44. data/lib/lago_ruby/models/add_on_create_input_add_on.rb +1 -1
  45. data/lib/lago_ruby/models/add_on_object.rb +1 -1
  46. data/lib/lago_ruby/models/add_on_update_input.rb +1 -1
  47. data/lib/lago_ruby/models/add_ons_paginated.rb +1 -1
  48. data/lib/lago_ruby/models/api_error_bad_request.rb +1 -1
  49. data/lib/lago_ruby/models/api_error_forbidden.rb +1 -1
  50. data/lib/lago_ruby/models/api_error_not_allowed.rb +1 -1
  51. data/lib/lago_ruby/models/api_error_not_found.rb +1 -1
  52. data/lib/lago_ruby/models/api_error_unauthorized.rb +1 -1
  53. data/lib/lago_ruby/models/api_error_unprocessable_entity.rb +1 -1
  54. data/lib/lago_ruby/models/applied_coupon.rb +1 -1
  55. data/lib/lago_ruby/models/applied_coupon_input.rb +1 -1
  56. data/lib/lago_ruby/models/applied_coupon_input_applied_coupon.rb +1 -1
  57. data/lib/lago_ruby/models/applied_coupon_object.rb +1 -1
  58. data/lib/lago_ruby/models/applied_coupon_object_extended.rb +1 -1
  59. data/lib/lago_ruby/models/applied_coupons_paginated.rb +1 -1
  60. data/lib/lago_ruby/models/base_applied_tax.rb +1 -1
  61. data/lib/lago_ruby/models/billable_metric.rb +1 -1
  62. data/lib/lago_ruby/models/billable_metric_base_input.rb +1 -1
  63. data/lib/lago_ruby/models/billable_metric_create_input.rb +1 -1
  64. data/lib/lago_ruby/models/billable_metric_create_input_billable_metric.rb +1 -1
  65. data/lib/lago_ruby/models/billable_metric_group.rb +1 -1
  66. data/lib/lago_ruby/models/billable_metric_group_values_inner.rb +1 -1
  67. data/lib/lago_ruby/models/billable_metric_group_values_inner_one_of.rb +1 -1
  68. data/lib/lago_ruby/models/billable_metric_object.rb +1 -1
  69. data/lib/lago_ruby/models/billable_metric_update_input.rb +1 -1
  70. data/lib/lago_ruby/models/billable_metrics_paginated.rb +1 -1
  71. data/lib/lago_ruby/models/charge_object.rb +1 -1
  72. data/lib/lago_ruby/models/charge_object_properties.rb +1 -1
  73. data/lib/lago_ruby/models/charge_properties.rb +1 -1
  74. data/lib/lago_ruby/models/charge_properties_graduated_percentage_ranges_inner.rb +1 -1
  75. data/lib/lago_ruby/models/charge_properties_graduated_ranges_inner.rb +1 -1
  76. data/lib/lago_ruby/models/charge_properties_volume_ranges_inner.rb +1 -1
  77. data/lib/lago_ruby/models/country.rb +1 -1
  78. data/lib/lago_ruby/models/coupon.rb +1 -1
  79. data/lib/lago_ruby/models/coupon_base_input.rb +1 -1
  80. data/lib/lago_ruby/models/coupon_base_input_applies_to.rb +1 -1
  81. data/lib/lago_ruby/models/coupon_create_input.rb +1 -1
  82. data/lib/lago_ruby/models/coupon_create_input_coupon.rb +1 -1
  83. data/lib/lago_ruby/models/coupon_object.rb +1 -1
  84. data/lib/lago_ruby/models/coupon_update_input.rb +1 -1
  85. data/lib/lago_ruby/models/coupons_paginated.rb +1 -1
  86. data/lib/lago_ruby/models/credit_note.rb +1 -1
  87. data/lib/lago_ruby/models/credit_note_applied_tax_object.rb +1 -1
  88. data/lib/lago_ruby/models/credit_note_create_input.rb +1 -1
  89. data/lib/lago_ruby/models/credit_note_create_input_credit_note.rb +1 -1
  90. data/lib/lago_ruby/models/credit_note_estimate_input.rb +1 -1
  91. data/lib/lago_ruby/models/credit_note_estimate_input_credit_note.rb +1 -1
  92. data/lib/lago_ruby/models/credit_note_estimate_input_credit_note_items_inner.rb +1 -1
  93. data/lib/lago_ruby/models/credit_note_estimated.rb +1 -1
  94. data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note.rb +1 -1
  95. data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_applied_taxes_inner.rb +1 -1
  96. data/lib/lago_ruby/models/credit_note_estimated_estimated_credit_note_items_inner.rb +1 -1
  97. data/lib/lago_ruby/models/credit_note_item_object.rb +1 -1
  98. data/lib/lago_ruby/models/credit_note_item_object_fee.rb +5 -5
  99. data/lib/lago_ruby/models/credit_note_object.rb +1 -1
  100. data/lib/lago_ruby/models/credit_note_update_input.rb +1 -1
  101. data/lib/lago_ruby/models/credit_note_update_input_credit_note.rb +1 -1
  102. data/lib/lago_ruby/models/credit_notes.rb +1 -1
  103. data/lib/lago_ruby/models/credit_object.rb +1 -1
  104. data/lib/lago_ruby/models/credit_object_invoice.rb +1 -1
  105. data/lib/lago_ruby/models/credit_object_item.rb +1 -1
  106. data/lib/lago_ruby/models/currency.rb +1 -1
  107. data/lib/lago_ruby/models/customer.rb +1 -1
  108. data/lib/lago_ruby/models/customer_billing_configuration.rb +1 -1
  109. data/lib/lago_ruby/models/customer_charge_usage_object.rb +1 -1
  110. data/lib/lago_ruby/models/customer_charge_usage_object_billable_metric.rb +1 -1
  111. data/lib/lago_ruby/models/customer_charge_usage_object_charge.rb +15 -5
  112. data/lib/lago_ruby/models/customer_charge_usage_object_groups_inner.rb +1 -1
  113. data/lib/lago_ruby/models/customer_create_input.rb +1 -1
  114. data/lib/lago_ruby/models/customer_create_input_customer.rb +1 -1
  115. data/lib/lago_ruby/models/customer_create_input_customer_metadata_inner.rb +1 -1
  116. data/lib/lago_ruby/models/customer_metadata.rb +1 -1
  117. data/lib/lago_ruby/models/customer_object.rb +1 -1
  118. data/lib/lago_ruby/models/customer_object_extended.rb +1 -1
  119. data/lib/lago_ruby/models/customer_past_usage.rb +1 -1
  120. data/lib/lago_ruby/models/customer_usage.rb +1 -1
  121. data/lib/lago_ruby/models/customer_usage_object.rb +1 -1
  122. data/lib/lago_ruby/models/customers_paginated.rb +1 -1
  123. data/lib/lago_ruby/models/event.rb +1 -1
  124. data/lib/lago_ruby/models/event_batch_input.rb +1 -1
  125. data/lib/lago_ruby/models/event_batch_input_event.rb +1 -1
  126. data/lib/lago_ruby/models/event_batch_input_event_properties.rb +1 -1
  127. data/lib/lago_ruby/models/event_estimate_fees_input.rb +1 -1
  128. data/lib/lago_ruby/models/event_estimate_fees_input_event.rb +1 -1
  129. data/lib/lago_ruby/models/event_input.rb +1 -1
  130. data/lib/lago_ruby/models/event_input_event.rb +1 -1
  131. data/lib/lago_ruby/models/event_input_event_timestamp.rb +1 -1
  132. data/lib/lago_ruby/models/event_object.rb +1 -1
  133. data/lib/lago_ruby/models/event_object_properties.rb +1 -1
  134. data/lib/lago_ruby/models/fee.rb +1 -1
  135. data/lib/lago_ruby/models/fee_applied_tax_object.rb +1 -1
  136. data/lib/lago_ruby/models/fee_object.rb +5 -5
  137. data/lib/lago_ruby/models/fee_object_item.rb +1 -1
  138. data/lib/lago_ruby/models/fee_update_input.rb +1 -1
  139. data/lib/lago_ruby/models/fee_update_input_fee.rb +1 -1
  140. data/lib/lago_ruby/models/fees.rb +1 -1
  141. data/lib/lago_ruby/models/fees_paginated.rb +1 -1
  142. data/lib/lago_ruby/models/generate_customer_checkout_url200_response.rb +246 -0
  143. data/lib/lago_ruby/models/get_customer_portal_url200_response.rb +1 -1
  144. data/lib/lago_ruby/models/get_customer_portal_url200_response_customer.rb +1 -1
  145. data/lib/lago_ruby/models/gross_revenue_object.rb +241 -0
  146. data/lib/lago_ruby/models/gross_revenues.rb +223 -0
  147. data/lib/lago_ruby/models/group_object.rb +1 -1
  148. data/lib/lago_ruby/models/group_properties_object.rb +1 -1
  149. data/lib/lago_ruby/models/group_properties_object_values.rb +1 -1
  150. data/lib/lago_ruby/models/groups_paginated.rb +1 -1
  151. data/lib/lago_ruby/models/invoice.rb +1 -1
  152. data/lib/lago_ruby/models/invoice_applied_tax_object.rb +1 -1
  153. data/lib/lago_ruby/models/invoice_metadata_object.rb +1 -1
  154. data/lib/lago_ruby/models/invoice_object.rb +1 -1
  155. data/lib/lago_ruby/models/invoice_object_customer.rb +1 -1
  156. data/lib/lago_ruby/models/invoice_object_extended.rb +1 -1
  157. data/lib/lago_ruby/models/invoice_one_off_create_input.rb +1 -1
  158. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice.rb +1 -1
  159. data/lib/lago_ruby/models/invoice_one_off_create_input_invoice_fees_inner.rb +1 -1
  160. data/lib/lago_ruby/models/invoice_update_input.rb +1 -1
  161. data/lib/lago_ruby/models/invoice_update_input_invoice.rb +1 -1
  162. data/lib/lago_ruby/models/invoice_update_input_invoice_metadata_inner.rb +1 -1
  163. data/lib/lago_ruby/models/invoiced_usage_object.rb +265 -0
  164. data/lib/lago_ruby/models/invoiced_usages.rb +223 -0
  165. data/lib/lago_ruby/models/invoices_paginated.rb +1 -1
  166. data/lib/lago_ruby/models/mrr_object.rb +241 -0
  167. data/lib/lago_ruby/models/mrrs.rb +223 -0
  168. data/lib/lago_ruby/models/organization.rb +1 -1
  169. data/lib/lago_ruby/models/organization_billing_configuration.rb +1 -1
  170. data/lib/lago_ruby/models/organization_object.rb +11 -2
  171. data/lib/lago_ruby/models/organization_update_input.rb +1 -1
  172. data/lib/lago_ruby/models/organization_update_input_organization.rb +11 -2
  173. data/lib/lago_ruby/models/outstanding_invoice_object.rb +309 -0
  174. data/lib/lago_ruby/models/outstanding_invoices.rb +223 -0
  175. data/lib/lago_ruby/models/pagination_meta.rb +1 -1
  176. data/lib/lago_ruby/models/plan.rb +1 -1
  177. data/lib/lago_ruby/models/plan_create_input.rb +1 -1
  178. data/lib/lago_ruby/models/plan_create_input_plan.rb +1 -1
  179. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner.rb +1 -1
  180. data/lib/lago_ruby/models/plan_create_input_plan_charges_inner_group_properties_inner.rb +1 -1
  181. data/lib/lago_ruby/models/plan_object.rb +1 -1
  182. data/lib/lago_ruby/models/plan_overrides_object.rb +1 -1
  183. data/lib/lago_ruby/models/plan_overrides_object_charges_inner.rb +12 -2
  184. data/lib/lago_ruby/models/plan_update_input.rb +1 -1
  185. data/lib/lago_ruby/models/plan_update_input_plan.rb +1 -1
  186. data/lib/lago_ruby/models/plan_update_input_plan_charges_inner.rb +1 -1
  187. data/lib/lago_ruby/models/plans_paginated.rb +1 -1
  188. data/lib/lago_ruby/models/subscription.rb +1 -1
  189. data/lib/lago_ruby/models/subscription_create_input.rb +1 -1
  190. data/lib/lago_ruby/models/subscription_create_input_subscription.rb +1 -1
  191. data/lib/lago_ruby/models/subscription_object.rb +1 -1
  192. data/lib/lago_ruby/models/subscription_object_extended.rb +1 -1
  193. data/lib/lago_ruby/models/subscription_update_input.rb +1 -1
  194. data/lib/lago_ruby/models/subscription_update_input_subscription.rb +1 -1
  195. data/lib/lago_ruby/models/subscriptions_paginated.rb +1 -1
  196. data/lib/lago_ruby/models/tax.rb +1 -1
  197. data/lib/lago_ruby/models/tax_base_input.rb +1 -1
  198. data/lib/lago_ruby/models/tax_create_input.rb +1 -1
  199. data/lib/lago_ruby/models/tax_create_input_tax.rb +1 -1
  200. data/lib/lago_ruby/models/tax_object.rb +1 -1
  201. data/lib/lago_ruby/models/tax_update_input.rb +1 -1
  202. data/lib/lago_ruby/models/taxes_paginated.rb +1 -1
  203. data/lib/lago_ruby/models/timezone.rb +1 -1
  204. data/lib/lago_ruby/models/wallet.rb +1 -1
  205. data/lib/lago_ruby/models/wallet_create_input.rb +1 -1
  206. data/lib/lago_ruby/models/wallet_create_input_wallet.rb +1 -1
  207. data/lib/lago_ruby/models/wallet_object.rb +1 -1
  208. data/lib/lago_ruby/models/wallet_transaction_create_input.rb +1 -1
  209. data/lib/lago_ruby/models/wallet_transaction_create_input_wallet_transaction.rb +1 -1
  210. data/lib/lago_ruby/models/wallet_transaction_object.rb +1 -1
  211. data/lib/lago_ruby/models/wallet_transactions.rb +1 -1
  212. data/lib/lago_ruby/models/wallet_transactions_paginated.rb +1 -1
  213. data/lib/lago_ruby/models/wallet_update_input.rb +1 -1
  214. data/lib/lago_ruby/models/wallet_update_input_wallet.rb +1 -1
  215. data/lib/lago_ruby/models/wallets_paginated.rb +1 -1
  216. data/lib/lago_ruby/models/webhook_endpoint.rb +1 -1
  217. data/lib/lago_ruby/models/webhook_endpoint_create_input.rb +1 -1
  218. data/lib/lago_ruby/models/webhook_endpoint_create_input_webhook_endpoint.rb +1 -1
  219. data/lib/lago_ruby/models/webhook_endpoint_object.rb +1 -1
  220. data/lib/lago_ruby/models/webhook_endpoint_update_input.rb +1 -1
  221. data/lib/lago_ruby/models/webhook_endpoints_paginated.rb +1 -1
  222. data/lib/lago_ruby/version.rb +2 -2
  223. data/lib/lago_ruby.rb +11 -1
  224. data/spec/api/analytics_api_spec.rb +85 -0
  225. data/spec/api_client_spec.rb +1 -1
  226. data/spec/configuration_spec.rb +1 -1
  227. data/spec/models/generate_customer_checkout_url200_response_spec.rb +54 -0
  228. data/spec/models/gross_revenue_object_spec.rb +48 -0
  229. data/spec/models/gross_revenues_spec.rb +36 -0
  230. data/spec/models/invoiced_usage_object_spec.rb +54 -0
  231. data/spec/models/invoiced_usages_spec.rb +36 -0
  232. data/spec/models/mrr_object_spec.rb +48 -0
  233. data/spec/models/mrrs_spec.rb +36 -0
  234. data/spec/models/outstanding_invoice_object_spec.rb +64 -0
  235. data/spec/models/outstanding_invoices_spec.rb +36 -0
  236. data/spec/spec_helper.rb +1 -1
  237. metadata +204 -164
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -22,6 +22,9 @@ module LagoAPI
22
22
  # The pricing model applied to this charge. Possible values are standard, `graduated`, `percentage`, `package` or `volume`.
23
23
  attr_accessor :charge_model
24
24
 
25
+ # 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.
26
+ attr_accessor :invoice_display_name
27
+
25
28
  class EnumAttributeValidator
26
29
  attr_reader :datatype
27
30
  attr_reader :allowable_values
@@ -48,7 +51,8 @@ module LagoAPI
48
51
  def self.attribute_map
49
52
  {
50
53
  :'lago_id' => :'lago_id',
51
- :'charge_model' => :'charge_model'
54
+ :'charge_model' => :'charge_model',
55
+ :'invoice_display_name' => :'invoice_display_name'
52
56
  }
53
57
  end
54
58
 
@@ -61,7 +65,8 @@ module LagoAPI
61
65
  def self.openapi_types
62
66
  {
63
67
  :'lago_id' => :'String',
64
- :'charge_model' => :'String'
68
+ :'charge_model' => :'String',
69
+ :'invoice_display_name' => :'String'
65
70
  }
66
71
  end
67
72
 
@@ -97,6 +102,10 @@ module LagoAPI
97
102
  else
98
103
  self.charge_model = nil
99
104
  end
105
+
106
+ if attributes.key?(:'invoice_display_name')
107
+ self.invoice_display_name = attributes[:'invoice_display_name']
108
+ end
100
109
  end
101
110
 
102
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -142,7 +151,8 @@ module LagoAPI
142
151
  return true if self.equal?(o)
143
152
  self.class == o.class &&
144
153
  lago_id == o.lago_id &&
145
- charge_model == o.charge_model
154
+ charge_model == o.charge_model &&
155
+ invoice_display_name == o.invoice_display_name
146
156
  end
147
157
 
148
158
  # @see the `==` method
@@ -154,7 +164,7 @@ module LagoAPI
154
164
  # Calculates hash code according to all attributes.
155
165
  # @return [Integer] Hash code
156
166
  def hash
157
- [lago_id, charge_model].hash
167
+ [lago_id, charge_model, invoice_display_name].hash
158
168
  end
159
169
 
160
170
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -30,16 +30,16 @@ module LagoAPI
30
30
  # Unique identifier assigned to the parent fee on which the true-up fee is assigned. This identifier establishes the relationship between the parent fee and the associated true-up fee.
31
31
  attr_accessor :lago_true_up_parent_fee_id
32
32
 
33
- # Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true).
33
+ # Unique identifier assigned to the subscription, created by Lago. This field is specifically displayed when the fee type is charge or subscription.
34
34
  attr_accessor :lago_subscription_id
35
35
 
36
- # Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true).
36
+ # Unique identifier assigned to the customer, created by Lago. This field is specifically displayed when the fee type is charge or subscription.
37
37
  attr_accessor :lago_customer_id
38
38
 
39
- # Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true).
39
+ # Unique identifier assigned to the customer in your application. This field is specifically displayed when the fee type is charge or subscription.
40
40
  attr_accessor :external_customer_id
41
41
 
42
- # Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge and the payment for the fee is made in advance (`pay_in_advance` is set to true).
42
+ # Unique identifier assigned to the subscription in your application. This field is specifically displayed when the fee type is charge or subscription.
43
43
  attr_accessor :external_subscription_id
44
44
 
45
45
  # 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.
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 0.51.0-beta
7
7
  Contact: tech@getlago.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 7.1.0-SNAPSHOT
9
+ OpenAPI Generator version: 7.2.0-SNAPSHOT
10
10
 
11
11
  =end
12
12