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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e5738b2715145b3c82ebcd9bb48424256348c7758b1c2f814472bfa977e4aac1
4
- data.tar.gz: 2a40ead695be008af06dbb38628ba5581995845b4ce9990924363e2ae4dc7d3e
3
+ metadata.gz: 23e57e890bfe8c0b19773bcb8eb4923fc46a1aa0abb5787074fda52d7fdd344b
4
+ data.tar.gz: 3ff0bd599f9260095aa49eacc114b4f2570532142033ab1273213de4fb21aabb
5
5
  SHA512:
6
- metadata.gz: aca1397ab9360755c7caca7cf53d7f694944708efebfc67a1bff17a1a3efca70ef2a10b22f85e41a27d14b4e7379732961569e432b1e68da0e99fbfa998d765b
7
- data.tar.gz: 735d0d793eb29856d91e763758dda5316a0d337aacb0df78f98b2563b57f096314f4790cf0045c569b762f517722b16d3df966c8abc08a63631c6b6d5c05d140
6
+ metadata.gz: c542123cabbf5f5f652526fadeaae108f92c08eca199a1fed15749fcd4d83f75b28bc13ed30b4919dfe84f1376ff74e50221ef2435adef570484c42eb339657b
7
+ data.tar.gz: e9c14cebd5062a44286c1b8fc94377d729392cd8d9bac89ee18461d5e1477a96603fb380d1f765b45081b6ca406ce755180d980de4e9be53e0c559fea82807fd
data/README.md CHANGED
@@ -6,8 +6,8 @@ Lago API allows your application to push customer information and metrics (event
6
6
 
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
- - API version: 0.48.0-beta
10
- - Package version: 0.48.0-beta
9
+ - API version: 0.49.0-beta
10
+ - Package version: 0.49.0-beta
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
 
13
13
  [![Gem Version](https://badge.fury.io/rb/lago-ruby.svg)](https://badge.fury.io/rb/lago-ruby)
@@ -26,16 +26,16 @@ gem build lago_ruby.gemspec
26
26
  Then either install the gem locally:
27
27
 
28
28
  ```shell
29
- gem install ./lago_ruby-0.48.0-beta.gem
29
+ gem install ./lago_ruby-0.49.0-beta.gem
30
30
  ```
31
31
 
32
- (for development, run `gem install --dev ./lago_ruby-0.48.0-beta.gem` to install the development dependencies)
32
+ (for development, run `gem install --dev ./lago_ruby-0.49.0-beta.gem` to install the development dependencies)
33
33
 
34
34
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
35
35
 
36
36
  Finally add this to the Gemfile:
37
37
 
38
- gem 'lago_ruby', '~> 0.48.0-beta'
38
+ gem 'lago_ruby', '~> 0.49.0-beta'
39
39
 
40
40
  ### Install from Git
41
41
 
@@ -116,6 +116,7 @@ Class | Method | HTTP request | Description
116
116
  *LagoAPI::CustomersApi* | [**create_customer**](docs/CustomersApi.md#create_customer) | **POST** /customers | Create a customer
117
117
  *LagoAPI::CustomersApi* | [**delete_applied_coupon**](docs/CustomersApi.md#delete_applied_coupon) | **DELETE** /customers/{external_customer_id}/applied_coupons/{applied_coupon_id} | Delete an applied coupon
118
118
  *LagoAPI::CustomersApi* | [**destroy_customer**](docs/CustomersApi.md#destroy_customer) | **DELETE** /customers/{external_id} | Delete a customer
119
+ *LagoAPI::CustomersApi* | [**find_all_customer_past_usage**](docs/CustomersApi.md#find_all_customer_past_usage) | **GET** /customers/{external_customer_id}/past_usage | Retrieve customer past usage
119
120
  *LagoAPI::CustomersApi* | [**find_all_customers**](docs/CustomersApi.md#find_all_customers) | **GET** /customers | List all customers
120
121
  *LagoAPI::CustomersApi* | [**find_customer**](docs/CustomersApi.md#find_customer) | **GET** /customers/{external_id} | Retrieve a customer
121
122
  *LagoAPI::CustomersApi* | [**find_customer_current_usage**](docs/CustomersApi.md#find_customer_current_usage) | **GET** /customers/{external_customer_id}/current_usage | Retrieve customer current usage
@@ -144,6 +145,7 @@ Class | Method | HTTP request | Description
144
145
  *LagoAPI::SubscriptionsApi* | [**create_subscription**](docs/SubscriptionsApi.md#create_subscription) | **POST** /subscriptions | Assign a plan to a customer
145
146
  *LagoAPI::SubscriptionsApi* | [**destroy_subscription**](docs/SubscriptionsApi.md#destroy_subscription) | **DELETE** /subscriptions/{external_id} | Terminate a subscription
146
147
  *LagoAPI::SubscriptionsApi* | [**find_all_subscriptions**](docs/SubscriptionsApi.md#find_all_subscriptions) | **GET** /subscriptions | List all subscriptions
148
+ *LagoAPI::SubscriptionsApi* | [**find_subscription**](docs/SubscriptionsApi.md#find_subscription) | **GET** /subscriptions/{external_id} | Retrieve a subscription
147
149
  *LagoAPI::SubscriptionsApi* | [**update_subscription**](docs/SubscriptionsApi.md#update_subscription) | **PUT** /subscriptions/{external_id} | Update a subscription
148
150
  *LagoAPI::TaxesApi* | [**create_tax**](docs/TaxesApi.md#create_tax) | **POST** /taxes | Create a tax
149
151
  *LagoAPI::TaxesApi* | [**destroy_tax**](docs/TaxesApi.md#destroy_tax) | **DELETE** /taxes/{code} | Delete a tax
@@ -239,6 +241,7 @@ Class | Method | HTTP request | Description
239
241
  - [LagoAPI::CustomerMetadata](docs/CustomerMetadata.md)
240
242
  - [LagoAPI::CustomerObject](docs/CustomerObject.md)
241
243
  - [LagoAPI::CustomerObjectExtended](docs/CustomerObjectExtended.md)
244
+ - [LagoAPI::CustomerPastUsage](docs/CustomerPastUsage.md)
242
245
  - [LagoAPI::CustomerUsage](docs/CustomerUsage.md)
243
246
  - [LagoAPI::CustomerUsageObject](docs/CustomerUsageObject.md)
244
247
  - [LagoAPI::CustomersPaginated](docs/CustomersPaginated.md)
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | The name of the add-on. | [optional] |
8
+ | **invoice_display_name** | **String** | 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. | [optional] |
8
9
  | **code** | **String** | Unique code used to identify the add-on. | [optional] |
9
10
  | **amount_cents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | [optional] |
10
11
  | **amount_currency** | [**Currency**](Currency.md) | | [optional] |
@@ -18,6 +19,7 @@ require 'lago_ruby'
18
19
 
19
20
  instance = LagoAPI::AddOnBaseInput.new(
20
21
  name: Setup Fee,
22
+ invoice_display_name: Setup Fee (SF1),
21
23
  code: setup_fee,
22
24
  amount_cents: 50000,
23
25
  amount_currency: null,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | The name of the add-on. | |
8
+ | **invoice_display_name** | **String** | 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. | [optional] |
8
9
  | **code** | **String** | Unique code used to identify the add-on. | |
9
10
  | **amount_cents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | |
10
11
  | **amount_currency** | [**Currency**](Currency.md) | | |
@@ -18,6 +19,7 @@ require 'lago_ruby'
18
19
 
19
20
  instance = LagoAPI::AddOnCreateInputAddOn.new(
20
21
  name: Setup Fee,
22
+ invoice_display_name: Setup Fee (SF1),
21
23
  code: setup_fee,
22
24
  amount_cents: 50000,
23
25
  amount_currency: null,
data/docs/AddOnObject.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **lago_id** | **String** | Unique identifier of the add-on, created by Lago. | |
8
8
  | **name** | **String** | The name of the add-on. | |
9
+ | **invoice_display_name** | **String** | 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. | [optional] |
9
10
  | **code** | **String** | Unique code used to identify the add-on. | |
10
11
  | **amount_cents** | **Integer** | The cost of the add-on in cents, excluding any applicable taxes, that is billed to a customer. By creating a one-off invoice, you will be able to override this value. | |
11
12
  | **amount_currency** | [**Currency**](Currency.md) | | |
@@ -21,6 +22,7 @@ require 'lago_ruby'
21
22
  instance = LagoAPI::AddOnObject.new(
22
23
  lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
23
24
  name: Setup Fee,
25
+ invoice_display_name: Setup Fee (SF1),
24
26
  code: setup_fee,
25
27
  amount_cents: 50000,
26
28
  amount_currency: null,
@@ -9,7 +9,7 @@
9
9
  | **description** | **String** | Internal description of the billable metric. | [optional] |
10
10
  | **recurring** | **Boolean** | Defines if the billable metric is persisted billing period over billing period. - If set to `true`: the accumulated number of units calculated from the previous billing period is persisted to the next billing period. - If set to `false`: the accumulated number of units is reset to 0 at the end of the billing period. - If not defined in the request, default value is `false`. | [optional] |
11
11
  | **field_name** | **String** | Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`. | [optional] |
12
- | **aggregation_type** | **String** | Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. | [optional] |
12
+ | **aggregation_type** | **String** | Aggregation method used to compute usage for this billable metric. | [optional] |
13
13
  | **weighted_interval** | **String** | Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. | [optional] |
14
14
  | **group** | [**BillableMetricGroup**](BillableMetricGroup.md) | | [optional] |
15
15
 
@@ -9,7 +9,7 @@
9
9
  | **description** | **String** | Internal description of the billable metric. | [optional] |
10
10
  | **recurring** | **Boolean** | Defines if the billable metric is persisted billing period over billing period. - If set to `true`: the accumulated number of units calculated from the previous billing period is persisted to the next billing period. - If set to `false`: the accumulated number of units is reset to 0 at the end of the billing period. - If not defined in the request, default value is `false`. | [optional] |
11
11
  | **field_name** | **String** | Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`. | [optional] |
12
- | **aggregation_type** | **String** | Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. | |
12
+ | **aggregation_type** | **String** | Aggregation method used to compute usage for this billable metric. | |
13
13
  | **weighted_interval** | **String** | Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. | [optional] |
14
14
  | **group** | [**BillableMetricGroup**](BillableMetricGroup.md) | | [optional] |
15
15
 
@@ -11,7 +11,7 @@
11
11
  | **recurring** | **Boolean** | Defines if the billable metric is persisted billing period over billing period. - If set to `true`: the accumulated number of units calculated from the previous billing period is persisted to the next billing period. - If set to `false`: the accumulated number of units is reset to 0 at the end of the billing period. - If not defined in the request, default value is `false`. | |
12
12
  | **created_at** | **Time** | Creation date of the billable metric. | |
13
13
  | **field_name** | **String** | Property of the billable metric used for aggregating usage data. This field is not required for `count_agg`. | [optional] |
14
- | **aggregation_type** | **String** | Aggregation method used to compute usage for this billable metric. Possible values are `count_agg`, `sum_agg`, `max_agg` or `unique_count_agg`. | |
14
+ | **aggregation_type** | **String** | Aggregation method used to compute usage for this billable metric. | |
15
15
  | **weighted_interval** | **String** | Parameter exclusively utilized in conjunction with the `weighted_sum` aggregation type. It serves to adjust the aggregation result by assigning weights and proration to the result based on time intervals. When this field is not provided, the default time interval is assumed to be in `seconds`. | [optional] |
16
16
  | **group** | [**BillableMetricGroup**](BillableMetricGroup.md) | | [optional] |
17
17
  | **active_subscriptions_count** | **Integer** | Number of active subscriptions using this billable metric. | |
data/docs/ChargeObject.md CHANGED
@@ -7,6 +7,7 @@
7
7
  | **lago_id** | **String** | Unique identifier of charge, created by Lago. | |
8
8
  | **lago_billable_metric_id** | **String** | Unique identifier of the billable metric created by Lago. | |
9
9
  | **billable_metric_code** | **String** | Unique code identifying a billable metric. | |
10
+ | **invoice_display_name** | **String** | 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. | [optional] |
10
11
  | **created_at** | **Time** | The date and time when the charge was created. It is expressed in UTC format according to the ISO 8601 datetime standard. | |
11
12
  | **charge_model** | **String** | Specifies the pricing model used for the calculation of the final fee. It can be `standard`, `graduated`, `graduated_percentage`, `package`, `percentage` or `volume`. | |
12
13
  | **pay_in_advance** | **Boolean** | This field determines the billing timing for this specific usage-based charge. When set to `true`, the charge is due and invoiced immediately. Conversely, when set to `false`, the charge is due and invoiced at the end of each billing period. | [optional] |
@@ -26,6 +27,7 @@ instance = LagoAPI::ChargeObject.new(
26
27
  lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
27
28
  lago_billable_metric_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
28
29
  billable_metric_code: requests,
30
+ invoice_display_name: Setup,
29
31
  created_at: 2022-09-14T16:35:31Z,
30
32
  charge_model: null,
31
33
  pay_in_advance: true,
@@ -13,6 +13,7 @@
13
13
  | **lago_customer_id** | **String** | 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). | [optional] |
14
14
  | **external_customer_id** | **String** | 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). | [optional] |
15
15
  | **external_subscription_id** | **String** | 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). | [optional] |
16
+ | **invoice_display_name** | **String** | 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. | [optional] |
16
17
  | **amount_cents** | **Integer** | The cost of this specific fee, excluding any applicable taxes. | |
17
18
  | **amount_currency** | [**Currency**](Currency.md) | | |
18
19
  | **taxes_amount_cents** | **Integer** | The cost of the tax associated with this specific fee. | |
@@ -49,6 +50,7 @@ instance = LagoAPI::CreditNoteItemObjectFee.new(
49
50
  lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
50
51
  external_customer_id: external_id,
51
52
  external_subscription_id: external_id,
53
+ invoice_display_name: Setup Fee (SF1),
52
54
  amount_cents: 100,
53
55
  amount_currency: null,
54
56
  taxes_amount_cents: 20,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **units** | **String** | The number of units consumed by the customer for a specific charge item. | |
8
+ | **events_count** | **Integer** | The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts. | |
8
9
  | **amount_cents** | **Integer** | The amount in cents, tax excluded, consumed by the customer for a specific charge item. | |
9
10
  | **amount_currency** | [**Currency**](Currency.md) | | |
10
11
  | **charge** | [**CustomerChargeUsageObjectCharge**](CustomerChargeUsageObjectCharge.md) | | |
@@ -18,6 +19,7 @@ require 'lago_ruby'
18
19
 
19
20
  instance = LagoAPI::CustomerChargeUsageObject.new(
20
21
  units: 1.0,
22
+ events_count: 10,
21
23
  amount_cents: 123,
22
24
  amount_currency: null,
23
25
  charge: null,
@@ -8,6 +8,7 @@
8
8
  | **key** | **String** | The group key, only returned for groups with two dimensions. | [optional] |
9
9
  | **value** | **String** | The group value. | [optional] |
10
10
  | **units** | **String** | The number of units consumed for a specific group related to a charge item. | [optional] |
11
+ | **events_count** | **Integer** | The quantity of usage events that have been recorded for a particular charge during the specified time period. These events may also be referred to as the number of transactions in some contexts. | [optional] |
11
12
  | **amount_cents** | **Integer** | The amount in cents, tax excluded, consumed for a specific group related to a charge item. | [optional] |
12
13
 
13
14
  ## Example
@@ -20,6 +21,7 @@ instance = LagoAPI::CustomerChargeUsageObjectGroupsInner.new(
20
21
  key: null,
21
22
  value: europe,
22
23
  units: 0.9,
24
+ events_count: 10,
23
25
  amount_cents: 1000
24
26
  )
25
27
  ```
@@ -0,0 +1,20 @@
1
+ # LagoAPI::CustomerPastUsage
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **usage_periods** | [**Array<CustomerUsage>**](CustomerUsage.md) | | |
8
+ | **meta** | [**PaginationMeta**](PaginationMeta.md) | | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'lago_ruby'
14
+
15
+ instance = LagoAPI::CustomerPastUsage.new(
16
+ usage_periods: null,
17
+ meta: null
18
+ )
19
+ ```
20
+
@@ -7,6 +7,7 @@
7
7
  | **from_datetime** | **Time** | The lower bound of the billing period, expressed in the ISO 8601 datetime format in Coordinated Universal Time (UTC). | |
8
8
  | **to_datetime** | **Time** | The upper bound of the billing period, expressed in the ISO 8601 datetime format in Coordinated Universal Time (UTC). | |
9
9
  | **issuing_date** | **Time** | The date of creation of the invoice. | |
10
+ | **lago_invoice_id** | **String** | A unique identifier associated with the invoice related to this particular usage record. | [optional] |
10
11
  | **currency** | [**Currency**](Currency.md) | | [optional] |
11
12
  | **amount_cents** | **Integer** | The amount in cents, tax excluded. | |
12
13
  | **taxes_amount_cents** | **Integer** | The tax amount in cents. | |
@@ -22,6 +23,7 @@ instance = LagoAPI::CustomerUsageObject.new(
22
23
  from_datetime: 2022-07-01T00:00Z,
23
24
  to_datetime: 2022-07-31T23:59:59Z,
24
25
  issuing_date: 2022-08-01T23:59:59Z,
26
+ lago_invoice_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
25
27
  currency: null,
26
28
  amount_cents: 123,
27
29
  taxes_amount_cents: 200,
data/docs/CustomersApi.md CHANGED
@@ -7,6 +7,7 @@ All URIs are relative to *https://api.getlago.com/api/v1*
7
7
  | [**create_customer**](CustomersApi.md#create_customer) | **POST** /customers | Create a customer |
8
8
  | [**delete_applied_coupon**](CustomersApi.md#delete_applied_coupon) | **DELETE** /customers/{external_customer_id}/applied_coupons/{applied_coupon_id} | Delete an applied coupon |
9
9
  | [**destroy_customer**](CustomersApi.md#destroy_customer) | **DELETE** /customers/{external_id} | Delete a customer |
10
+ | [**find_all_customer_past_usage**](CustomersApi.md#find_all_customer_past_usage) | **GET** /customers/{external_customer_id}/past_usage | Retrieve customer past usage |
10
11
  | [**find_all_customers**](CustomersApi.md#find_all_customers) | **GET** /customers | List all customers |
11
12
  | [**find_customer**](CustomersApi.md#find_customer) | **GET** /customers/{external_id} | Retrieve a customer |
12
13
  | [**find_customer_current_usage**](CustomersApi.md#find_customer_current_usage) | **GET** /customers/{external_customer_id}/current_usage | Retrieve customer current usage |
@@ -222,6 +223,87 @@ end
222
223
  - **Accept**: application/json
223
224
 
224
225
 
226
+ ## find_all_customer_past_usage
227
+
228
+ > <CustomerPastUsage> find_all_customer_past_usage(external_customer_id, external_subscription_id, opts)
229
+
230
+ Retrieve customer past usage
231
+
232
+ This endpoint enables the retrieval of the usage-based billing data for a customer within past periods.
233
+
234
+ ### Examples
235
+
236
+ ```ruby
237
+ require 'time'
238
+ require 'lago_ruby'
239
+ # setup authorization
240
+ LagoAPI.configure do |config|
241
+ # Configure Bearer authorization: bearerAuth
242
+ config.access_token = 'YOUR_BEARER_TOKEN'
243
+ end
244
+
245
+ api_instance = LagoAPI::CustomersApi.new
246
+ external_customer_id = '5eb02857-a71e-4ea2-bcf9-57d3a41bc6ba' # String | The customer external unique identifier (provided by your own application).
247
+ external_subscription_id = 'sub_1234567890' # String | The unique identifier of the subscription within your application.
248
+ opts = {
249
+ page: 1, # Integer | Page number.
250
+ per_page: 20, # Integer | Number of records per page.
251
+ billable_metric_code: 'cpu', # String | Billable metric code filter to apply to the charge usage
252
+ periods_count: 5 # Integer | Number of past billing period to returns in the result
253
+ }
254
+
255
+ begin
256
+ # Retrieve customer past usage
257
+ result = api_instance.find_all_customer_past_usage(external_customer_id, external_subscription_id, opts)
258
+ p result
259
+ rescue LagoAPI::ApiError => e
260
+ puts "Error when calling CustomersApi->find_all_customer_past_usage: #{e}"
261
+ end
262
+ ```
263
+
264
+ #### Using the find_all_customer_past_usage_with_http_info variant
265
+
266
+ This returns an Array which contains the response data, status code and headers.
267
+
268
+ > <Array(<CustomerPastUsage>, Integer, Hash)> find_all_customer_past_usage_with_http_info(external_customer_id, external_subscription_id, opts)
269
+
270
+ ```ruby
271
+ begin
272
+ # Retrieve customer past usage
273
+ data, status_code, headers = api_instance.find_all_customer_past_usage_with_http_info(external_customer_id, external_subscription_id, opts)
274
+ p status_code # => 2xx
275
+ p headers # => { ... }
276
+ p data # => <CustomerPastUsage>
277
+ rescue LagoAPI::ApiError => e
278
+ puts "Error when calling CustomersApi->find_all_customer_past_usage_with_http_info: #{e}"
279
+ end
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ | Name | Type | Description | Notes |
285
+ | ---- | ---- | ----------- | ----- |
286
+ | **external_customer_id** | **String** | The customer external unique identifier (provided by your own application). | |
287
+ | **external_subscription_id** | **String** | The unique identifier of the subscription within your application. | |
288
+ | **page** | **Integer** | Page number. | [optional] |
289
+ | **per_page** | **Integer** | Number of records per page. | [optional] |
290
+ | **billable_metric_code** | **String** | Billable metric code filter to apply to the charge usage | [optional] |
291
+ | **periods_count** | **Integer** | Number of past billing period to returns in the result | [optional] |
292
+
293
+ ### Return type
294
+
295
+ [**CustomerPastUsage**](CustomerPastUsage.md)
296
+
297
+ ### Authorization
298
+
299
+ [bearerAuth](../README.md#bearerAuth)
300
+
301
+ ### HTTP request headers
302
+
303
+ - **Content-Type**: Not defined
304
+ - **Accept**: application/json
305
+
306
+
225
307
  ## find_all_customers
226
308
 
227
309
  > <CustomersPaginated> find_all_customers(opts)
data/docs/FeeObject.md CHANGED
@@ -13,6 +13,7 @@
13
13
  | **lago_customer_id** | **String** | 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 (&#x60;pay_in_advance&#x60; is set to true). | [optional] |
14
14
  | **external_customer_id** | **String** | 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 (&#x60;pay_in_advance&#x60; is set to true). | [optional] |
15
15
  | **external_subscription_id** | **String** | 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 (&#x60;pay_in_advance&#x60; is set to true). | [optional] |
16
+ | **invoice_display_name** | **String** | 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. | [optional] |
16
17
  | **amount_cents** | **Integer** | The cost of this specific fee, excluding any applicable taxes. | |
17
18
  | **amount_currency** | [**Currency**](Currency.md) | | |
18
19
  | **taxes_amount_cents** | **Integer** | The cost of the tax associated with this specific fee. | |
@@ -49,6 +50,7 @@ instance = LagoAPI::FeeObject.new(
49
50
  lago_customer_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
50
51
  external_customer_id: external_id,
51
52
  external_subscription_id: external_id,
53
+ invoice_display_name: Setup Fee (SF1),
52
54
  amount_cents: 100,
53
55
  amount_currency: null,
54
56
  taxes_amount_cents: 20,
@@ -7,6 +7,7 @@
7
7
  | **type** | **String** | The fee type. Possible values are &#x60;add-on&#x60;, &#x60;charge&#x60;, &#x60;credit&#x60; or &#x60;subscription&#x60;. | |
8
8
  | **code** | **String** | The code of the fee item. It can be the code of the &#x60;add-o&#x60;n, the code of the &#x60;charge&#x60;, the code of the &#x60;credit&#x60; or the code of the &#x60;subscription&#x60;. | |
9
9
  | **name** | **String** | The name of the fee item. It can be the name of the &#x60;add-on&#x60;, the name of the &#x60;charge&#x60;, the name of the &#x60;credit&#x60; or the name of the &#x60;subscription&#x60;. | |
10
+ | **invoice_display_name** | **String** | 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. | [optional] |
10
11
  | **lago_item_id** | **String** | Unique identifier of the fee item, created by Lago. It can be the identifier of the &#x60;add-on&#x60;, the identifier of the &#x60;charge&#x60;, the identifier of the &#x60;credit&#x60; or the identifier of the &#x60;subscription&#x60;. | |
11
12
  | **item_type** | **String** | The type of the fee item. Possible values are &#x60;AddOn&#x60;, &#x60;BillableMetric&#x60;, &#x60;WalletTransaction&#x60; or &#x60;Subscription&#x60;. | |
12
13
 
@@ -19,6 +20,7 @@ instance = LagoAPI::FeeObjectItem.new(
19
20
  type: subscription,
20
21
  code: startup,
21
22
  name: Startup,
23
+ invoice_display_name: Setup Fee (SF1),
22
24
  lago_item_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
23
25
  item_type: Subscription
24
26
  )
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **group_id** | **String** | Unique identifier of a billable metric group, created by Lago. | |
8
+ | **invoice_display_name** | **String** | Specifies the name that will be displayed on an invoice. If no value is set for this field, the name of the actual group will be used as the default display name. | [optional] |
8
9
  | **values** | [**GroupPropertiesObjectValues**](GroupPropertiesObjectValues.md) | | |
9
10
 
10
11
  ## Example
@@ -14,6 +15,7 @@ require 'lago_ruby'
14
15
 
15
16
  instance = LagoAPI::GroupPropertiesObject.new(
16
17
  group_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
18
+ invoice_display_name: AWS,
17
19
  values: null
18
20
  )
19
21
  ```
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **add_on_code** | **String** | The code of the add-on used as invoice item. | |
8
+ | **invoice_display_name** | **String** | 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. | [optional] |
8
9
  | **unit_amount_cents** | **Integer** | The amount of the fee per unit, expressed in cents. By default, the amount of the add-on is used. | [optional] |
9
10
  | **units** | **String** | The quantity of units associated with the fee. By default, only 1 unit is added to the invoice. | [optional] |
10
11
  | **description** | **String** | This is a description | [optional] |
@@ -17,6 +18,7 @@ require 'lago_ruby'
17
18
 
18
19
  instance = LagoAPI::InvoiceOneOffCreateInputInvoiceFeesInner.new(
19
20
  add_on_code: setup_fee,
21
+ invoice_display_name: Setup Fee (SF1),
20
22
  unit_amount_cents: 12000,
21
23
  units: 2.5,
22
24
  description: The description of the fee line item in the invoice. By default, the description of the add-on is used.,
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | The name of the plan. | [optional] |
8
+ | **invoice_display_name** | **String** | 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. | [optional] |
8
9
  | **code** | **String** | 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. | [optional] |
9
10
  | **interval** | **String** | The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: &#x60;yearly&#x60;, &#x60;quarterly&#x60;, &#x60;monthly&#x60;, or &#x60;weekly&#x60;. | [optional] |
10
11
  | **description** | **String** | The description on the plan. | [optional] |
@@ -23,6 +24,7 @@ require 'lago_ruby'
23
24
 
24
25
  instance = LagoAPI::PlanCreateInputPlan.new(
25
26
  name: Startup,
27
+ invoice_display_name: Startup plan,
26
28
  code: startup,
27
29
  interval: monthly,
28
30
  description: Plan for early stage startups.,
@@ -32,7 +34,7 @@ instance = LagoAPI::PlanCreateInputPlan.new(
32
34
  pay_in_advance: true,
33
35
  bill_charges_monthly: null,
34
36
  tax_codes: [&quot;french_standard_vat&quot;],
35
- charges: [{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;charge_model&quot;:&quot;package&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:3000,&quot;properties&quot;:{&quot;amount&quot;:&quot;30&quot;,&quot;free_units&quot;:100,&quot;package_size&quot;:1000},&quot;group_properties&quot;:[],&quot;tax_codes&quot;:[&quot;french_standard_vat&quot;]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;charge_model&quot;:&quot;graduated&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;graduated_ranges&quot;:[{&quot;to_value&quot;:10,&quot;from_value&quot;:0,&quot;flat_amount&quot;:&quot;10&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;},{&quot;to_value&quot;:null,&quot;from_value&quot;:11,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.4&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;charge_model&quot;:&quot;standard&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{},&quot;group_properties&quot;:[{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a01&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;10&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a02&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;5&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a03&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;8&quot;}}]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;charge_model&quot;:&quot;volume&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;volume_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:100,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0&quot;},{&quot;from_value&quot;:101,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;charge_model&quot;:&quot;percentage&quot;,&quot;invoiceable&quot;:false,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;rate&quot;:&quot;1&quot;,&quot;fixed_amount&quot;:&quot;0.5&quot;,&quot;free_units_per_events&quot;:5,&quot;free_units_per_total_aggregation&quot;:&quot;500&quot;},&quot;group_properties&quot;:[]}]
37
+ charges: [{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;charge_model&quot;:&quot;package&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:3000,&quot;properties&quot;:{&quot;amount&quot;:&quot;30&quot;,&quot;free_units&quot;:100,&quot;package_size&quot;:1000},&quot;group_properties&quot;:[],&quot;tax_codes&quot;:[&quot;french_standard_vat&quot;]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;charge_model&quot;:&quot;graduated&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;graduated_ranges&quot;:[{&quot;to_value&quot;:10,&quot;from_value&quot;:0,&quot;flat_amount&quot;:&quot;10&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;},{&quot;to_value&quot;:null,&quot;from_value&quot;:11,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.4&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;charge_model&quot;:&quot;standard&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{},&quot;group_properties&quot;:[{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a01&quot;,&quot;invoice_display_name&quot;:&quot;Europe&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;10&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a02&quot;,&quot;invoice_display_name&quot;:&quot;USA&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;5&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a03&quot;,&quot;invoice_display_name&quot;:&quot;Africa&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;8&quot;}}]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;charge_model&quot;:&quot;volume&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;volume_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:100,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0&quot;},{&quot;from_value&quot;:101,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;charge_model&quot;:&quot;percentage&quot;,&quot;invoiceable&quot;:false,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;rate&quot;:&quot;1&quot;,&quot;fixed_amount&quot;:&quot;0.5&quot;,&quot;free_units_per_events&quot;:5,&quot;free_units_per_total_aggregation&quot;:&quot;500&quot;},&quot;group_properties&quot;:[]}]
36
38
  )
37
39
  ```
38
40
 
@@ -8,6 +8,7 @@
8
8
  | **charge_model** | **String** | Specifies the pricing model used for the calculation of the final fee. It can be &#x60;standard&#x60;, &#x60;graduated&#x60;, &#x60;graduated_percentage&#x60; &#x60;package&#x60;, &#x60;percentage&#x60; or &#x60;volume&#x60;. | [optional] |
9
9
  | **pay_in_advance** | **Boolean** | This field determines the billing timing for this specific usage-based charge. When set to &#x60;true&#x60;, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period. | [optional] |
10
10
  | **invoiceable** | **Boolean** | 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 &#x60;false&#x60; when &#x60;pay_in_advance&#x60; is &#x60;true&#x60;. | [optional] |
11
+ | **invoice_display_name** | **String** | 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. | [optional] |
11
12
  | **prorated** | **Boolean** | Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to &#x60;true&#x60;, the charge is prorated based on the remaining days in the current billing period. - If set to &#x60;false&#x60;, the charge is billed in full. - If not defined in the request, default value is &#x60;false&#x60;. | [optional] |
12
13
  | **min_amount_cents** | **Integer** | The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period. | [optional] |
13
14
  | **properties** | [**ChargeObjectProperties**](ChargeObjectProperties.md) | | [optional] |
@@ -24,6 +25,7 @@ instance = LagoAPI::PlanCreateInputPlanChargesInner.new(
24
25
  charge_model: standard,
25
26
  pay_in_advance: false,
26
27
  invoiceable: true,
28
+ invoice_display_name: Setup,
27
29
  prorated: false,
28
30
  min_amount_cents: 0,
29
31
  properties: null,
data/docs/PlanObject.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **lago_id** | **String** | Unique identifier of the plan created by Lago. | |
8
8
  | **name** | **String** | The name of the plan. | |
9
+ | **invoice_display_name** | **String** | 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. | [optional] |
9
10
  | **created_at** | **Time** | 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. | |
10
11
  | **code** | **String** | 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. | |
11
12
  | **interval** | **String** | The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: &#x60;yearly&#x60;, &#x60;quarterly&#x60;, &#x60;monthly&#x60; or &#x60;weekly&#x60;. | |
@@ -28,6 +29,7 @@ require 'lago_ruby'
28
29
  instance = LagoAPI::PlanObject.new(
29
30
  lago_id: 1a901a90-1a90-1a90-1a90-1a901a901a90,
30
31
  name: Startup,
32
+ invoice_display_name: Startup plan,
31
33
  created_at: 2023-06-27T19:43:42Z,
32
34
  code: startup,
33
35
  interval: monthly,
@@ -39,7 +41,7 @@ instance = LagoAPI::PlanObject.new(
39
41
  bill_charges_monthly: null,
40
42
  active_subscriptions_count: 0,
41
43
  draft_invoices_count: 0,
42
- charges: [{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;billable_metric_code&quot;:&quot;requests&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;package&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:3000,&quot;properties&quot;:{&quot;amount&quot;:&quot;30&quot;,&quot;free_units&quot;:100,&quot;package_size&quot;:1000},&quot;group_properties&quot;:[]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;billable_metric_code&quot;:&quot;cpu&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;graduated&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;graduated_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:10,&quot;flat_amount&quot;:&quot;10&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;},{&quot;from_value&quot;:11,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.4&quot;}]},&quot;group_properties&quot;:[]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;billable_metric_code&quot;:&quot;seats&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;standard&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{},&quot;group_properties&quot;:[{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a01&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;10&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a02&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;5&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a03&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;8&quot;}}]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;billable_metric_code&quot;:&quot;storage&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;volume&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;volume_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:100,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0&quot;},{&quot;from_value&quot;:101,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;}]},&quot;group_properties&quot;:[]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;billable_metric_code&quot;:&quot;payments&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;percentage&quot;,&quot;invoiceable&quot;:false,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;rate&quot;:&quot;1&quot;,&quot;fixed_amount&quot;:&quot;0.5&quot;,&quot;free_units_per_events&quot;:5,&quot;free_units_per_total_aggregation&quot;:&quot;500&quot;},&quot;group_properties&quot;:[]}],
44
+ charges: [{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;billable_metric_code&quot;:&quot;requests&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;package&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:3000,&quot;properties&quot;:{&quot;amount&quot;:&quot;30&quot;,&quot;free_units&quot;:100,&quot;package_size&quot;:1000},&quot;group_properties&quot;:[]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;billable_metric_code&quot;:&quot;cpu&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;graduated&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;graduated_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:10,&quot;flat_amount&quot;:&quot;10&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;},{&quot;from_value&quot;:11,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.4&quot;}]},&quot;group_properties&quot;:[]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;billable_metric_code&quot;:&quot;seats&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;standard&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{},&quot;group_properties&quot;:[{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a01&quot;,&quot;invoice_display_name&quot;:&quot;Europe&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;10&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a02&quot;,&quot;invoice_display_name&quot;:&quot;USA&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;5&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a03&quot;,&quot;invoice_display_name&quot;:&quot;Africa&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;8&quot;}}]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;billable_metric_code&quot;:&quot;storage&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;volume&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;volume_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:100,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0&quot;},{&quot;from_value&quot;:101,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;}]},&quot;group_properties&quot;:[]},{&quot;lago_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;lago_billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;billable_metric_code&quot;:&quot;payments&quot;,&quot;created_at&quot;:&quot;2023-06-27T19:43:42Z&quot;,&quot;charge_model&quot;:&quot;percentage&quot;,&quot;invoiceable&quot;:false,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;rate&quot;:&quot;1&quot;,&quot;fixed_amount&quot;:&quot;0.5&quot;,&quot;free_units_per_events&quot;:5,&quot;free_units_per_total_aggregation&quot;:&quot;500&quot;},&quot;group_properties&quot;:[]}],
43
45
  taxes: null
44
46
  )
45
47
  ```
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **name** | **String** | The name of the plan. | [optional] |
8
+ | **invoice_display_name** | **String** | 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. | [optional] |
8
9
  | **code** | **String** | 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. | [optional] |
9
10
  | **interval** | **String** | The interval used for recurring billing. It represents the frequency at which subscription billing occurs. The interval can be one of the following values: &#x60;yearly&#x60;, &#x60;quarterly&#x60;, &#x60;monthly&#x60;, or &#x60;weekly&#x60;. | [optional] |
10
11
  | **description** | **String** | The description on the plan. | [optional] |
@@ -23,6 +24,7 @@ require 'lago_ruby'
23
24
 
24
25
  instance = LagoAPI::PlanUpdateInputPlan.new(
25
26
  name: Startup,
27
+ invoice_display_name: Startup plan,
26
28
  code: startup,
27
29
  interval: monthly,
28
30
  description: Plan for early stage startups.,
@@ -32,7 +34,7 @@ instance = LagoAPI::PlanUpdateInputPlan.new(
32
34
  pay_in_advance: true,
33
35
  bill_charges_monthly: null,
34
36
  tax_codes: [&quot;french_standard_vat&quot;],
35
- charges: [{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;charge_model&quot;:&quot;package&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:3000,&quot;properties&quot;:{&quot;amount&quot;:&quot;30&quot;,&quot;free_units&quot;:100,&quot;package_size&quot;:1000},&quot;group_properties&quot;:[],&quot;tax_codes&quot;:[&quot;french_standard_vat&quot;]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;charge_model&quot;:&quot;graduated&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;graduated_ranges&quot;:[{&quot;to_value&quot;:10,&quot;from_value&quot;:0,&quot;flat_amount&quot;:&quot;10&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;},{&quot;to_value&quot;:null,&quot;from_value&quot;:11,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.4&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;charge_model&quot;:&quot;standard&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{},&quot;group_properties&quot;:[{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a01&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;10&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a02&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;5&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a03&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;8&quot;}}]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;charge_model&quot;:&quot;volume&quot;,&quot;invoiceable&quot;:true,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;volume_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:100,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0&quot;},{&quot;from_value&quot;:101,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;charge_model&quot;:&quot;percentage&quot;,&quot;invoiceable&quot;:false,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;rate&quot;:&quot;1&quot;,&quot;fixed_amount&quot;:&quot;0.5&quot;,&quot;free_units_per_events&quot;:5,&quot;free_units_per_total_aggregation&quot;:&quot;500&quot;},&quot;group_properties&quot;:[]}]
37
+ charges: [{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a91&quot;,&quot;charge_model&quot;:&quot;package&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:3000,&quot;properties&quot;:{&quot;amount&quot;:&quot;30&quot;,&quot;free_units&quot;:100,&quot;package_size&quot;:1000},&quot;group_properties&quot;:[],&quot;tax_codes&quot;:[&quot;french_standard_vat&quot;]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a92&quot;,&quot;charge_model&quot;:&quot;graduated&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;graduated_ranges&quot;:[{&quot;to_value&quot;:10,&quot;from_value&quot;:0,&quot;flat_amount&quot;:&quot;10&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;},{&quot;to_value&quot;:null,&quot;from_value&quot;:11,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.4&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a93&quot;,&quot;charge_model&quot;:&quot;standard&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{},&quot;group_properties&quot;:[{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a01&quot;,&quot;invoice_display_name&quot;:&quot;Europe&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;10&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a02&quot;,&quot;invoice_display_name&quot;:&quot;USA&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;5&quot;}},{&quot;group_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a03&quot;,&quot;invoice_display_name&quot;:&quot;Africa&quot;,&quot;values&quot;:{&quot;amount&quot;:&quot;8&quot;}}]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a94&quot;,&quot;charge_model&quot;:&quot;volume&quot;,&quot;invoiceable&quot;:true,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:false,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;volume_ranges&quot;:[{&quot;from_value&quot;:0,&quot;to_value&quot;:100,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0&quot;},{&quot;from_value&quot;:101,&quot;to_value&quot;:null,&quot;flat_amount&quot;:&quot;0&quot;,&quot;per_unit_amount&quot;:&quot;0.5&quot;}]},&quot;group_properties&quot;:[]},{&quot;billable_metric_id&quot;:&quot;1a901a90-1a90-1a90-1a90-1a901a901a95&quot;,&quot;charge_model&quot;:&quot;percentage&quot;,&quot;invoiceable&quot;:false,&quot;invoice_display_name&quot;:&quot;Setup&quot;,&quot;pay_in_advance&quot;:true,&quot;prorated&quot;:false,&quot;min_amount_cents&quot;:0,&quot;properties&quot;:{&quot;rate&quot;:&quot;1&quot;,&quot;fixed_amount&quot;:&quot;0.5&quot;,&quot;free_units_per_events&quot;:5,&quot;free_units_per_total_aggregation&quot;:&quot;500&quot;},&quot;group_properties&quot;:[]}]
36
38
  )
37
39
  ```
38
40
 
@@ -9,6 +9,7 @@
9
9
  | **charge_model** | **String** | Specifies the pricing model used for the calculation of the final fee. It can be &#x60;standard&#x60;, &#x60;graduated&#x60;, &#x60;graduated_percentage&#x60;, &#x60;package&#x60;, &#x60;percentage&#x60; or &#x60;volume&#x60;. | [optional] |
10
10
  | **pay_in_advance** | **Boolean** | This field determines the billing timing for this specific usage-based charge. When set to &#x60;true&#x60;, the charge is due and invoiced immediately. Conversely, when set to false, the charge is due and invoiced at the end of each billing period. | [optional] |
11
11
  | **invoiceable** | **Boolean** | 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 &#x60;false&#x60; when &#x60;pay_in_advance&#x60; is &#x60;true&#x60;. | [optional] |
12
+ | **invoice_display_name** | **String** | 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. | [optional] |
12
13
  | **prorated** | **Boolean** | Specifies whether a charge is prorated based on the remaining number of days in the billing period or billed fully. - If set to &#x60;true&#x60;, the charge is prorated based on the remaining days in the current billing period. - If set to &#x60;false&#x60;, the charge is billed in full. - If not defined in the request, default value is &#x60;false&#x60;. | [optional] |
13
14
  | **min_amount_cents** | **Integer** | The minimum spending amount required for the charge, measured in cents and excluding any applicable taxes. It indicates the minimum amount that needs to be charged for each billing period. | [optional] |
14
15
  | **properties** | [**ChargeObjectProperties**](ChargeObjectProperties.md) | | [optional] |
@@ -26,6 +27,7 @@ instance = LagoAPI::PlanUpdateInputPlanChargesInner.new(
26
27
  charge_model: standard,
27
28
  pay_in_advance: false,
28
29
  invoiceable: true,
30
+ invoice_display_name: Setup,
29
31
  prorated: false,
30
32
  min_amount_cents: 0,
31
33
  properties: null,